On right-click > Search in folder, do not select/highlight the path to avoid replacing it accidentally, just place caret after it

Use case or problem

I want to search a folder by entering a specific text string to search. Currently we can already right-click > Search in folder which prepends path:”to/folder/” to the search, but it also happens to pre-select/highlight that whole path text.

User generally wants to type immediately the text to search after clicking a search command, but here it would just accidentally replace the path, losing the point of search in folder. It happened to me many times.

Proposed solution

Do not select the path text, just put the caret one space after the path, so user can start typing text.

Personally, I also almost always use full sentence search with “double quotes” because searching for wild, non-sequential words within a whole folder generally gives too many non-relevant results, so I would even add an option to pre-surround text to search with "…”, but that’s another story.

Current workaround (optional)

Remember to press right arrow before typing text to search every time

1 Like

Good idea.
I’ve found this issue a few times.

I take it you are using the core plugin search.

I had to disable it for this and many other reasons.

Workaround #2:

Omnisearch is better and I can toggle back and forth from full text searching and file name searching.

Notebook Navigator makes it easy to toggle from file name searching to full text searching.