Normalize sublime snippets by removing comments, indenting.

This commit is contained in:
voussoir 2021-05-06 18:37:20 -07:00
parent f5df7b4dda
commit 1b15bdc381
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
19 changed files with 20 additions and 85 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>