init commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
from talon import Context, Module
|
||||
|
||||
mod = Module()
|
||||
ctx = Context()
|
||||
|
||||
mod.apps.stata = r"""
|
||||
os: windows
|
||||
and app.name: Stata
|
||||
os: windows
|
||||
and app.exe: /^statase\-64\.exe$/i
|
||||
"""
|
||||
|
||||
ctx.matches = r"""
|
||||
app: stata
|
||||
"""
|
||||
|
||||
|
||||
@ctx.action_class("code")
|
||||
class CodeActions:
|
||||
def language():
|
||||
return "stata"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Commands for the Stata Do-File Editor
|
||||
os: windows
|
||||
app: stata
|
||||
win.title: /^Do-file Editor/
|
||||
-
|
||||
do this: key(ctrl-d)
|
||||
|
||||
do line:
|
||||
edit.select_line()
|
||||
key(ctrl-d)
|
||||
|
||||
do (all | file):
|
||||
edit.select_all()
|
||||
edit.copy()
|
||||
key(ctrl-d)
|
||||
|
||||
do way up:
|
||||
edit.extend_file_start()
|
||||
edit.copy()
|
||||
key(ctrl-d)
|
||||
|
||||
do way down:
|
||||
edit.extend_file_end()
|
||||
edit.copy()
|
||||
key(ctrl-d)
|
||||
Reference in New Issue
Block a user