searchmarkers / mark-my-search

Search keyword highlighter for Firefox and Chromium
https://markmysearch.ator.systems
European Union Public License 1.2
43 stars 3 forks source link

[Feature Request] Go to previous match when Shift clicking word #119

Open vinismarques opened 1 year ago

vinismarques commented 1 year ago

This is more of a suggestion.

It might be interesting to be able to go to the previous match of that word when clicking it while holding the Shift key, giving a similar experience to what users have in other places (default search bar included with Shift+Enter going back).

The use-case is finding matches for a specific word, but not considering the other words.

There are shortcuts to that already, but I feel that doing this through the interface would be "more natural", not requiring that users set up multiple shortcuts that will rarely be used.

ator-dev commented 1 year ago

Thanks for the report! This a great idea, and something I will certainly implement.

There are two notes I would like to make in addition:


ator-dev commented 1 year ago

Shift+click for previous match now implemented, along with a critical highlighting fix and reduction in cases where keypresses (in inputs) are also detected by the page. Second 2 points remain to be considered.

Shipping with 1.13.7, hopefully very soon (pending review on the Chrome Web Store).

The highlighting improvement in the last update contained a small error which could result in an infinite loop, freezing the page. I am looking into ways to avoid such problems in future.

Edit: now published for Firefox and Chrome