38 2
Sign in to rate

Highlight Search Results in the Browser

<10kB. Updated 2018-02-17.
The author has shared 62 other item(s).

Description

Highlights search results in the Editor pane of the Browser and extends the search bar with two new search modes. SCREENSHOTS COMPATIBILITY The add-on should work on both Anki 2.0 and Anki 2.1. However, as the Anki 2.1 release line is still in beta, I cannot provide any kind of official support for this platform. Please do not report issues with Anki 2.1 in the review section below. Instead, please report all issues you encounter on GitHub. USAGE By default the add-on will highlight all search terms that aren't search operators. You can temporarily disable search highlighting by using the provided View menu entry, or its associated hotkey (Ctrl+T, H). In addition to search highlights the following new hotkeys are provided in the search bar: CONFIGURATION The following settings can be configured by editing the add-on's source code: LIMITATIONS The add-on will search through the entire editor screen, field descriptions included. CHANGELOG 2018-02-17 – Ported to Anki 2.1 2017-08-16 – Initial release SUPPORT Please do not report issues or bugs in the review section below. I can't reply to your reviews, so there is no way for me to help you. Instead, please report all issues you encounter either by creating a bug report on GitHub, or by posting a new thread on the Anki add-on support forums. Please make sure to include the name of the affected add-on in your report title when you do so. CREDITS AND LICENSE Copyright (c) 2017-2018 Glutanimate This add-on was commissioned by a fellow Anki user. All credit for the original idea goes to them. Licensed under the GNU AGPL v3. The code for this add-on is available on GitHub. MORE RESOURCES A lot of my add-ons were commissioned by other Anki users. If you enjoy my work and would like to hire my services to work on an add-on or new feature, please feel free to reach out to me at: ankiglutanimate [αt] gmail . com Want to stay up-to-date with my latest add-on releases and updates? Feel free to follow me on Twitter: @Glutanimate New to Anki? Make sure to check out my YouTube channel where I post weekly tutorials on Anki add-ons and related topics: / Glutanimate

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

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.

This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.

All Anki 2.1.x Add-Ons

Reviews

on 1599161166
exactly what i wanted and it works in 2.1
on 1595468569
It's nice program.

But..
Add-on "Highlight Search Results in the Browser" crashes with Add-on "TagSelectorV2".
on 1594736920
Tks
on 1593358263
这个很好啊,高亮搜索文本,应该自带的功能,必备。
on 1591074331
Excellent!
on 1590483402
This is very good!
on 1590442324
Why didn't I notice this before?
on 1589527983
good
on 1589173081
Amazing!
on 1582231641
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?
on 1582106519
Anyone find it only highlights the last word you search on ANKI 2.1?
on 1580404352
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.
on 1577514013
this add-on is the light of my life. i was blind as a bat but i can see clearly now 🧐 💖
on 1577031133
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.
on 1574684339
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.
on 1573872835
Amazing addon. Thank you!
on 1571884089
AWESOME!
on 1567556606
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.
on 1565293848
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
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
on 1562737628
much obliged! thanks.
on 1562535341
This is exactly what I need to do! perfect! Thanks!
on 1559472069
Thanks!
on 1559028994
Effective!
on 1558462323
Great feature. Should be built into Anki from the get go!
on 1558397823
thanks
on 1521417600
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!
on 1519084800
Good!
on 1519084800
You're a genius!
on 1518825600
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.
on 1516147200
This is exactly what I need to do!!
on 1515888000
Awesome! Helps draw my eyes to what I'm searching for.
on 1515110400
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!
on 1510704000
Very useful feature! It works perfectly! Thanks Anki and developer!
on 1504569600
Almost perfect

I had a problem with deck names. The addon search for deck names too.
on 1504051200
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.