Search Box in the Folder tree

What I’m trying to do

Hide (or even disable) the search box in folder tree.
To be clear, there are two search boxes:

A: This one appears when you hig Ctrl+F while in the folder tree. This is evil and sort of pointless… I don’t really have any use for it.

Most of the time it works like this:

  • I’m looking for something and a folder names comes up. This search only looks for file and folder names. … OK
  • I click on the folder that was found, but now I don’t see the other files inside it.
  • I ‘x-out’ of the search, now the folder is gone from my focus and have to go scrolling looking for it again.
  • POINTLESS and FRUSTRATING

B: This one is different. This one can stay. It’s not perfect, but…

Things I have tried

Hit Ctrl+F again, look into the menu…

This CSS snippet should keep the file-explorer search bar out of your life:

.workspace-tabs:has(.is-active[data-type="file-explorer"]) .search-input-container {
	display: none;
}

How to use CSS snippets in Obsidian: https://help.obsidian.md/snippets

All seems well from my keyboard, but say if you notice any unusual behavior.

For other people reading your topic who have the same frustration but don’t want to disable it entirely, I’ll add that pressing Esc is the way to close the search box from the keyboard. Same goes for the other core plugins’ sidebar search boxes: All properties, Tags, Bookmarks, Outline, Backlinks.

thank you! Who knew… good old trusty Esc key…