navigation
The community/core/navigation directory contains files that define actions for navigating forward and backward, using different keybindings based on the context.
The file navigation.talon defines a Talon tag user.navigation and maps the spoken commands "go back" and "go forward" to their corresponding user actions, which are defined in navigation.py.
The file navigation.py defines the core logic for navigation, including the following:
- A
navigationmodule tag is created. - A browser context is defined, using the
browsertag, and maps the "go back" and "go forward" user actions to the browser's native go back and go forward actions. - A mac context is defined, using the
macos tag, and maps the "go back" and "go forward" user actions to thecmd-[andcmd-]keybindings. - Default "go back" and "go forward" actions are defined using the
alt-leftandalt-rightkeybindings for contexts that do not match the browser or mac context.
The overall purpose of the files in community/core/navigation is to provide a consistent set of voice commands for navigation with different keybindings based on the current context (e.g., when in a browser vs. on MacOS).