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