Sidebar Fold

approvedunreviewed

by Jeff Bouganim

Hide the sidebars when you open a note or click into it, remember their width, and pin them open when you need them.

↓ 29 downloadsUpdated 11d agoMIT

Sidebar Fold

Sidebar Fold hides the Obsidian sidebars when you open a note, so you get the full width of the window for reading and writing. When you need the sidebar back, it opens at the width you left it.

I built it because I browse my vault in the left sidebar and then want the sidebar out of the way. Obsidian on mobile already does this. On desktop I was reaching for the toggle every single time.

What it does

  • Hides the left sidebar the moment you pick a note, or waits until you click into the note. You choose which.
  • Can hide the right sidebar too, or leave it alone. The right sidebar is left alone by default.
  • Push the mouse against the left edge of the window and the sidebar slides back out. Move back over your note and it folds away again.
  • Remembers each sidebar's width and puts it back when the sidebar reopens.
  • Leaves the sidebar open while you move through the file list with the arrow keys, so browsing still works.
  • Leaves the sidebars alone while two notes are open side by side.
  • Has a pin for the times you want the sidebar to stay, like filing or dragging notes into folders. Click the pin in the status bar, or give the "Pin sidebars open" command a hotkey.

It works with the core file explorer and with Notebook Navigator.

Settings

SettingWhat it doesDefault
Hide when"I pick a note", "I click into the note", or either oneI pick a note
Hide the left sidebarFold the left sidebarOn
Hide the right sidebarFold the right sidebarOff
Skip when the editor is splitLeave the sidebars alone with notes side by sideOn
Which opens countAny way a note opens (quick switcher, search, links, daily note), or only clicks in the left sidebarAny way
Keep open while browsing with the keyboardArrow keys in the file list don't fold the sidebarOn
DelayWait up to one second before hiding0 ms
Open by touching the left edgeMouse at the left edge of the window opens the left sidebarOn
Edge delayHow long the mouse rests at the edge first300 ms
Fold again when the mouse moves backA sidebar opened from the edge folds once you're back over the noteOn
Pin sidebars openPause all hidingOff
Show pin in the status barPin icon in the bottom barOn

Commands

  • Pin sidebars open (pause auto-hide) toggles the pin.
  • Hide sidebars now folds both sidebars straight away.

Neither command has a default hotkey. Set one in Settings → Hotkeys.

Installing

From Obsidian: Settings → Community plugins → Browse, search for "Sidebar Fold", then install and enable it.

By hand: download main.js, manifest.json and styles.css from the latest release into <your vault>/.obsidian/plugins/sidebar-fold/, then enable it under Community plugins.

Desktop only. Obsidian on phones and tablets already closes the sidebar when you open a note.

Privacy

The plugin makes no network requests and never reads or writes your notes. The only file it writes is its own settings file in the plugin folder.

A note on how it's built

Obsidian doesn't publish an API for sidebar width, so the width memory uses the sidebar's internal size property. If a future Obsidian release changes that, the width memory will quietly stop working and everything else will carry on. I'll fix it when that happens.

Support

Found a bug or have an idea? Open an issue.

If it saves you a few clicks a day, you can buy me a coffee.

Licence

MIT. See LICENSE.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.