Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding Kaleidoscope diff destination

  • Loading branch information...
commit 54b847ada8723924630a55ad1e1610a100e7de8d 1 parent 461d0f4
@ttscoff ttscoff authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 Kaleidoscope.dropzone
View
22 Kaleidoscope.dropzone
@@ -0,0 +1,22 @@
+# Dropzone Destination Info
+# Name: Diff files with Kaleidoscope
+# Description: Drag two files to run a diff with Kaleidoscope.app (must install the Terminal utility from the Kaleidoscope preferences)
+# Handles: NSFilenamesPboardType
+# Events: dragged
+# Creator: Brett Terpstra, w/code by Gergo Sulymosi
+# URL: http://brettterpstra.com
+# IconURL: http://assets.brettterpstra.com/Kaleidoscope_icon.png
+
+def dragged
+ $dz.begin("Opening Changes...")
+
+ unless $items.size == 2
+ $dz.finish("You must drag two files!")
+ $dz.url(false)
+ exit
+ end
+
+ system('ksdiff', $items.first, $items.last)
+
+ $dz.url(false)
+end
Please sign in to comment.
Something went wrong with that request. Please try again.