init commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
app: one_password
|
||||
-
|
||||
password new: user.password_new()
|
||||
password dup: user.password_duplicate()
|
||||
password edit: user.password_edit()
|
||||
password delete: user.password_delete()
|
||||
@@ -0,0 +1,4 @@
|
||||
#todo: tags
|
||||
-
|
||||
password fill: user.password_fill()
|
||||
password show: user.password_show()
|
||||
@@ -0,0 +1,31 @@
|
||||
from talon import Context, actions
|
||||
|
||||
ctx = Context()
|
||||
|
||||
# i don't see a need to restrict the app here, this just defines the actions
|
||||
# each app can support appropriate voice commands as needed
|
||||
# the below are for 1password, redefine as needed
|
||||
ctx.matches = r"""
|
||||
os: mac
|
||||
"""
|
||||
|
||||
|
||||
@ctx.action_class("user")
|
||||
class UserActions:
|
||||
def password_fill():
|
||||
actions.key("cmd-\\")
|
||||
|
||||
def password_show():
|
||||
actions.key("cmd-alt-\\")
|
||||
|
||||
def password_new():
|
||||
actions.key("cmd-i")
|
||||
|
||||
def password_duplicate():
|
||||
actions.key("cmd-d")
|
||||
|
||||
def password_edit():
|
||||
actions.key("cmd-e")
|
||||
|
||||
def password_delete():
|
||||
actions.key("cmd-backspace")
|
||||
@@ -0,0 +1,31 @@
|
||||
from talon import Context, actions
|
||||
|
||||
ctx = Context()
|
||||
|
||||
# i don't see a need to restrict the app here, this just defines the actions
|
||||
# each app can support appropriate voice commands as needed
|
||||
# the below are for 1password, redefine as needed
|
||||
ctx.matches = r"""
|
||||
os: windows
|
||||
"""
|
||||
|
||||
|
||||
@ctx.action_class("user")
|
||||
class UserActions:
|
||||
def password_fill():
|
||||
actions.key("ctrl-\\\\")
|
||||
|
||||
def password_show():
|
||||
actions.key("alt-ctrl-\\\\")
|
||||
|
||||
def password_new():
|
||||
actions.key("ctrl-n")
|
||||
|
||||
def password_duplicate():
|
||||
actions.key("ctrl-d")
|
||||
|
||||
def password_edit():
|
||||
actions.key("ctrl-e")
|
||||
|
||||
def password_delete():
|
||||
actions.key("ctrl-delete")
|
||||
@@ -0,0 +1,29 @@
|
||||
from talon import Module
|
||||
|
||||
mod = Module()
|
||||
|
||||
# 1password
|
||||
mod.apps.one_password = "app.bundle: com.agilebits.onepassword7"
|
||||
mod.apps.one_password = "app.name: 1Password for Windows desktop"
|
||||
mod.apps.one_password = "app.name: 1Password.exe"
|
||||
|
||||
|
||||
@mod.action_class
|
||||
class Actions:
|
||||
def password_fill():
|
||||
"""fill the password"""
|
||||
|
||||
def password_show():
|
||||
"""show the password"""
|
||||
|
||||
def password_new():
|
||||
"""New password"""
|
||||
|
||||
def password_duplicate():
|
||||
"""Duplicate password"""
|
||||
|
||||
def password_edit():
|
||||
"""Edit password"""
|
||||
|
||||
def password_delete():
|
||||
"""Delete password"""
|
||||
Reference in New Issue
Block a user