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

@ -6,9 +6,6 @@ if (response.meta.status !== 200)
return; return;
} }
]]></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

@ -6,9 +6,6 @@ if (! response.meta.json_ok)
return; return;
} }
]]></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

@ -28,9 +28,6 @@ if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:])) raise SystemExit(main(sys.argv[1:]))
]]></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

@ -30,9 +30,6 @@ if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:])) raise SystemExit(main(sys.argv[1:]))
]]></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

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

@ -7,9 +7,6 @@ if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:])) raise SystemExit(main(sys.argv[1:]))
]]></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

@ -3,9 +3,6 @@
# $1 # $1
#################################################################################################### ####################################################################################################
]]></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

@ -4,9 +4,6 @@
##$1################################################################################################## ##$1##################################################################################################
#################################################################################################### ####################################################################################################
]]></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

@ -2,9 +2,6 @@
<content><![CDATA[ <content><![CDATA[
#$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

@ -4,9 +4,6 @@ if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:])) raise SystemExit(main(sys.argv[1:]))
]]></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

@ -19,9 +19,5 @@
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

@ -35,9 +35,5 @@ class ScrollingFrame:
def grid(self, *args, **kwargs): def grid(self, *args, **kwargs):
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

@ -27,9 +27,5 @@ class Application:
def mainloop(self): def mainloop(self):
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

@ -8,9 +8,6 @@ def main(argv):
argv = vlogging.set_level_by_argv(log, argv) argv = vlogging.set_level_by_argv(log, 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

@ -28,9 +28,5 @@ document.addEventListener("DOMContentLoaded", on_pageload);
</html> </html>
]]></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>