init commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from talon import Context, actions
|
||||
|
||||
ctx = Context()
|
||||
ctx.matches = r"""
|
||||
code.language: batch
|
||||
"""
|
||||
|
||||
|
||||
@ctx.action_class("user")
|
||||
class UserActions:
|
||||
def code_comment_line_prefix():
|
||||
actions.user.insert_snippet_by_name("commentLine")
|
||||
@@ -0,0 +1,16 @@
|
||||
code.language: batch
|
||||
-
|
||||
tag(): user.code_comment_line
|
||||
|
||||
# exit without killing cmd shell
|
||||
soft exit: "exit /B 1\n"
|
||||
# exit with killing cmd shell
|
||||
hard exit: "exit 1\n"
|
||||
echo: "echo "
|
||||
echo off: "@echo off\n"
|
||||
call: "call "
|
||||
call shell: "call cmd \\c "
|
||||
if error: "if errorlevel 1 "
|
||||
go to: "goto "
|
||||
delayed expansion: "SETLOCAL EnableDelayedExpansion\n"
|
||||
arg <number_small>: "%{number_small}"
|
||||
Reference in New Issue
Block a user