glutanimate/highlight-search-results

Only highlights the last word I search

Opened this issue · 4 comments

Which add-on is affected?

"Highlight Search Results in the Browser" only highlights the last word I search

Prerequisite checklist

  • [ x ] In case of a bug: Have you tried restarting Anki?
  • [ x ] Are you running the latest version of the add-on? Have you redownloaded the add-on from AnkiWeb to make sure?
  • [ x ] Did you check the add-on description on AnkiWeb for known issues?
  • [ x ] Did you perform a cursory search through existing issue reports?

What is the problem/feature you would like to see fixed/implemented?

image

How can we reproduce the problem?

Search cards with two more words

Expected behavior: [ What you expected to happen ]
All the words should be highlighted

Actual behavior: [ What actually happened ]
Only the last word is highlighted

Reproducible?: [ Can you reliably reproduce the issue by following the steps above? ]
Yes

Version information

Anki

[ Please head to HelpAbout Anki and Paste the version string here, e.g.: ]

Version 2.1.19 (3c8690ae)
Python 3.8.0 Qt 5.14.0 PyQt 5.13.2

System
Win 10 x64

Furthur, potentially related issue is that it will highlight the word in the field names, scrolling down your card unnecessarily sometimes

Hey guys, super late response, but quick update on this:

Sadly this is not supported by Anki's widget toolkit at the moment, so I likely won't be able to fix it in the near future. Keeping this issue open to track progress on this, however.

CD11b commented

Putting the string between quotes works for me.
Screenshot_1

Putting the string between quotes works for me.

That, however, means that Anki will find these two words only when they are consecutive. For example, it would not find OP's card because hip and external are not immediately next to one another.