Skip to content

Allow the user to define a page offset so that : commands align with document defined page numbers. #120

Description

@sebastinas

On GitLab by @cjayross on Apr 29, 2019, 21:05


My most often use case for Zathura is for reading books with a large number of pages and most of them don't have any metadata for accessing via Zathura's ToC indexing.
A feature that I have known would be very useful for me is if Zathura gave me the option to set a "page offset" integer that would be added automatically to the numbers I use to jump to a page (using the : command) and would be stored in the document's config file so that it will persist between instances.

For example, if a given book begins indexing it's pages on the PDF's 17th page (so on page 17, the index is 1; on 18 it's 2, and so on), it would be great if I could use command like :set_page_offset 16 so that from then on a call such as :245 will bring me to the 261st page of the PDF rather than the 245th.
Often times this offset will be small, meaning that losing the ability to properly jump to the PDF's first page_offset pages won't be much loss in functionality for me since I would simply be using the gg macro instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions