It would be nice to be able to navigate between highlighted words.
- If I have several different highlights and I deselected the highlights, the navigation should go between all
![image](https://user-images.githubusercontent.com/2313018/68076001-b805c200-fdaf-11e9-8008-0f635201bf05.png)
- If I selected some highlight with mouse, then the navigation should be limited only to matches
![image](https://user-images.githubusercontent.com/2313018/68076023-f4392280-fdaf-11e9-8ad0-9d4eaddb6428.png)
For this to work, a deselection should perhaps be implemented as the latest added highlight remains selected until I select or add something else.
I suggest a change to the shortcuts as well
F
- When text is selected - adds that selection to highlights
- When Highlight is selected - navigates to next matching highlight
- When nothing is selected - navigates to next (any) highlight (this one is tricky, how to decide which is next?)
Shift+F
- When Highlight is selected - navigates to previous matching highlight
- When nothing is selected - navigates to previous (any) highlight
D
- When Highlight is selected - removes that highlight
- When nothing is selected - removes all highlights
To prevent accidental removal of all highlights, it can be modified to Shift+D
So how to decide which is next?
The starting point for "Next" lookup should be the last selected text that was added to highlights.
If that's off the screen, the "Next" should be from the start of current viewport or below. (I already hate enough how the native Ctrl+F jumps at the top of the page, when I just want to search something where I am currently looking.) The user can always return back by Shift+F if that wasn't what they were expecting. If a highlight was deselected, the position of last word should still be known, so the lookup can follow same rules.