Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

• this overloads the word count (⌃⇧N) for diff files to instead show …

…number of added and removed lines (when rewriting code, the patch should hopefully not increase the number of lines :) )

git-svn-id: http://svn.textmate.org/trunk/Bundles/Diff.tmbundle@3398 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit a3b0e764b086bdb8311b3d46050d5706c1b90cbe 1 parent 40cb979
@sorbits sorbits authored
Showing with 41 additions and 0 deletions.
  1. +23 −0 Commands/Statistics (Lines Added:Removed).plist
  2. +18 −0 info.plist
View
23 Commands/Statistics (Lines Added:Removed).plist
@@ -0,0 +1,23 @@
+<?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>tee &gt;(add=$(grep ^+|wc -l); echo 1&gt;&amp;2 "Lines Added $add") \
+ |{ rem=$(grep ^-|wc -l); wait; echo "Lines Removed $rem"; }</string>
+ <key>input</key>
+ <string>document</string>
+ <key>keyEquivalent</key>
+ <string>^N</string>
+ <key>name</key>
+ <string>Statistics (Lines Added/Removed)</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>source.diff</string>
+ <key>uuid</key>
+ <string>B9091553-4317-415E-B381-4609BD453E01</string>
+</dict>
+</plist>
View
18 info.plist
@@ -2,6 +2,23 @@
<!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>mainMenu</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>674E54F5-065E-4224-9626-673903B7C0E0</string>
+ <string>0979659D-126E-467F-AC07-599979A42D67</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>9297CB2A-ABFD-45F8-85F5-B737588FB9F9</string>
+ </array>
+ <key>submenus</key>
+ <dict/>
+ </dict>
<key>name</key>
<string>Diff</string>
<key>ordering</key>
@@ -11,6 +28,7 @@
<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>
<string>7E848FF4-708E-11D9-97B4-0011242E4184</string>
<string>7D036841-43BD-49CA-892F-0A6837EF8FB7</string>
<string>FFF345C5-D3B4-4975-A610-69CC645FEE7C</string>
Please sign in to comment.
Something went wrong with that request. Please try again.