Permalink
Browse files

• use proper Title Case (as defined by Apple, i.e. uppercase ‘From’)

• use rescan_project instead of activating Finder and then TextMate (this prevents Finder windows to go to the front, and rescan_project can easily be made a no-op in 2.0 :) )


git-svn-id: http://svn.textmate.org/trunk/Bundles/Diff.tmbundle@6949 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 899dee3 commit 7bb77cb8adf8bdc0b691eecb95f3e233ba2ae979 @sorbits sorbits committed Apr 5, 2007
Showing with 5 additions and 9 deletions.
  1. +5 −9 Commands/Apply Patch from Clipboard.tmCommand
@@ -8,17 +8,13 @@
<string>export PATCH_GET=0
export __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100
-if [[ -z $TM_FILEPATH ]]; then
- exit_discard
-else
- pbpaste | patch "$TM_FILEPATH" -p0
+if [[ -z $TM_FILEPATH ]]
+ then exit_discard
+ else pbpaste | patch "$TM_FILEPATH" -p0
fi
# Reload patched file
-osascript&lt;&lt;END
- tell app "Finder" to activate
- tell app "TextMate" to activate
-END
+rescan_project
</string>
<key>fallbackInput</key>
<string>none</string>
@@ -27,7 +23,7 @@ END
<key>keyEquivalent</key>
<string>^@D</string>
<key>name</key>
- <string>Apply Patch from Clibpoard to Current Document</string>
+ <string>Apply Patch From Clibpoard to Current Document</string>
<key>output</key>
<string>showAsTooltip</string>
<key>uuid</key>

0 comments on commit 7bb77cb

Please sign in to comment.