obsidian-another-quick-switcher icon indicating copy to clipboard operation
obsidian-another-quick-switcher copied to clipboard

How to highlight keywords in search results?

Open tyf2018 opened this issue 2 years ago • 4 comments

I want to highlight keywords in the search results, may I use the following css parameters? But it doesn't take effect.

.another-quick-switcher__hit_word {
    color: var(--text-nav-selected) !important;
    background-color: var(--background-result-color) !important;
}

Best regards.

tyf2018 avatar Nov 15 '22 03:11 tyf2018

The property only affects to results of "Grep search".

tadashi-aikawa avatar Nov 15 '22 04:11 tadashi-aikawa

It's a bit of a pity, Wouldl you consider allowing ordinary search results to achieve this effect in the future?

tyf2018 avatar Nov 15 '22 05:11 tyf2018

I'm not going to add the feature because

  • It is not easy to implement it
  • I think the highlighting words will not help us to find the files very much (AQS doesn't support fuzzy search)

However, if there are concrete reasons, I might consider it.

Best regards.

tadashi-aikawa avatar Nov 15 '22 05:11 tadashi-aikawa

(AQS doesn't support fuzzy search)

Not sure since when, but by now AQS does allow fuzzy search. Highlighting the matched letters would thus indeed be helpful, since I was sometimes confused why a certain item was suggested.

chrisgrieser avatar Mar 29 '24 11:03 chrisgrieser