Skip to content

1password

The community/apps/1password directory contains files that enable voice control for the 1Password password manager application. It includes platform-specific keybindings and generic Talon commands.

The core functionality is defined in password_manager.py. This file defines the application identifiers for 1Password on different platforms and declares the user actions that can be performed. These actions include: password_fill, password_show, password_new, password_duplicate, password_edit, and password_delete. The action implementations are defined in the platform-specific files, 1password_mac.py and 1password_win.py.

1password_mac.py defines the keybindings for the actions on macOS. For example, password_fill is bound to cmd-\ and password_show is bound to cmd-alt-\. Similarly, 1password_win.py defines the keybindings for the actions on Windows. For example, password_fill is bound to ctrl-\\.

The Talon files, 1password.talon and 1password_global.talon, provide the voice commands for the user actions. 1password.talon contains commands that are specific to the 1Password application, such as "password new", "password dup", "password edit", and "password delete". 1password_global.talon contains global commands that can be used in any context, such as "password fill" and "password show". These files map the voice commands to the actions defined in password_manager.py.