Skip to content

kindle

The community/apps/kindle directory contains files that add support for controlling the Kindle application using Talon.

The key files are:

  • kindle.talon: This file defines the Talon app tag that is used to activate the Kindle context. It sets the user.pages tag, which is used by other files to implement actions for page navigation.

  • kindle_win.py: This file defines the Windows-specific context for the Kindle application. It implements actions for page navigation using actions.key, such as page_next, page_previous, and page_jump. These actions rely on the user.pages tag defined in kindle.talon.

  • kindle.py: This file defines the application definition for Kindle, specifying the criteria that Talon uses to recognize the Kindle application. This includes matching on the app name Kindle and the executable kindle.exe on Windows. A comment indicates that a macOS context is planned.

These files work together to provide a cohesive experience: kindle.py defines the application, kindle.talon sets the necessary tag, and kindle_win.py provides the actual implementation of the actions. The tag allows for a separation of concerns. For example, if the keyboard shortcuts for navigating pages in Kindle on macOS are different, a kindle_mac.py file could be created that also has the user.pages context, but different implementations for each action.