Skip to content

Instantly share code, notes, and snippets.

@davebrny
Last active November 13, 2017 18:35
Show Gist options
  • Save davebrny/978751a35b8cedbbca3d5039dcf49a52 to your computer and use it in GitHub Desktop.
Save davebrny/978751a35b8cedbbca3d5039dcf49a52 to your computer and use it in GitHub Desktop.
sublime text snippets for some of my autohotkey scripts
<snippet>
<content><![CDATA[
built_in("a_autoTrim", ${1:"on|off|r|d"})
]]></content>
<tabTrigger>b_autoTrim</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_batchLines", ${1:"-1|20|lineCount|r|d"})
]]></content>
<tabTrigger>b_batchlines</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("clipboard", ${1:value "|r|d"})
]]></content>
<tabTrigger>b_clipboard</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_controlDelay", ${1:"-1|0|20|r|d"})
]]></content>
<tabTrigger>b_controldelay</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_coordModeCaret", ${1:"screen|window|client|r|d"})
]]></content>
<tabTrigger>b_coordmodecaret</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_coordModeMenu", ${1:"screen|window|client|r|d"})
]]></content>
<tabTrigger>b_coordmodemenu</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_coordModeMouse", ${1:"screen|window|client|r|d"})
]]></content>
<tabTrigger>b_coordmodemouse</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_coordModePixel", ${1:"screen|window|client|r|d"})
]]></content>
<tabTrigger>b_coordmodepixel</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_coordModeToolTip", ${1:"screen|window|client|r|d"})
]]></content>
<tabTrigger>b_coordmodetooltip</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_defaultMouseSpeed", ${1:"0|100|r|d"})
]]></content>
<tabTrigger>b_defaultmousespeed</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_detectHiddenText", ${1:"on|off|r|d"})
]]></content>
<tabTrigger>b_detecthiddentext</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_detectHiddenWindows", ${1:"on|off|r|d"})
]]></content>
<tabTrigger>b_detecthiddenwindows</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_isCritical", ${1:"on|off|50|r|d"})
]]></content>
<tabTrigger>b_isCritical</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_isPaused", ${1:"on|off|toggle|r|d"})
]]></content>
<tabTrigger>b_isPaused</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_isSuspended", ${1:"on|off|toggle|permit|r|d"})
]]></content>
<tabTrigger>b_isSuspended</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_sendMode", ${1:"input|play|event|inputThenPlay|r|d"})
]]></content>
<tabTrigger>b_sendMode</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_stringCaseSense", ${1:"on|off|locale|r|d"})
]]></content>
<tabTrigger>b_stringCaseSense</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_titleMatchMode", ${1:"1|2|3|regEx|r|d"})
]]></content>
<tabTrigger>b_titleMatchMode</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_titleMatchSpeed", ${1:"slow|fast|r|d"})
]]></content>
<tabTrigger>b_titleMatchSpeed</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
built_in("a_winDelay", ${1:"-1|0|100|r|d"})
]]></content>
<tabTrigger>b_winDelay</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
between(${1:string}, ${2:left}, ${3:right})
]]></content>
<tabTrigger>between</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
clear_split(${1:"${2:name}"})
]]></content>
<tabTrigger>clearsplit</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
clipboard("/clear")
]]></content>
<tabTrigger>clipboardclear</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
clipboard("/paste")
]]></content>
<tabTrigger>clipboardpaste</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
clipboard("/restore")
]]></content>
<tabTrigger>clipboard_restore</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
clipboard("/save")
]]></content>
<tabTrigger>clipboardsave</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
clipboard("/selected")
]]></content>
<tabTrigger>clipboardselected</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
counter_reset(${1:number}, ${2:min}, ${3:max})
]]></content>
<tabTrigger>counterreset</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
double_tap(${1:single_tap}, ${2:double_tap})
]]></content>
<tabTrigger>doubletap</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
get_selected()
]]></content>
<tabTrigger>getselected</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
list_vars(a_lineFile, a_lineNumber, a_thisFunc)
]]></content>
<tabTrigger>listvarsfunction</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
list_vars(a_lineFile, a_lineNumber, a_thisLabel)
]]></content>
<tabTrigger>listvarslabel</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
list_vars(a_lineFile, a_lineNumber)
]]></content>
<tabTrigger>listvars</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
msg_box(${1:"${2:text}"})
]]></content>
<tabTrigger>mbox</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
msg_splash(${1:"${2:text}"})
]]></content>
<tabTrigger>msplash</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
msg_tool(${1:"${2:text}"})
]]></content>
<tabTrigger>mtool</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
msg_tray(${1:"${2:text}"})
]]></content>
<tabTrigger>mtray</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
ordinal(${1:number})
]]></content>
<tabTrigger>ordinal</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
passed()
]]></content>
<tabTrigger>passed</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
quote(${1:"${2:string}"})
]]></content>
<tabTrigger>quote</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
randomer(${1:min}, ${2:max})
]]></content>
<tabTrigger>randomer</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
sp(${1:number}, ${2:[string}, ${3:suffix]})
]]></content>
<tabTrigger>sp</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
stored_in("${1:variable_name}")
]]></content>
<tabTrigger>storedin</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
strip(${1:string [}, ${2:options]})
]]></content>
<tabTrigger>strip</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
strip_blocks(${1:string})
]]></content>
<tabTrigger>stripb</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
strip_comments(${1:string})
]]></content>
<tabTrigger>stripc</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
strip_empty(${1:string})
]]></content>
<tabTrigger>stripm</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
strip_ends(${1:string})
]]></content>
<tabTrigger>stripe</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
strip_lines(${1:string})
]]></content>
<tabTrigger>stripl</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
timer_start("${1:name}")
]]></content>
<tabTrigger>timerstart</tabTrigger>
<scope>source.ahk</scope>
</snippet>
<snippet>
<content><![CDATA[
timer_stop("${1:name}")
]]></content>
<tabTrigger>timerstop</tabTrigger>
<scope>source.ahk</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment