Skip to content

Mouseless text selection in pdf #662

Open
@tomak-git

Description

@tomak-git
Issue type:
  • Bug report
  • Feature request

I can't really tell which it is :)

Version:
Vimperator:	3.15.0 (created: 2016/10/05 01:11:26)
Firefox:	Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
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:
  1. Open a web page with text
  2. Search for a string of text and go to the first occurence
  3. Enter caret mode
  4. Enter visual mode
  5. Press right arrow

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions