Home Download Buy Blog Forum Support

File Compare (Diff utility)?

File Compare (Diff utility)?

Postby rroy on Fri Apr 20, 2012 6:08 pm

Does Sublime Text 2 have FIle Compare (equivalent of diff bundle in text mate)?
How do I install or use Diff (file compare) in sublime text 2?

I am switching from text mate on Mac to Sublime Text 2. I have tried Sublime Text 2 for couple of days now and I really like it so far.
Great Job Sublime Text team.
rroy
 
Posts: 1
Joined: Fri Apr 20, 2012 6:03 pm

Re: File Compare (Diff utility)?

Postby Anomareh on Fri Apr 20, 2012 6:18 pm

I recommend SublimeFileDiffs. The README has installation and usage info.
Anomareh
 
Posts: 222
Joined: Thu Oct 01, 2009 7:32 pm

Re: File Compare (Diff utility)?

Postby desperado70 on Thu Sep 13, 2012 12:17 pm

I installed the FileDiff package.
Now, how can I call the different commands ?
I notice that 1 is bound to ctrl-shift-D, but that is already linked to an other command which duplicates the line). I dont necesseraly want it to be bound to some key-code, how can I select it from the menu or something like that?
desperado70
 
Posts: 5
Joined: Thu Aug 30, 2012 11:39 am

Re: File Compare (Diff utility)?

Postby LatencyK on Thu Sep 13, 2012 2:24 pm

Sorry for the off-topic reply but I am also interested in this thread. Is there a way to get email notifications when someone replies?

Thanks!
LatencyK
 
Posts: 7
Joined: Wed Sep 12, 2012 2:39 pm

Re: File Compare (Diff utility)?

Postby adzenith on Thu Sep 13, 2012 6:36 pm

No :(
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: File Compare (Diff utility)?

Postby colinta on Thu Nov 01, 2012 3:29 pm

Hi there! I wrote FileDiffs, so I feel compelled to answer these questions, but my answer is generic.

There are many ways a plugin can make expose its commands. The most basic is to simply provide the classes and let the user figure it out. Not very helpful, but if the developer is busy, this is all you're gonna get.

Next, and you can provide a .sublime-commands file that will add the commands to the "command palette" (ctrl+shift+P I think). This is good because it provides a place for users to look up the important commands and, hopefully, the argument syntax if the command has some optional arguments. I usually provide these files, and indeed FileDiffs does have one.

Next, you can (but I don't) provide .sublime-keymap files. I frown on providing these, though, because I hold key bindings as "off limits". I like mine, I don't expect you to. However! I always include a file called `Example.sublime-keymap`, which can be copied into your keymap file.
colinta
 
Posts: 14
Joined: Wed Dec 21, 2011 9:43 pm

Re: File Compare (Diff utility)?

Postby mroswell on Sun Dec 16, 2012 4:07 pm

@colinta, for those of us brand new to sublime, can you possibly provide (in addition to the generic answer) a specific answer? I need a bit more "hand-holding"--specific steps to make diff work.
mroswell
 
Posts: 1
Joined: Sun Dec 16, 2012 4:04 pm

Re: File Compare (Diff utility)?

Postby gmgauthier on Fri Dec 28, 2012 9:52 pm

Here's the steps I took:
Code: Select all
c:\> cd %APPDATA%\Sublime Text 2\Packages

c:\> git clone http://github.com/colinta/SublimeFileDiffs.git
Cloning into SublimeFileDiffs...
remote: Counting objects: 123, done.
remote: Compressing objects: 100% (84/84), done.
remote: Total 123 (delta 73), reused 89 (delta 39)
Receiving objects: 100% (123/123), 18.20 KiB, done.
Resolving deltas: 100% (73/73), done.


That's it. Then, when I want to diff two files, I:

1> Click on the first file, to make it the active tab.
2> Open the command list: [CTRL]+[SHIFT]+[P]
3> Type in "diff" to filter the list
4> Select FileDiffs: Menu
5> Choose a "Diff File With..."
6> Watch the fireworks!
gmgauthier
 
Posts: 4
Joined: Thu Mar 01, 2012 3:13 pm

Re: File Compare (Diff utility)?

Postby lawlist on Tue Feb 26, 2013 6:18 pm

Is the FileDiffs plugin still the best option for file compare using Sublime Text 2?
lawlist
 
Posts: 54
Joined: Thu Feb 21, 2013 6:47 pm

Re: File Compare (Diff utility)?

Postby nollo on Tue Feb 26, 2013 7:14 pm

nollo
 
Posts: 19
Joined: Sat Mar 03, 2012 10:47 am

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 32 guests