forked from jsallis/nu.tmbundle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added rudimentary 'documentation for word' command as well as a simpl…
…e 'execute line/selection as Nu' command
- Loading branch information
Jason Sallis
committed
Nov 2, 2008
1 parent
0a36082
commit 6dd87bb
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?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>require_cmd "${TM_NUSH:=nush}" "If you have installed Nu, then you need to either update your <tt>PATH</tt> or set the <tt>TM_NUSH</tt> shell variable (e.g. in Preferences / Advanced)" | ||
read s | ||
$TM_NUSH -e "(puts (help $s))" | ||
</string> | ||
<key>fallbackInput</key> | ||
<string>word</string> | ||
<key>input</key> | ||
<string>selection</string> | ||
<key>keyEquivalent</key> | ||
<string>^h</string> | ||
<key>name</key> | ||
<string>Documentation For Word</string> | ||
<key>output</key> | ||
<string>showAsTooltip</string> | ||
<key>scope</key> | ||
<string>source.nu</string> | ||
<key>uuid</key> | ||
<string>E47C06ED-A947-4ACF-A386-772F411FE216</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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>require_cmd "${TM_NUSH:=nush}" "If you have installed Nu, then you need to either update your <tt>PATH</tt> or set the <tt>TM_NUSH</tt> shell variable (e.g. in Preferences / Advanced)" | ||
read s | ||
$TM_NUSH -e "$s" | ||
</string> | ||
<key>fallbackInput</key> | ||
<string>line</string> | ||
<key>input</key> | ||
<string>selection</string> | ||
<key>keyEquivalent</key> | ||
<string>^E</string> | ||
<key>name</key> | ||
<string>Execute Line / Selection as Nu</string> | ||
<key>output</key> | ||
<string>afterSelectedText</string> | ||
<key>scope</key> | ||
<string>source.nu</string> | ||
<key>uuid</key> | ||
<string>5092D366-FCA7-4EAF-88B9-B6DDCA942938</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters