Normalize sublime snippets by removing comments, indenting.
This commit is contained in:
parent
f5df7b4dda
commit
1b15bdc381
19 changed files with 20 additions and 85 deletions
|
@ -7,8 +7,5 @@ if (response.meta.status !== 200)
|
|||
}
|
||||
]]></content>
|
||||
<tabTrigger>alertresponse</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<description>alertresponse if status!=200</description>
|
||||
</snippet>
|
||||
|
|
|
@ -7,8 +7,5 @@ if (! response.meta.json_ok)
|
|||
}
|
||||
]]></content>
|
||||
<tabTrigger>alertresponse2</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<description>alertresponse if not json_ok</description>
|
||||
</snippet>
|
||||
|
|
|
@ -29,8 +29,5 @@ if __name__ == '__main__':
|
|||
|
||||
]]></content>
|
||||
<tabTrigger>argparse</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -31,8 +31,5 @@ if __name__ == '__main__':
|
|||
|
||||
]]></content>
|
||||
<tabTrigger>argparse_multi</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -8,8 +8,5 @@ p_$1.add_argument('-b', '--boolkwarg', dest='boolkwarg', action='store_true')
|
|||
p_$1.set_defaults(func=$1_argparse)
|
||||
]]></content>
|
||||
<tabTrigger>subparser</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -8,8 +8,5 @@ if __name__ == '__main__':
|
|||
|
||||
]]></content>
|
||||
<tabTrigger>defmain</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -4,8 +4,5 @@
|
|||
####################################################################################################
|
||||
]]></content>
|
||||
<tabTrigger>hhl</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<description>hash header L (hhl)</description>
|
||||
</snippet>
|
||||
|
|
|
@ -5,8 +5,5 @@
|
|||
####################################################################################################
|
||||
]]></content>
|
||||
<tabTrigger>hh3</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<description>hash header 3 (hh3)</description>
|
||||
</snippet>
|
||||
|
|
|
@ -3,8 +3,5 @@
|
|||
#$1###################################################################################################
|
||||
]]></content>
|
||||
<tabTrigger>hh1</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<description>hash header 1 (hh1)</description>
|
||||
</snippet>
|
||||
|
|
|
@ -5,8 +5,5 @@ if __name__ == '__main__':
|
|||
|
||||
]]></content>
|
||||
<tabTrigger>ifmain</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -6,9 +6,5 @@ def listget(l, index, default=None):
|
|||
except IndexError:
|
||||
return default
|
||||
]]></content>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<tabTrigger>listget</tabTrigger>
|
||||
</snippet>
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
<content><![CDATA[
|
||||
raise NotImplementedError
|
||||
]]></content>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<tabTrigger>ni</tabTrigger>
|
||||
<description>raise NotImplementedError</description>
|
||||
</snippet>
|
||||
|
|
|
@ -2,9 +2,5 @@
|
|||
<content><![CDATA[
|
||||
System.out.println($1);$0
|
||||
]]></content>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<tabTrigger>sysout</tabTrigger>
|
||||
</snippet>
|
||||
|
|
|
@ -20,8 +20,4 @@
|
|||
self.t.mainloop()
|
||||
]]></content>
|
||||
<tabTrigger>tkgeometry</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
</snippet>
|
||||
|
|
|
@ -36,8 +36,4 @@ class ScrollingFrame:
|
|||
self.frame_primary.grid(*args, **kwargs)
|
||||
]]></content>
|
||||
<tabTrigger>tkscrollframe</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
</snippet>
|
||||
|
|
|
@ -28,8 +28,4 @@ class Application:
|
|||
self.t.mainloop()
|
||||
]]></content>
|
||||
<tabTrigger>tktemplate</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
</snippet>
|
||||
|
|
|
@ -2,9 +2,5 @@
|
|||
<content><![CDATA[
|
||||
utf-8
|
||||
]]></content>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
<tabTrigger>uu</tabTrigger>
|
||||
</snippet>
|
||||
|
|
|
@ -9,8 +9,5 @@ def main(argv):
|
|||
|
||||
]]></content>
|
||||
<tabTrigger>vlogging</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -29,8 +29,4 @@ document.addEventListener("DOMContentLoaded", on_pageload);
|
|||
|
||||
]]></content>
|
||||
<tabTrigger>webpage</tabTrigger>
|
||||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||
<!-- <tabTrigger>hello</tabTrigger> -->
|
||||
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||
<!-- <scope>source.python</scope> -->
|
||||
</snippet>
|
||||
|
|
Loading…
Reference in a new issue