mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
added wrapping support to a few snippets
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>if (${1:true}) {${0:$TM_SELECTED_TEXT}} else{};</string>
|
||||
<string>if (${1:true}) {
|
||||
${0:${TM_SELECTED_TEXT:
|
||||
}}} else {};</string>
|
||||
<key>name</key>
|
||||
<string>if … else</string>
|
||||
<key>scope</key>
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>if (${1:true}) {${0:$TM_SELECTED_TEXT}};</string>
|
||||
<string>${100:if (${1:true}) {
|
||||
${0:${TM_SELECTED_TEXT:
|
||||
}}\};
|
||||
}</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^W</string>
|
||||
<key>name</key>
|
||||
<string>if</string>
|
||||
<key>scope</key>
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>try{${1:$TM_SELECTED_TEXT}}catch(e){$0};</string>
|
||||
<string>try{
|
||||
${1:${TM_SELECTED_TEXT:
|
||||
}}}catch(e){${0}};
|
||||
</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^W</string>
|
||||
<key>name</key>
|
||||
<string>try … catch</string>
|
||||
<key>scope</key>
|
||||
|
||||
Reference in New Issue
Block a user