Search results: highlight the note currently focused

Hello,

Contrary to the File explorer, in the Search results view, the note currently focused is not highlighted in anyway.

I may have miss something but I do not see a specific CSS class in the dev tools, so I guess I cannot workaround this by using a custom CSS.

My use case was the following. I was reviewing notes matching a specific tag to ensure they were formatted the same way. Because I used the Zettelkasten plugin to generate these notes they all have similar names. At one point I forgot where I stopped on the list and there was no easy way to get this information. I had to go through the results again until I found the file where I left off. It is just a small annoyance, nothing critical.

12 Likes

Have a similar requirement as @baslas described above. :+1:
There would be a big advantage if the file that is selected in the “Search” view would also be selected in the “File Explorer” when you switch the views.
From within the Search view it is not possible to figure out where you are at the moment you pick a result.

1 Like

This is a great feature request. When I switch between the search results and file lists, or even when switching between side panels, I always lose my position.

This breaks the flow and thought process, because now I got to go through the search results to find where I was in my processing.

Please add something like a simple highlight as we currently already got in the File Explorer window. :slight_smile:

2 Likes

This would be a great feature.

However, is there a CSS workaround to this in the meanwhile?

1 Like

Unfortunately not as far as I can tell (on Obisidian 0.9.22).

All the search results use the same CSS classes, and the currently active one doesn’t have a special one attached to distinguish it from others.

1 Like

Bump. I think this is a very tablestakes and perhaps easy feature to implement.

When I search for a note and open it, I’d like to see which folder it’s in and what is around it, as I frequently want to add something close to it.

2 Likes

Yeah, great point! Totally support the idea to highlight the search result.

Was there any workaround for this? I was reviewing my daily notes and noted that it would be of great help to see the active note in the chronological order displayed by modified time in search

Why have the makers of Obsidian been unable to implement such a primitive but extremely important function for five years? I use the search function every day to go through hundreds of notes and I always have to count off the list so I know where I’ve been. That’s complete nonsense!
I can’t even find a plugin for it.

I was just about to start a new topic to ask the same question when I found this one. I even prepared the text of my question so I’ll post it anyway to add to the requests. This is a real problem that should be fixed. Unless I missed something somewhere…

When I search for a word or phrase in Obsidian, I can get a long list of pages as a result. I can then go through these pages one by one. When these pages are all or mostly my Daily Notes, the list is just a series of dates. When I move the cursor over the dates, the line changes a bit, from black to dark grey, but doesn’t stay highlighted so if I move the cursor to edit the page, I then can’t see where I am in the list of results.

Is there any way to make the active page stay highlighted in the results list as long as it is open? Any plugin?

I love Obsidian and would love it more if this was fixed. Or maybe it can’t be fixed for some reason but then the developers should tell us why.

Hi @domellen. Currently there are no direct solutions to achieve highlighting the active search result.

Workarounds:

Use this layout

and browse all visible results then scroll. Or you can always manually scroll the active results to the middle of your screen. You can also use this browsing trick with page preview

https://imgur.com/a/rcc2rr3

I used cursor navigation in the search results (down arrow key) but you can also use scroll wheel or two finger scroll. You can turn off “Require ⌘ to trigger page preview on hover” in the page preview settings.