mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Use text as the default grammar
This commit is contained in:
20
bundles/text.tmbundle/Commands/Convert to ASCII.plist
Normal file
20
bundles/text.tmbundle/Commands/Convert to ASCII.plist
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>iconv -c -f utf-8 -t ASCII//TRANSLIT</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>word</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Transliterate Word / Selection to ASCII</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>3AA8A593-6E4C-11D9-91AF-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
23
bundles/text.tmbundle/Commands/Convert to hex.plist
Normal file
23
bundles/text.tmbundle/Commands/Convert to hex.plist
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>#!/usr/bin/env ruby -wKU
|
||||
print STDIN.read.unpack("U*").map { |e| sprintf('0x%02x', e) }.join(' ')</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>character</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^X</string>
|
||||
<key>name</key>
|
||||
<string>Convert Character / Selection to Hex</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>7C9736B2-B851-11D9-B05D-00039369B986</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>bundleUUID</key>
|
||||
<string>B7BC3FFD-6E4B-11D9-91AF-000D93589AF6</string>
|
||||
<key>command</key>
|
||||
<string>res=$(ruby -rui -e"print TextMate::UI.request_string(:title => 'Filter Matching Lines', :prompt => 'Enter a pattern:', :button1 => 'Filter', :button2 => 'Cancel').to_s")
|
||||
|
||||
[[ -z "$res" ]] && exit_discard
|
||||
export pattern="$res"
|
||||
|
||||
# This could be done with grep, but Python's RE is closer to oniguruma
|
||||
"${TM_PYTHON:-python}" -c '
|
||||
import sys, os, re, traceback
|
||||
try:
|
||||
pattern = re.compile(os.environ["pattern"])
|
||||
except re.error, e:
|
||||
sys.stderr.write("Invalid pattern: %s" % e)
|
||||
sys.exit(1)
|
||||
for line in sys.stdin:
|
||||
if pattern.search(line):
|
||||
sys.stdout.write(line)
|
||||
' || exit_show_tool_tip
|
||||
</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Copy Matching Lines into New Document</string>
|
||||
<key>output</key>
|
||||
<string>openAsNewDocument</string>
|
||||
<key>uuid</key>
|
||||
<string>965DF29E-4EBD-457A-9A61-56D920C35F72</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>bundleUUID</key>
|
||||
<string>B7BC3FFD-6E4B-11D9-91AF-000D93589AF6</string>
|
||||
<key>command</key>
|
||||
<string>res=$(ruby -rui -e"print TextMate::UI.request_string(:title => 'Filter Non-Matching Lines', :prompt => 'Enter a pattern:', :button1 => 'Filter', :button2 => 'Cancel').to_s")
|
||||
|
||||
[[ -z "$res" ]] && exit_discard
|
||||
export pattern="$res"
|
||||
|
||||
# This could be done with grep, but Python's RE is closer to oniguruma
|
||||
"${TM_PYTHON:-python}" -c '
|
||||
import sys, os, re, traceback
|
||||
try:
|
||||
pattern = re.compile(os.environ["pattern"])
|
||||
except re.error, e:
|
||||
sys.stderr.write("Invalid pattern: %s" % e)
|
||||
sys.exit(1)
|
||||
for line in sys.stdin:
|
||||
if not pattern.search(line):
|
||||
sys.stdout.write(line)
|
||||
' || exit_show_tool_tip
|
||||
</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Copy Non-Matching Lines into New Document</string>
|
||||
<key>output</key>
|
||||
<string>openAsNewDocument</string>
|
||||
<key>uuid</key>
|
||||
<string>8109F2C2-FF63-46F7-83F3-D2318290FC11</string>
|
||||
</dict>
|
||||
</plist>
|
||||
32
bundles/text.tmbundle/Commands/Decrypt selection.plist
Normal file
32
bundles/text.tmbundle/Commands/Decrypt selection.plist
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>get_pw () {
|
||||
ruby -rui -e"print TextMate::UI.request_secure_string(:title => 'Decrypt AES 128 Encrypted Text', :prompt => '$1', :button1 => '$2', :button2 => 'Cancel').to_s"
|
||||
}
|
||||
|
||||
pw=$(get_pw 'What is the password?' Decrypt)
|
||||
[[ -z "$pw" ]] && exit_discard
|
||||
|
||||
if ! openssl enc -d -aes128 -base64 -pass "pass:$pw"; then
|
||||
exit_show_tool_tip
|
||||
fi
|
||||
</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>document</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^@E</string>
|
||||
<key>name</key>
|
||||
<string>AES Decrypt Document / Selection With Password…</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>4B22577B-BC8E-11D9-8946-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>bundleUUID</key>
|
||||
<string>B7BC3FFD-6E4B-11D9-91AF-000D93589AF6</string>
|
||||
<key>command</key>
|
||||
<string>res=$(ruby -rui -e"print TextMate::UI.request_string(:title => 'Distill Text', :prompt => 'Enter a pattern:', :button1 => 'Filter', :button2 => 'Cancel').to_s")
|
||||
|
||||
[[ -z "$res" ]] && exit_discard
|
||||
export pattern="$res"
|
||||
|
||||
# This could be done with grep, but Python's RE is closer to oniguruma
|
||||
"${TM_PYTHON:-python}" -c '
|
||||
import sys, os, re, traceback
|
||||
try:
|
||||
pattern = re.compile(os.environ["pattern"])
|
||||
except re.error, e:
|
||||
sys.stderr.write("Invalid pattern: %s" % e)
|
||||
sys.exit(1)
|
||||
mate = "\"%s/bin/mate\" -a" % os.environ["TM_SUPPORT_PATH"]
|
||||
pb = os.popen(mate, "w")
|
||||
for line in sys.stdin:
|
||||
if pattern.search(line):
|
||||
pb.write(line)
|
||||
else:
|
||||
sys.stdout.write(line)
|
||||
pb.close()
|
||||
' || exit_show_tool_tip
|
||||
|
||||
</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Distill Document / Selection</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>DA5AD0D9-F7C0-4010-9FDC-FF01B0434F9A</string>
|
||||
</dict>
|
||||
</plist>
|
||||
38
bundles/text.tmbundle/Commands/Duplicate Line.plist
Normal file
38
bundles/text.tmbundle/Commands/Duplicate Line.plist
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>#!/usr/bin/env ruby -wKU
|
||||
|
||||
# If there’s a selection, output that twice (as a snippet)
|
||||
# leaving the duplicate as the new selected text.
|
||||
# Otherwise split the current line around the caret and
|
||||
# output “right, left” to duplicate the line, leaving the
|
||||
# caret in the same place on the new line
|
||||
|
||||
require File.join(ENV["TM_SUPPORT_PATH"], "lib/exit_codes.rb")
|
||||
require File.join(ENV["TM_SUPPORT_PATH"], "lib/escape.rb")
|
||||
|
||||
if ENV['TM_SELECTED_TEXT'] != nil
|
||||
TextMate.exit_insert_snippet(e_sn(ENV['TM_SELECTED_TEXT']) + "${0:" + e_snp(ENV['TM_SELECTED_TEXT']) + "}")
|
||||
else
|
||||
col = ENV['TM_LINE_INDEX'].to_i
|
||||
TextMate.exit_insert_text(ENV['TM_CURRENT_LINE'][col..-1] + "\n" + ENV['TM_CURRENT_LINE'][0...col])
|
||||
end</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>none</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^D</string>
|
||||
<key>name</key>
|
||||
<string>Duplicate Line / Selection</string>
|
||||
<key>output</key>
|
||||
<string>afterSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>C46A9DBC-0B06-49DF-838B-491B529ECF22</string>
|
||||
</dict>
|
||||
</plist>
|
||||
33
bundles/text.tmbundle/Commands/Encrypt selection.plist
Normal file
33
bundles/text.tmbundle/Commands/Encrypt selection.plist
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>get_pw () {
|
||||
ruby -rui -e"print TextMate::UI.request_secure_string(:title => 'Encrypt Text With AES 128', :prompt => '$1', :button1 => '$2', :button2 => 'Cancel').to_s"
|
||||
}
|
||||
pw1=$(get_pw 'What password should be used?' Continue)
|
||||
[[ -z "$pw1" ]] && exit_discard
|
||||
pw2=$(get_pw 'Enter password again to verify.' Encrypt)
|
||||
|
||||
if [[ "$pw1" == "$pw2" ]];
|
||||
then openssl enc -e -aes128 -base64 -pass "pass:$pw1"
|
||||
else exit_show_tool_tip 'Password mismatch! Please play again.'
|
||||
fi
|
||||
</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>document</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^@E</string>
|
||||
<key>name</key>
|
||||
<string>AES Encrypt Document / Selection With Password…</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>D39DC176-BC8D-11D9-8946-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
22
bundles/text.tmbundle/Commands/Enumerate Lines.plist
Normal file
22
bundles/text.tmbundle/Commands/Enumerate Lines.plist
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>cat -n|expand -8</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>document</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>Add Line Numbers to Document / Selection</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>8085013F-8DEA-11D9-B421-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
25
bundles/text.tmbundle/Commands/Open Current URL.plist
Normal file
25
bundles/text.tmbundle/Commands/Open Current URL.plist
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>open "$(cat)"
|
||||
</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>scope</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>Open Current URL</string>
|
||||
<key>output</key>
|
||||
<string>discard</string>
|
||||
<key>scope</key>
|
||||
<string>markup.underline.link - markup.underline.link.relative</string>
|
||||
<key>uuid</key>
|
||||
<string>5A08E461-05CC-4C03-9DC8-BF118594EA3E</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>ruby -pe'$_ = (rand * 100000000).round.to_s + "\t" + $_'|sort|cut -f2-</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Randomize Lines in Document / Selection</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>90291A6E-34F6-4FD5-BA82-6BB6FB4DD492</string>
|
||||
</dict>
|
||||
</plist>
|
||||
20
bundles/text.tmbundle/Commands/Sort & Uniq.plist
Normal file
20
bundles/text.tmbundle/Commands/Sort & Uniq.plist
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>sort -f|uniq</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>Sort Lines & Remove Duplicates</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>3010E2A8-6E4F-11D9-A18D-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
22
bundles/text.tmbundle/Commands/Sort.plist
Normal file
22
bundles/text.tmbundle/Commands/Sort.plist
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>sort -f</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>document</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>Sort Lines in Document / Selection</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>273853DF-6E4F-11D9-A18D-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>say `echo "$TM_SELECTED_TEXT"` &</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Speak Document / Selection</string>
|
||||
<key>output</key>
|
||||
<string>discard</string>
|
||||
<key>uuid</key>
|
||||
<string>D26BEEE3-7439-4B7E-AD9D-9A144CDC5873</string>
|
||||
</dict>
|
||||
</plist>
|
||||
20
bundles/text.tmbundle/Commands/Strip non-printables.plist
Normal file
20
bundles/text.tmbundle/Commands/Strip non-printables.plist
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>perl -pe 's/[^\t\n\x20-\xFF]|\x7F|\xC2[\x80-\x9F]//g'</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>document</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Remove Unprintable Characters in Document / Selection</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>BEC25DC3-6E4B-11D9-91AF-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
20
bundles/text.tmbundle/Commands/Strip trailing spaces.plist
Normal file
20
bundles/text.tmbundle/Commands/Strip trailing spaces.plist
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>perl -pe 's/[\t ]+$//g'</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>document</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Remove Trailing Spaces in Document / Selection</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>0F8C1F78-6E4C-11D9-91AF-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
36
bundles/text.tmbundle/Commands/Word Count.plist
Normal file
36
bundles/text.tmbundle/Commands/Word Count.plist
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>beforeRunningCommand</key>
|
||||
<string>nop</string>
|
||||
<key>command</key>
|
||||
<string>#!/usr/bin/env ruby -wKU
|
||||
|
||||
def pretty(number)
|
||||
number.to_s.gsub(/\d{1,3}(?=\d{3}+(?!\d))/, '\0,')
|
||||
end
|
||||
|
||||
counts = `wc -lwc`.scan(/\d+/)
|
||||
counts[0] = counts[0].to_i + 1 # increase one to the line count
|
||||
|
||||
%w[ line word byte ].each do |unit|
|
||||
cnt = counts.shift
|
||||
plural = cnt.to_i != 1 ? 's' : ''
|
||||
printf("%11.11s %s%s\n", pretty(cnt), unit, plural)
|
||||
end
|
||||
</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>document</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^N</string>
|
||||
<key>name</key>
|
||||
<string>Statistics for Document / Selection (Word Count)</string>
|
||||
<key>output</key>
|
||||
<string>showAsTooltip</string>
|
||||
<key>uuid</key>
|
||||
<string>AA202E76-8A0A-11D9-B85D-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
25
bundles/text.tmbundle/Macros/Delete Line.plist
Normal file
25
bundles/text.tmbundle/Macros/Delete Line.plist
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>commands</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>selectHardLine:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>deleteBackward:</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^K</string>
|
||||
<key>name</key>
|
||||
<string>Delete Line</string>
|
||||
<key>scopeType</key>
|
||||
<string>local</string>
|
||||
<key>uuid</key>
|
||||
<string>FB8960DB-AA2E-11D9-8E27-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>commands</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>deleteToBeginningOfLine:</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>keyEquivalent</key>
|
||||
<string>@</string>
|
||||
<key>name</key>
|
||||
<string>Delete to Beginning of Line</string>
|
||||
<key>uuid</key>
|
||||
<string>F22BEB71-2DE3-4183-BB10-0199CC328169</string>
|
||||
</dict>
|
||||
</plist>
|
||||
31
bundles/text.tmbundle/Macros/EOL + . + LF.plist
Normal file
31
bundles/text.tmbundle/Macros/EOL + . + LF.plist
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>commands</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>moveToEndOfParagraph:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>argument</key>
|
||||
<string>.</string>
|
||||
<key>command</key>
|
||||
<string>insertText:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>insertNewline:</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>keyEquivalent</key>
|
||||
<string>$@
|
||||
</string>
|
||||
<key>name</key>
|
||||
<string>Move to EOL and Insert "." + LF</string>
|
||||
<key>scope</key>
|
||||
<string>text</string>
|
||||
<key>uuid</key>
|
||||
<string>E86C9A77-5B48-43C6-A712-A61B616269E6</string>
|
||||
</dict>
|
||||
29
bundles/text.tmbundle/Macros/EOL + ..plist
Normal file
29
bundles/text.tmbundle/Macros/EOL + ..plist
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>commands</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>moveToEndOfParagraph:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>argument</key>
|
||||
<string>.</string>
|
||||
<key>command</key>
|
||||
<string>insertText:</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>keyEquivalent</key>
|
||||
<string>~@
|
||||
</string>
|
||||
<key>name</key>
|
||||
<string>Move to EOL and Insert “.”</string>
|
||||
<key>scope</key>
|
||||
<string>text</string>
|
||||
<key>scopeType</key>
|
||||
<string>local</string>
|
||||
<key>uuid</key>
|
||||
<string>80CC504F-B13B-11D9-B41F-000D93589AF6</string>
|
||||
</dict>
|
||||
46
bundles/text.tmbundle/Macros/Join Lines.plist
Normal file
46
bundles/text.tmbundle/Macros/Join Lines.plist
Normal file
@@ -0,0 +1,46 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>commands</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>argument</key>
|
||||
<dict>
|
||||
<key>action</key>
|
||||
<string>findNext</string>
|
||||
<key>findInProjectIgnoreCase</key>
|
||||
<false/>
|
||||
<key>findInProjectRegularExpression</key>
|
||||
<false/>
|
||||
<key>findString</key>
|
||||
<string>$\n\s*</string>
|
||||
<key>ignoreCase</key>
|
||||
<false/>
|
||||
<key>regularExpression</key>
|
||||
<true/>
|
||||
<key>replaceAllScope</key>
|
||||
<string>document</string>
|
||||
<key>replaceString</key>
|
||||
<string>key</string>
|
||||
<key>wrapAround</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>command</key>
|
||||
<string>findWithOptions:</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>deleteForward:</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^J</string>
|
||||
<key>name</key>
|
||||
<string>Join Line With Next</string>
|
||||
<key>scopeType</key>
|
||||
<string>local</string>
|
||||
<key>uuid</key>
|
||||
<string>3D7504EE-B927-4D3D-A3CC-BFB189027EE7</string>
|
||||
</dict>
|
||||
</plist>
|
||||
17
bundles/text.tmbundle/Preferences/Markup style: Bold.plist
Normal file
17
bundles/text.tmbundle/Preferences/Markup style: Bold.plist
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Style: Bold</string>
|
||||
<key>scope</key>
|
||||
<string>markup.bold</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>bold</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>A088E2CA-03E7-4A8C-855C-AC954E739D6D</string>
|
||||
</dict>
|
||||
</plist>
|
||||
17
bundles/text.tmbundle/Preferences/Markup style: Italic.plist
Normal file
17
bundles/text.tmbundle/Preferences/Markup style: Italic.plist
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Style: Italic</string>
|
||||
<key>scope</key>
|
||||
<string>markup.italic</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>italic</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>2EE6D01F-50BC-434B-BE45-54D29CACB3E0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Style: Underline</string>
|
||||
<key>scope</key>
|
||||
<string>markup.underline</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>underline</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>4CCD8369-40E4-422A-ABE7-C32F3721AFEF</string>
|
||||
</dict>
|
||||
</plist>
|
||||
65
bundles/text.tmbundle/Preferences/Miscellaneous.plist
Normal file
65
bundles/text.tmbundle/Preferences/Miscellaneous.plist
Normal file
@@ -0,0 +1,65 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Miscellaneous</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>highlightPairs</key>
|
||||
<array>
|
||||
<array>
|
||||
<string>(</string>
|
||||
<string>)</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>{</string>
|
||||
<string>}</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>[</string>
|
||||
<string>]</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>“</string>
|
||||
<string>”</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>‘</string>
|
||||
<string>’</string>
|
||||
</array>
|
||||
</array>
|
||||
<key>smartTypingPairs</key>
|
||||
<array>
|
||||
<array>
|
||||
<string>"</string>
|
||||
<string>"</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>(</string>
|
||||
<string>)</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>{</string>
|
||||
<string>}</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>[</string>
|
||||
<string>]</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>“</string>
|
||||
<string>”</string>
|
||||
</array>
|
||||
<array>
|
||||
<string>‘</string>
|
||||
<string>’</string>
|
||||
</array>
|
||||
</array>
|
||||
<key>unIndentedLinePattern</key>
|
||||
<string>^\s*$</string>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>3E8C2307-8175-4A58-BE07-785713D5837A</string>
|
||||
</dict>
|
||||
</plist>
|
||||
17
bundles/text.tmbundle/Preferences/Spell checking.plist
Normal file
17
bundles/text.tmbundle/Preferences/Spell checking.plist
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Spell Checking: Disable</string>
|
||||
<key>scope</key>
|
||||
<string>markup.underline.link, markup.raw</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>spellChecking</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>uuid</key>
|
||||
<string>613405D5-67B6-4281-94C9-9148E54C66FB</string>
|
||||
</dict>
|
||||
</plist>
|
||||
14
bundles/text.tmbundle/Snippets/010 Copyright.plist
Normal file
14
bundles/text.tmbundle/Snippets/010 Copyright.plist
Normal file
@@ -0,0 +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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>(c) Copyright `date +%Y` $TM_FULLNAME. All Rights Reserved. </string>
|
||||
<key>name</key>
|
||||
<string>Copyright Notice</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>c)</string>
|
||||
<key>uuid</key>
|
||||
<string>BC8B89E4-5F16-11D9-B9C3-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
17
bundles/text.tmbundle/Snippets/Conitnue bullet.plist
Normal file
17
bundles/text.tmbundle/Snippets/Conitnue bullet.plist
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>
|
||||
• </string>
|
||||
<key>keyEquivalent</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>Continue Bullet</string>
|
||||
<key>scope</key>
|
||||
<string>meta.bullet-point</string>
|
||||
<key>uuid</key>
|
||||
<string>C30BA263-B10E-11D9-9975-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
17
bundles/text.tmbundle/Snippets/Conitnue light bullet.plist
Normal file
17
bundles/text.tmbundle/Snippets/Conitnue light bullet.plist
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>
|
||||
· </string>
|
||||
<key>keyEquivalent</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>Continue Light Bullet</string>
|
||||
<key>scope</key>
|
||||
<string>meta.bullet-point.light</string>
|
||||
<key>uuid</key>
|
||||
<string>EA149DAB-B10E-11D9-9975-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
17
bundles/text.tmbundle/Snippets/Conitnue star bullet.plist
Normal file
17
bundles/text.tmbundle/Snippets/Conitnue star bullet.plist
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>
|
||||
* </string>
|
||||
<key>keyEquivalent</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>Continue Star Bullet</string>
|
||||
<key>scope</key>
|
||||
<string>meta.bullet-point.star</string>
|
||||
<key>uuid</key>
|
||||
<string>B5E22191-B151-11D9-85C9-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
14
bundles/text.tmbundle/Snippets/Insert ISO date.plist
Normal file
14
bundles/text.tmbundle/Snippets/Insert ISO date.plist
Normal file
@@ -0,0 +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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>content</key>
|
||||
<string>`date +%Y-%m-%d`</string>
|
||||
<key>name</key>
|
||||
<string>Current Date — YYYY-MM-DD</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>isoD</string>
|
||||
<key>uuid</key>
|
||||
<string>C9CAF012-6E50-11D9-AA12-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
14
bundles/text.tmbundle/Snippets/Lorem ipsum.plist
Normal file
14
bundles/text.tmbundle/Snippets/Lorem ipsum.plist
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!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>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</string>
|
||||
<key>name</key>
|
||||
<string>Lorem ipsum</string>
|
||||
<key>tabTrigger</key>
|
||||
<string>lorem</string>
|
||||
<key>uuid</key>
|
||||
<string>BA9A2B17-DA89-49A5-809B-AC7510C24625</string>
|
||||
</dict>
|
||||
</plist>
|
||||
83
bundles/text.tmbundle/Syntaxes/Plain text.plist
Normal file
83
bundles/text.tmbundle/Syntaxes/Plain text.plist
Normal file
@@ -0,0 +1,83 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>fileTypes</key>
|
||||
<array>
|
||||
<string>txt</string>
|
||||
</array>
|
||||
<key>keyEquivalent</key>
|
||||
<string>^~P</string>
|
||||
<key>name</key>
|
||||
<string>Plain Text</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.item.text</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>^\s*(•).*$\n?</string>
|
||||
<key>name</key>
|
||||
<string>meta.bullet-point.strong.text</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.item.text</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>^\s*(·).*$\n?</string>
|
||||
<key>name</key>
|
||||
<string>meta.bullet-point.light.text</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.item.text</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>^\s*(\*).*$\n?</string>
|
||||
<key>name</key>
|
||||
<string>meta.bullet-point.star.text</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>^([ \t]*)(?=\S)</string>
|
||||
<key>contentName</key>
|
||||
<string>meta.paragraph.text</string>
|
||||
<key>end</key>
|
||||
<string>^(?!\1(?=\S))</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?x)
|
||||
( (https?|s?ftp|ftps|file|smb|afp|nfs|(x-)?man|gopher|txmt)://|mailto:)
|
||||
[-:@a-zA-Z0-9_.,~%+/?=&#]+(?<![.,?:])
|
||||
</string>
|
||||
<key>name</key>
|
||||
<string>markup.underline.link.text</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>scopeName</key>
|
||||
<string>text.plain</string>
|
||||
<key>uuid</key>
|
||||
<string>3130E4FA-B10E-11D9-9F75-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
14
bundles/text.tmbundle/Templates/Empty file/info.plist
Normal file
14
bundles/text.tmbundle/Templates/Empty file/info.plist
Normal file
@@ -0,0 +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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>touch "$TM_NEW_FILE"</string>
|
||||
<key>isDefault</key>
|
||||
<string>1</string>
|
||||
<key>name</key>
|
||||
<string>Empty File</string>
|
||||
<key>uuid</key>
|
||||
<string>2D3AFF01-6DFB-11D9-91EB-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
17
bundles/text.tmbundle/Templates/From Clipboard/info.plist
Normal file
17
bundles/text.tmbundle/Templates/From Clipboard/info.plist
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>command</key>
|
||||
<string>if [[ ! -f "$TM_NEW_FILE" ]]; then
|
||||
__CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 \
|
||||
pbpaste > "$TM_NEW_FILE" | tr '\r' '\n'
|
||||
fi</string>
|
||||
<key>extension</key>
|
||||
<string>txt</string>
|
||||
<key>name</key>
|
||||
<string>From Clipboard</string>
|
||||
<key>uuid</key>
|
||||
<string>1D357AB2-687A-4C74-AADE-6AE6684E97DC</string>
|
||||
</dict>
|
||||
</plist>
|
||||
139
bundles/text.tmbundle/info.plist
Normal file
139
bundles/text.tmbundle/info.plist
Normal file
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>contactEmailRot13</key>
|
||||
<string>gz-ohaqyrf@znpebzngrf.pbz</string>
|
||||
<key>contactName</key>
|
||||
<string>Allan Odgaard</string>
|
||||
<key>deleted</key>
|
||||
<array>
|
||||
<string>CF8570E4-389B-4928-8908-BF3B6A5E8422</string>
|
||||
</array>
|
||||
<key>description</key>
|
||||
<string>The text bundle has a lot of support for plain text and is a requisite for working with text.</string>
|
||||
<key>mainMenu</key>
|
||||
<dict>
|
||||
<key>excludedItems</key>
|
||||
<array>
|
||||
<string>5A08E461-05CC-4C03-9DC8-BF118594EA3E</string>
|
||||
<string>C30BA263-B10E-11D9-9975-000D93589AF6</string>
|
||||
<string>EA149DAB-B10E-11D9-9975-000D93589AF6</string>
|
||||
<string>B5E22191-B151-11D9-85C9-000D93589AF6</string>
|
||||
<string>80CC504F-B13B-11D9-B41F-000D93589AF6</string>
|
||||
<string>E86C9A77-5B48-43C6-A712-A61B616269E6</string>
|
||||
<string>F22BEB71-2DE3-4183-BB10-0199CC328169</string>
|
||||
</array>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<string>818D10A3-F827-424A-BCBF-6DC6CB62966A</string>
|
||||
<string>DAF7B200-5B75-4999-BBC3-D1ADD64E1FA1</string>
|
||||
<string>172F6528-7561-44FC-BFAD-A06C645D5AFB</string>
|
||||
<string>4D6C0A7A-263C-4E2E-B2F2-1FA912E14490</string>
|
||||
<string>------------------------------------</string>
|
||||
<string>FB8960DB-AA2E-11D9-8E27-000D93589AF6</string>
|
||||
<string>C46A9DBC-0B06-49DF-838B-491B529ECF22</string>
|
||||
<string>3D7504EE-B927-4D3D-A3CC-BFB189027EE7</string>
|
||||
<string>------------------------------------</string>
|
||||
<string>8085013F-8DEA-11D9-B421-000D93589AF6</string>
|
||||
<string>AA202E76-8A0A-11D9-B85D-000D93589AF6</string>
|
||||
<string>------------------------------------</string>
|
||||
<string>BC8B89E4-5F16-11D9-B9C3-000D93589AF6</string>
|
||||
<string>C9CAF012-6E50-11D9-AA12-000D93589AF6</string>
|
||||
<string>BA9A2B17-DA89-49A5-809B-AC7510C24625</string>
|
||||
<string>D26BEEE3-7439-4B7E-AD9D-9A144CDC5873</string>
|
||||
</array>
|
||||
<key>submenus</key>
|
||||
<dict>
|
||||
<key>172F6528-7561-44FC-BFAD-A06C645D5AFB</key>
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<string>DA5AD0D9-F7C0-4010-9FDC-FF01B0434F9A</string>
|
||||
<string>965DF29E-4EBD-457A-9A61-56D920C35F72</string>
|
||||
<string>8109F2C2-FF63-46F7-83F3-D2318290FC11</string>
|
||||
</array>
|
||||
<key>name</key>
|
||||
<string>Filtering</string>
|
||||
</dict>
|
||||
<key>4D6C0A7A-263C-4E2E-B2F2-1FA912E14490</key>
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<string>273853DF-6E4F-11D9-A18D-000D93589AF6</string>
|
||||
<string>3010E2A8-6E4F-11D9-A18D-000D93589AF6</string>
|
||||
<string>------------------------------------</string>
|
||||
<string>90291A6E-34F6-4FD5-BA82-6BB6FB4DD492</string>
|
||||
</array>
|
||||
<key>name</key>
|
||||
<string>Sorting</string>
|
||||
</dict>
|
||||
<key>818D10A3-F827-424A-BCBF-6DC6CB62966A</key>
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<string>7C9736B2-B851-11D9-B05D-00039369B986</string>
|
||||
<string>0F8C1F78-6E4C-11D9-91AF-000D93589AF6</string>
|
||||
<string>BEC25DC3-6E4B-11D9-91AF-000D93589AF6</string>
|
||||
<string>3AA8A593-6E4C-11D9-91AF-000D93589AF6</string>
|
||||
</array>
|
||||
<key>name</key>
|
||||
<string>Converting / Stripping</string>
|
||||
</dict>
|
||||
<key>DAF7B200-5B75-4999-BBC3-D1ADD64E1FA1</key>
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<string>D39DC176-BC8D-11D9-8946-000D93589AF6</string>
|
||||
<string>4B22577B-BC8E-11D9-8946-000D93589AF6</string>
|
||||
</array>
|
||||
<key>name</key>
|
||||
<string>Encryption</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>name</key>
|
||||
<string>Text</string>
|
||||
<key>ordering</key>
|
||||
<array>
|
||||
<string>8085013F-8DEA-11D9-B421-000D93589AF6</string>
|
||||
<string>D39DC176-BC8D-11D9-8946-000D93589AF6</string>
|
||||
<string>4B22577B-BC8E-11D9-8946-000D93589AF6</string>
|
||||
<string>7C9736B2-B851-11D9-B05D-00039369B986</string>
|
||||
<string>C46A9DBC-0B06-49DF-838B-491B529ECF22</string>
|
||||
<string>5A08E461-05CC-4C03-9DC8-BF118594EA3E</string>
|
||||
<string>0F8C1F78-6E4C-11D9-91AF-000D93589AF6</string>
|
||||
<string>BEC25DC3-6E4B-11D9-91AF-000D93589AF6</string>
|
||||
<string>273853DF-6E4F-11D9-A18D-000D93589AF6</string>
|
||||
<string>3010E2A8-6E4F-11D9-A18D-000D93589AF6</string>
|
||||
<string>90291A6E-34F6-4FD5-BA82-6BB6FB4DD492</string>
|
||||
<string>AA202E76-8A0A-11D9-B85D-000D93589AF6</string>
|
||||
<string>3AA8A593-6E4C-11D9-91AF-000D93589AF6</string>
|
||||
<string>D26BEEE3-7439-4B7E-AD9D-9A144CDC5873</string>
|
||||
<string>965DF29E-4EBD-457A-9A61-56D920C35F72</string>
|
||||
<string>8109F2C2-FF63-46F7-83F3-D2318290FC11</string>
|
||||
<string>DA5AD0D9-F7C0-4010-9FDC-FF01B0434F9A</string>
|
||||
<string>FB8960DB-AA2E-11D9-8E27-000D93589AF6</string>
|
||||
<string>3D7504EE-B927-4D3D-A3CC-BFB189027EE7</string>
|
||||
<string>80CC504F-B13B-11D9-B41F-000D93589AF6</string>
|
||||
<string>E86C9A77-5B48-43C6-A712-A61B616269E6</string>
|
||||
<string>F22BEB71-2DE3-4183-BB10-0199CC328169</string>
|
||||
<string>C30BA263-B10E-11D9-9975-000D93589AF6</string>
|
||||
<string>EA149DAB-B10E-11D9-9975-000D93589AF6</string>
|
||||
<string>B5E22191-B151-11D9-85C9-000D93589AF6</string>
|
||||
<string>BC8B89E4-5F16-11D9-B9C3-000D93589AF6</string>
|
||||
<string>C9CAF012-6E50-11D9-AA12-000D93589AF6</string>
|
||||
<string>BA9A2B17-DA89-49A5-809B-AC7510C24625</string>
|
||||
<string>3130E4FA-B10E-11D9-9F75-000D93589AF6</string>
|
||||
<string>3E8C2307-8175-4A58-BE07-785713D5837A</string>
|
||||
<string>613405D5-67B6-4281-94C9-9148E54C66FB</string>
|
||||
<string>A088E2CA-03E7-4A8C-855C-AC954E739D6D</string>
|
||||
<string>2EE6D01F-50BC-434B-BE45-54D29CACB3E0</string>
|
||||
<string>4CCD8369-40E4-422A-ABE7-C32F3721AFEF</string>
|
||||
<string>2D3AFF01-6DFB-11D9-91EB-000D93589AF6</string>
|
||||
<string>1D357AB2-687A-4C74-AADE-6AE6684E97DC</string>
|
||||
</array>
|
||||
<key>uuid</key>
|
||||
<string>B7BC3FFD-6E4B-11D9-91AF-000D93589AF6</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -26,7 +26,7 @@ class TextMateGrammar
|
||||
@grammarsByExtension[extension] = grammar
|
||||
|
||||
@grammarForExtension: (extension) ->
|
||||
@grammarsByExtension[extension]
|
||||
@grammarsByExtension[extension] or @grammarsByExtension["txt"]
|
||||
|
||||
name: null
|
||||
repository: null
|
||||
|
||||
Reference in New Issue
Block a user