dotfiles/talon/community/community-cursorless-0.4.0/code/keeper.py
2024-11-16 20:27:38 -07:00

11 lines
239 B
Python

from talon import actions, speech_system
def fn(d):
words = d["parsed"]._unmapped
if words[0] == "keeper":
actions.insert(" ".join(words[1:]))
d["parsed"]._sequence = []
speech_system.register("pre:phrase", fn)