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 theuser.pagestag, 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 usingactions.key, such aspage_next,page_previous, andpage_jump. These actions rely on theuser.pagestag defined inkindle.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 nameKindleand the executablekindle.exeon 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.