Skip to content

okular

The community/apps/okular directory contains files to support the Okular document viewer application.

The file okular.talon is a Talon file that sets the user.pages tag when Okular is the active application.

The file okular.py defines the Okular application and implements the user.pages actions. It defines the application for Windows and Linux based on the application's name. The UserActions class provides implementations for the following actions:

  • page_current(): Gets the current page number using ctrl-g to open the page number dialog, extracting the selected text, and dismissing the dialog.
  • page_next(): Navigates to the next page by pressing l.
  • page_previous(): Navigates to the previous page by pressing h.
  • page_jump(number: int): Navigates to a specific page by opening the jump to page dialog with ctrl-g, inserting the page number, and pressing enter.
  • page_final(): Jumps to the last page using ctrl-end.