Skip to content

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 navigation module tag is created.
  • A browser context is defined, using the browser tag, 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 mac os tag, and maps the "go back" and "go forward" user actions to the cmd-[ and cmd-] keybindings.
  • Default "go back" and "go forward" actions are defined using the alt-left and alt-right keybindings 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).