Skip to content

Commit

Permalink
Remove require_cmd usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
infininight committed Nov 14, 2011
1 parent 93a4782 commit ea1f6a5
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 23 deletions.
17 changes: 13 additions & 4 deletions Commands/Cancel.tmCommand
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd moinedit
<string>#!/usr/bin/env bash
moinedit -c</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>name</key>
<string>Cancel</string>
<key>output</key>
<string>showAsHTML</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>scope</key>
<string>text.moinmoin</string>
<key>uuid</key>
<string>395D5D13-1F9A-444C-A27E-3B98E268D9FE</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
18 changes: 13 additions & 5 deletions Commands/Fetch Document [URL From Safari].tmCommand
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd moinedit
require_cmd mate
mate "$(moinedit -e)"</string>
<string>#!/usr/bin/env bash
"$TM_SUPPORT_PATH/bin/mate" "$(moinedit -e)"</string>
<key>input</key>
<string>none</string>
<key>inputFormat</key>
<string>text</string>
<key>name</key>
<string>Fetch Document [URL From Safari]</string>
<key>output</key>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>discard</string>
<key>uuid</key>
<string>880EE1CB-04F8-4944-946B-281BCD0B71B0</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
15 changes: 12 additions & 3 deletions Commands/Help [moinedit].tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd moinedit
<string>#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
Expand All @@ -15,13 +16,21 @@ html_footer
</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>name</key>
<string>Help</string>
<key>output</key>
<string>showAsHTML</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>scope</key>
<string>text.moinmoin</string>
<key>uuid</key>
<string>75C7A294-C2B3-4AF9-86A0-50D4351CF35C</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
17 changes: 13 additions & 4 deletions Commands/Preview.tmCommand
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd moinedit
<string>#!/usr/bin/env bash
moinedit -p</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^~@p</string>
<key>name</key>
<string>Preview</string>
<key>output</key>
<string>showAsHTML</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>scope</key>
<string>text.moinmoin</string>
<key>uuid</key>
<string>A06706CA-0E97-449E-8B45-142594657325</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
15 changes: 12 additions & 3 deletions Commands/Reload Document.tmCommand
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd moinedit
<string>#!/usr/bin/env bash
cat "$(moinedit -r)"</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>@r</string>
<key>name</key>
<string>Reload Document</string>
<key>output</key>
<key>outputCaret</key>
<string>interpolateByLine</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>replaceDocument</string>
<key>scope</key>
<string>text.moinmoin</string>
<key>uuid</key>
<string>05D7D0D5-C981-40CA-85D6-0539B2E9B7EA</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
17 changes: 13 additions & 4 deletions Commands/Save.tmCommand
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>require_cmd moinedit
<string>#!/usr/bin/env bash
moinedit -s</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^@p</string>
<key>name</key>
<string>Save</string>
<key>output</key>
<string>showAsHTML</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>scope</key>
<string>text.moinmoin</string>
<key>uuid</key>
<string>F0FC25A6-CC65-404E-AC7E-098ABC3682A2</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>

0 comments on commit ea1f6a5

Please sign in to comment.