LibreraReader icon indicating copy to clipboard operation
LibreraReader copied to clipboard

[Feature] Better Find

Open orbisvicis opened this issue 4 years ago • 1 comments

I appreciate the logic behind the Find feature's design:

  1. All match on the page are highlighted using the same color. No match is set active or highlighted in a different color. Such a feature would only make sense in applications with a cursor (such as with a text editor) or with continuous and reflowable content (such as in a web browser). For this reason there is no next-match/previous-match functionality.

  2. The find windows displays individual pages rather than individual matches, because it is not possible to jump to a specific match.

1. Context

Nevertheless, I would like to be more informed when selecting a match. I would prefer if the Find windows had a toggle to display match contexts. While this is only a initial idea, I propose displaying the context as per-page child lists:

Given a search term "apparent", the Find window would display:

  • 25

    • ...to forge ahead in spite of apparent nonsense.
  • 79

    • This apparently obnoxious behavior follows from the rules...
  • 110

    • And components that apparently should work together frequently don't.
  • 111

    • And components that apparently should work together frequently don't.
  • 165

    • ...math facilities can be harnessed for apparently unrelated uses.

2. Speed

The Find window list should be incrementally populated. Waiting for the first 295 hits (the default cutoff) can take quite some time with large documents.

orbisvicis avatar Feb 18 '20 06:02 orbisvicis

Furthermore, I hope that it is possible to search for the keywords from the current page. This is useful when the book is very long (say, more than 1000 pages).

Iey4iej3 avatar Feb 25 '22 21:02 Iey4iej3