glutanimate / highlight-search-results

Highlight Search Results in the Browser add-on for Anki
https://ankiweb.net/shared/info/225180905
Other
13 stars 5 forks source link

Only highlights the last word I search #3

Open pzh200707 opened 4 years ago

pzh200707 commented 4 years ago

Which add-on is affected?

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

Prerequisite checklist

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

AnKingMed commented 4 years ago

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

glutanimate commented 3 years ago

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 3 years ago

Putting the string between quotes works for me. Screenshot_1

galantra commented 2 years ago

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.