Make it so Ctrl+W / Cmd-W doesn't close items in the sidebars

Currently, items in the sidebar are treated a lot like normal tabs. If I have an extension’s control panel open, for example, I can accidentally close it by pressing Ctrl+W.

I’d expect items in the sidebar to be more stable than not, and only go away if really explicitly removed: Ctrl+W I’d expect to act on normal tabs in the center view, not on items in the sidebars.

3 Likes

I think the feature should include how to identify note tabs from other tabs since ctrl + w on notes tab should work even if the note is on the sidebar. You then use pinned tabs to prevent them from disappearing.

I ran into the same issue: accidentally closed several sidepanel tabs via ⌘W, because it was not visually obvious that they have input focus. I could only get them back by quitting and reopening Obsidian.

1 Like

Pinning sidebar tabs doesn’t work for things like “File Properties” in the sidebar, eg:

  • I’m viewing Note-A, and the sidebar shows properties for Note-A
  • I update a property for Note-A
  • I press ctrl-w to close Note-A, but it closes the properties view instead
  • I re-open the file properties view in the sidebar, and pin the “File Properties” tab in the sidebar
  • Now when I open Note-B, it still shows the file properties for Note-A

I can confirm this although your description considers unwanted behaviour of the properties view which should get more visibility than just additional comment to this feature request. In addition of being unwanted behaviour maybe it’s a bug as well?