Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

split darcs record into record file and record all

git-svn-id: http://svn.textmate.org/trunk/Bundles/Darcs.tmbundle@1513 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 772e5177ff991645d4a2c98eecb682b5ac2bd597 1 parent 75bc983
David Powers authored
Showing with 8 additions and 5 deletions.
  1. +7 −5 Commands/Record.plist
  2. +1 −0  info.plist
View
12 Commands/Record.plist
@@ -3,9 +3,11 @@
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
- <string>nop</string>
+ <string>saveActiveFile</string>
<key>command</key>
- <string>"${TM_RUBY:=ruby}" &lt;&lt;'EOF'
+ <string>cd "$TM_DIRECTORY";
+
+"${TM_RUBY:=ruby}" &lt;&lt;'EOF'
output = `CocoaDialog inputbox --title Input --informative-text 'Record Message' --button1 Record --button2 'Abort'`
output = output.split("\n")
@@ -14,7 +16,7 @@ if(output[0] !~ /^1$/)
exit
end
-output = `darcs record -a -m '#{output[1].strip.gsub(/'/, '\\\\1')}'`
+output = `darcs record -a -m '#{output[1].strip.gsub(/'/, '\\\\1')}' '#{ENV['TM_FILEPATH'][/[^\/]+$/].gsub(/'/, '\\\\1')}'`
puts(output)</string>
<key>input</key>
@@ -22,9 +24,9 @@ puts(output)</string>
<key>keyEquivalent</key>
<string>@d</string>
<key>name</key>
- <string>Record</string>
+ <string>Record File</string>
<key>output</key>
- <string>separateWindow</string>
+ <string>showAsTooltip</string>
<key>uuid</key>
<string>5E76D8C8-DE61-11D9-823F-000A95A51A76</string>
</dict>
View
1  info.plist
@@ -9,6 +9,7 @@
<string>B2B2A814-DE60-11D9-823F-000A95A51A76</string>
<string>81229AD0-DE5C-11D9-823F-000A95A51A76</string>
<string>5E76D8C8-DE61-11D9-823F-000A95A51A76</string>
+ <string>1C9B5F32-759D-4B3E-BA91-A83897C48026</string>
<string>5CEA8FE0-E28A-11D9-9477-000A95A51A76</string>
<string>242ECD6E-DE5D-11D9-823F-000A95A51A76</string>
</array>
Please sign in to comment.
Something went wrong with that request. Please try again.