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
|
@ -6,9 +6,6 @@ if (response.meta.status !== 200)
|
|||
return;
|
||||
}
|
||||
]]></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> -->
|
||||
<tabTrigger>alertresponse</tabTrigger>
|
||||
<description>alertresponse if status!=200</description>
|
||||
</snippet>
|
||||
|
|
|
@ -6,9 +6,6 @@ if (! response.meta.json_ok)
|
|||
return;
|
||||
}
|
||||
]]></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> -->
|
||||
<tabTrigger>alertresponse2</tabTrigger>
|
||||
<description>alertresponse if not json_ok</description>
|
||||
</snippet>
|
||||
|
|
|
@ -28,9 +28,6 @@ if __name__ == '__main__':
|
|||
raise SystemExit(main(sys.argv[1:]))
|
||||
|
||||
]]></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 -->
|
||||
<tabTrigger>argparse</tabTrigger>
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -30,9 +30,6 @@ if __name__ == '__main__':
|
|||
raise SystemExit(main(sys.argv[1:]))
|
||||
|
||||
]]></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 -->
|
||||
<tabTrigger>argparse_multi</tabTrigger>
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -7,9 +7,6 @@ p_$1.add_argument('-k', '--kwarg', dest='kwarg', default=None)
|
|||
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 -->
|
||||
<tabTrigger>subparser</tabTrigger>
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -7,9 +7,6 @@ if __name__ == '__main__':
|
|||
raise SystemExit(main(sys.argv[1:]))
|
||||
|
||||
]]></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 -->
|
||||
<tabTrigger>defmain</tabTrigger>
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
# $1
|
||||
####################################################################################################
|
||||
]]></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> -->
|
||||
<tabTrigger>hhl</tabTrigger>
|
||||
<description>hash header L (hhl)</description>
|
||||
</snippet>
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
##$1##################################################################################################
|
||||
####################################################################################################
|
||||
]]></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> -->
|
||||
<tabTrigger>hh3</tabTrigger>
|
||||
<description>hash header 3 (hh3)</description>
|
||||
</snippet>
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
<content><![CDATA[
|
||||
#$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> -->
|
||||
<tabTrigger>hh1</tabTrigger>
|
||||
<description>hash header 1 (hh1)</description>
|
||||
</snippet>
|
||||
|
|
|
@ -4,9 +4,6 @@ if __name__ == '__main__':
|
|||
raise SystemExit(main(sys.argv[1:]))
|
||||
|
||||
]]></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 -->
|
||||
<tabTrigger>ifmain</tabTrigger>
|
||||
<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>
|
||||
|
|
|
@ -19,9 +19,5 @@
|
|||
|
||||
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> -->
|
||||
<tabTrigger>tkgeometry</tabTrigger>
|
||||
</snippet>
|
||||
|
|
|
@ -35,9 +35,5 @@ class ScrollingFrame:
|
|||
def grid(self, *args, **kwargs):
|
||||
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> -->
|
||||
<tabTrigger>tkscrollframe</tabTrigger>
|
||||
</snippet>
|
||||
|
|
|
@ -27,9 +27,5 @@ class Application:
|
|||
def mainloop(self):
|
||||
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> -->
|
||||
<tabTrigger>tktemplate</tabTrigger>
|
||||
</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>
|
||||
|
|
|
@ -8,9 +8,6 @@ def main(argv):
|
|||
argv = vlogging.set_level_by_argv(log, 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 -->
|
||||
<tabTrigger>vlogging</tabTrigger>
|
||||
<scope>source.python</scope>
|
||||
</snippet>
|
||||
|
|
|
@ -28,9 +28,5 @@ document.addEventListener("DOMContentLoaded", on_pageload);
|
|||
</html>
|
||||
|
||||
]]></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> -->
|
||||
<tabTrigger>webpage</tabTrigger>
|
||||
</snippet>
|
||||
|
|
Loading…
Reference in a new issue