Sublime Forum

Generate unified diff of two views

#1

Hi folks,

heres a plugin which collects views and generates a unified diff of the last two. It uses difflib and no external tools.

bitbucket.org/theblacklion/subl … f_views.py

Regards,
Oktay.

0 Likes

#2

I must say, I love your plugins :smile:

0 Likes

#3

You’re welcome ^^.

0 Likes

#4

Updated the code to automatically use a Diff syntax file.
Of course you have to have the proper color definitions within your theme file.

I’m wondering whether the syntax file should be disabled by default or something like that… what do you think?

PS You can get the syntax file here: svn.textmate.org/trunk/Bundles/D … Diff.plist
Save it as Diff.tmLanguage within your Packages/User folder.

0 Likes