sumatrapdf
This directory contains configuration files for the SumatraPDF application, enabling users to control it with voice commands via Talon.
The file sumatrapdf.talon defines the application and the tags that should be enabled when the application is active. This file specifies that the user.pages
and user.tabs
tags should be enabled.
The file sumatrapdf.py defines the application context and the actions that can be performed when SumatraPDF is the active application. This file defines the application using mod.apps.sumatrapdf
which matches when the window title is "SumatraPDF" and the executable is sumatrapdf.exe
.
It implements the following actions:
app.tab_open
: Opens a new tab usingctrl-o
.edit.zoom_in
: Zooms in using the+
key.edit.zoom_out
: Zooms out using the-
key.user.page_current
: Gets the current page number by opening the go to page dialog, copying the current page from the dialog, closing the dialog and returning the page number as an integer.user.page_next
: Navigates to the next page using then
key.user.page_previous
: Navigates to the previous page using thep
key.user.page_jump
: Jumps to a specific page by opening the go to page dialog, inserting the number, and pressingenter
.user.page_final
: Navigates to the final page using theend
key.user.page_rotate_right
: Rotates the page to the right usingshift-ctrl-keypad_plus
.user.page_rotate_left
: Rotates the page to the left usingshift-ctrl-keypad_minus
.user.tab_jump
: Jumps to a specific tab (1-8) usingalt-{number}
.user.tab_final
: Jumps to the final tab usingalt-9
.
These files together allow the user to control SumatraPDF through voice commands by implementing actions for the app
, edit
, and user
namespaces. They are enabled when SumatraPDF is the active application.