Open tomak-git opened 7 years ago
I just realized that this is probably an issue of pdf.js itself (because there is the same problem with Firefox's native search and caret mode) so I opened issue #7925 for pdf.js. This one can probably be closed. Sorry for the confusion!
Referenced issue: https://github.com/mozilla/pdf.js/issues/7925
Adding special behavior for pdf.js probably wouldn't be the most elegant of solutions, so :+1: at creating the other issue. I'll leave this one open until any conclusion can be drawn (here, or over at pdf.js).
Issue type:
I can't really tell which it is :)
Version:
Description:
As per the accepted answer here you can select text on web pages by searching for a string, then entering caret and visual mode and expanding the selection as desired. This works well on web pages, but does not work with pdf.js. With pdfs, the caret does not move to the place of search hit so that when I enter the caret and visual modes, the selection begins at the beginning of the document.
Is there something that can be done about it? I know that pdfs are probably not a priority, but having a mouseless vim-like interface for both web and pdfs is too tempting :) (and yes, I tried zathura but its text selection also relies on mouse).
Expected behavior:
I would expect the behavior to be the same for web pages and pdfs given that the content is displayed in a tab in Firefox.
Steps to reproduce:
Result: selection begins from the string searched for in step 2.
Do all of the above with a pdf: selection begins from the start of the document.