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 usingctrl-g
to open the page number dialog, extracting the selected text, and dismissing the dialog.page_next()
: Navigates to the next page by pressingl
.page_previous()
: Navigates to the previous page by pressingh
.page_jump(number: int)
: Navigates to a specific page by opening the jump to page dialog withctrl-g
, inserting the page number, and pressingenter
.page_final()
: Jumps to the last page usingctrl-end
.