Highlight Search Results in the Browser
0.22MB. Updated 2021-03-11.
The author has shared 65 other
item(s).
Description
Download
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
Supported Anki versions:
- 2.1.0-2.1.42+ (Updated 2021-03-11)
To download this add-on, please copy and paste the following code into Anki 2.1:
225180905
If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.
All Anki 2.1.x Add-Ons Contact Author
Reviews

This is Beautiful!

Tks a lot! It is exactly what I need.

|
Would appreciate it if you could share how I can change the highlight color?
I still use this addon although I updated Anki version 2.1.49.
A useful addon!
|
Would appreciate it if you could share how I can change the highlight color?
I still use this addon although I updated Anki version 2.1.49.
A useful addon!
|

use this plug with https://ankiweb.net/shared/info/831846358 will have two view in menu bar, is there a way to solve this?

Great add-on!

FYI there is an error when attempting to edit the "Config." I get the following:
"There was a problem with the provided configuration: 'Ctrl+T, H' does not match '^((([Cc][Tt][Rr][Ll]|[Aa][Ll][Tt]|[Ss][Hh][Ii][Ff][Tt])\\+){0,3}([a-zA-Z0-9]|F[1-9]|F1[0-2]))?$', at path hotkey_toggle_highlights, against schema {'type': 'string', 'title': 'Hotkey to toggle highlights on/off', 'pattern': '^((([Cc][Tt][Rr][Ll]|[Aa][Ll][Tt]|[Ss][Hh][Ii][Ff][Tt])\\+){0,3}([a-zA-Z0-9]|F[1-9]|F1[0-2]))?$'}."
"There was a problem with the provided configuration: 'Ctrl+T, H' does not match '^((([Cc][Tt][Rr][Ll]|[Aa][Ll][Tt]|[Ss][Hh][Ii][Ff][Tt])\\+){0,3}([a-zA-Z0-9]|F[1-9]|F1[0-2]))?$', at path hotkey_toggle_highlights, against schema {'type': 'string', 'title': 'Hotkey to toggle highlights on/off', 'pattern': '^((([Cc][Tt][Rr][Ll]|[Aa][Ll][Tt]|[Ss][Hh][Ii][Ff][Tt])\\+){0,3}([a-zA-Z0-9]|F[1-9]|F1[0-2]))?$'}."

Thanks a lot!

Is there any way to change the color when highlighting?

Ta bueno eso asere

Should be implemented in Anki
Must have add-on
Must have add-on

Gj

Thanks for this addon.

Thanks

good job!

An error occurred after updating to Anki 2.1.42. Cannot open the deck browser.
3/11: It works fine now. Thank you for your fast fix and reply. This add-on is really helpful.
3/11: It works fine now. Thank you for your fast fix and reply. This add-on is really helpful.
Comment from author before post was edited
Hey, appreciate the report. 2.1.42 just came out, but I've been testing a fix for a few days now and now pushed it as an update here. Would really appreciate it if you could switch your rating it if it works :)

I haven't expected that a add-on can work without updating for over two years, but there it is.

So awesome thank you!

Okay Okay

Not sure why this isn't a native feature. Super helpful add on!

Thank you. You saved me at an open-book exam.

Thanks! It works with Anki 2.1.38 :3

Such an important tool, especially when you are using long cloze deletion notes and are also using your cards as a resource for quick information.

Precisely what I was looking for in 2.1. In my case, I am gradually fixing autogenerated furigana for Japanese readings on occasion across hundreds of cards with many sample sentences. This search highlight functionality is critical for spot-checking cards with 59 fields!

exactly what i wanted and it works in 2.1

It's nice program.
But..
Add-on "Highlight Search Results in the Browser" crashes with Add-on "TagSelectorV2".
But..
Add-on "Highlight Search Results in the Browser" crashes with Add-on "TagSelectorV2".

Tks

这个很好啊,高亮搜索文本,应该自带的功能,必备。

Excellent!

This is very good!

Why didn't I notice this before?

good

Amazing!

Anyone find it only highlights the last word you search on ANKI 2.1? Yes I also have this issue, is there a way for it to highlight every word you searched?

Anyone find it only highlights the last word you search on ANKI 2.1?

Neat. I just think it would be better if it ignored…
① queries to metadata (eg., it highlights every "1" when searching for "flag:1")
② field names as possible search matches
It's particularly annoying when both come together (esp. with the auto-focus shift), like when one only searches for metadata.
① queries to metadata (eg., it highlights every "1" when searching for "flag:1")
② field names as possible search matches
It's particularly annoying when both come together (esp. with the auto-focus shift), like when one only searches for metadata.

this add-on is the light of my life. i was blind as a bat but i can see clearly now 🧐 💖

very useful. If you don't like the autoscroll to the first highlight add one line to the source code of the file browser_search_highlight_results.py.
Change the line
self.editor.web.findText(val, find_flags)
to
self.editor.web.findText(val, find_flags)
self.editor.web.eval("window.scrollTo(0,0);")
Use proper indentation: The first line needs to be indented by eight spaces, the new line by four spaces. I can't show the proper indentation in this review because leading spaces are removed from reviews.
Change the line
self.editor.web.findText(val, find_flags)
to
self.editor.web.findText(val, find_flags)
self.editor.web.eval("window.scrollTo(0,0);")
Use proper indentation: The first line needs to be indented by eight spaces, the new line by four spaces. I can't show the proper indentation in this review because leading spaces are removed from reviews.

I wish this worked well for me. I know the author has said he cannot fix this bug, but it's a deal breaker for me.
If your workflow depends on flags, as mine does, this won't work very well for you, as it highlights the flag enum (if you have 1 through 4 on your cards, say on an audio field, it will highlight that). The autoscrolling can also be jarring, and most of the times for me, thanks to false positives like with flags, it'd be better to disable it.
If your workflow depends on flags, as mine does, this won't work very well for you, as it highlights the flag enum (if you have 1 through 4 on your cards, say on an audio field, it will highlight that). The autoscrolling can also be jarring, and most of the times for me, thanks to false positives like with flags, it'd be better to disable it.

Amazing addon. Thank you!

AWESOME!

Very useful, thank you! If anyone else needs a minimum length for search terms, just add "or len(token) <= 1" after "if (token in operators or token.startswith("-") or len(token)" in the source.

It only highlights yellow and I can't figure out how to change it...the problem with yellow is in night-mode it is hard to read lightly colored text highlighted with bright yellow. From your code it looks like you imported some qweb feature so idk if this can be fixed by you. just lmk and ill change my thumbs down to up
Edit: changed, but leaving this here as warning to future users
Edit: changed, but leaving this here as warning to future users
Comment from author before post was edited
This is hardcoded in Anki's GUI toolkit, I'm afraid, so there's no way to change it :/
See here: https://github.com/glutanimate/anki-addons-misc/issues/36
See here: https://github.com/glutanimate/anki-addons-misc/issues/36

much obliged! thanks.

This is exactly what I need to do! perfect! Thanks!

Effective!

Great feature. Should be built into Anki from the get go!

thanks

I was in need for something like this for many years. I had actually sent an email to the Anki developers to incorporate it in one of the future editions, but with little success. I can't thank you enough Glutanimate! You add-ons are simply great!

You're a genius!

Good!

This was so nice to have exactly what I needed when skimming through hundreds of results. Can't imaging Anki without it after a couple of use.

This is exactly what I need to do!!

Awesome! Helps draw my eyes to what I'm searching for.

Absolutely great. In the past few years, my Notes section has become ever more important and thus also longer. I add ideas for articles, short bibliographies, etc. Thank you so much!

Very useful feature! It works perfectly! Thanks Anki and developer!


Very functional!
Thanks for this helpful feature. I have a suggestion to improve your add-on, that is to highlight the search term with and without accents, I do use the "Ignore accents" add-on and when I use that feature there is no highlight on accented words if I do search without it.
Thanks for this helpful feature. I have a suggestion to improve your add-on, that is to highlight the search term with and without accents, I do use the "Ignore accents" add-on and when I use that feature there is no highlight on accented words if I do search without it.



