init commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from talon import Context, Module, actions
|
||||
|
||||
ctx = Context()
|
||||
mod = Module()
|
||||
|
||||
mod.apps.notepad = r"""
|
||||
os: windows
|
||||
and app.exe: notepad.exe
|
||||
"""
|
||||
|
||||
ctx.matches = r"""
|
||||
app: notepad
|
||||
"""
|
||||
|
||||
|
||||
@ctx.action_class("win")
|
||||
class win_actions:
|
||||
def filename():
|
||||
filename = actions.win.title().split(" - ")[0]
|
||||
if "." in filename:
|
||||
return filename
|
||||
return ""
|
||||
@@ -0,0 +1,5 @@
|
||||
app: notepad
|
||||
-
|
||||
|
||||
tag(): user.tabs
|
||||
tag(): user.find_and_replace
|
||||
Reference in New Issue
Block a user