Skip to content
Browse files

Apparently I've had this lying around forever:

[NEW] Diff Document with Arbitrary Fle command.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Diff.tmbundle@4663 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 267aa0d commit b5dab18bc4b495588e5bc9874da0c80b5bde1766 Chris Thomas committed Aug 10, 2006
Showing with 30 additions and 2 deletions.
  1. +28 −0 Commands/Active File With Arbitrary File….tmCommand
  2. +2 −2 info.plist
View
28 Commands/Active File With Arbitrary File….tmCommand
@@ -0,0 +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">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string>path=$(osascript&lt;&lt;END
+tell application "TextMate"
+ set theFile to choose file
+ set the result to POSIX path of theFile
+end tell
+END)
+
+diff -u "$path" -
+</string>
+ <key>input</key>
+ <string>document</string>
+ <key>keyEquivalent</key>
+ <string>^@D</string>
+ <key>name</key>
+ <string>Document With Arbitrary File…</string>
+ <key>output</key>
+ <string>openAsNewDocument</string>
+ <key>uuid</key>
+ <string>4050A252-C604-4D0C-8545-E50B22E2715B</string>
+</dict>
+</plist>
View
4 info.plist
@@ -12,13 +12,13 @@
<array>
<string>674E54F5-065E-4224-9626-673903B7C0E0</string>
<string>0979659D-126E-467F-AC07-599979A42D67</string>
+ <string>4050A252-C604-4D0C-8545-E50B22E2715B</string>
<string>------------------------------------</string>
<string>D04AFBD3-8110-11D9-8E5B-0011242E4184</string>
<string>6A811265-81DC-11D9-9AA2-000D9332809C</string>
<string>------------------------------------</string>
<string>239E196A-7106-4DC9-8FAE-0A9CA7540AFA</string>
<string>------------------------------------</string>
- <string>4050A252-C604-4D0C-8545-E50B22E2715B</string>
<string>B9091553-4317-415E-B381-4609BD453E01</string>
<string>------------------------------------</string>
<string>54D1CEF2-10AB-407B-AAB2-6AEA06B297B1</string>
@@ -32,8 +32,8 @@
<array>
<string>674E54F5-065E-4224-9626-673903B7C0E0</string>
<string>0979659D-126E-467F-AC07-599979A42D67</string>
- <string>D04AFBD3-8110-11D9-8E5B-0011242E4184</string>
<string>4050A252-C604-4D0C-8545-E50B22E2715B</string>
+ <string>D04AFBD3-8110-11D9-8E5B-0011242E4184</string>
<string>6A811265-81DC-11D9-9AA2-000D9332809C</string>
<string>239E196A-7106-4DC9-8FAE-0A9CA7540AFA</string>
<string>B9091553-4317-415E-B381-4609BD453E01</string>

0 comments on commit b5dab18

Please sign in to comment.
Something went wrong with that request. Please try again.