[txmt-dev] Diff View Implementation
Joachim Mårtensson
joachimmartensson at gmail.com
Sat Jan 24 12:11:25 UTC 2015
I have implemented a Diff View for TextMate. Following Steven Clukey lead, I decided to pre-announce it here first.
Some facts:
Enabled in View -> Diff
Uses the patience-diff algorithm, enhanced for live editing.
Unified view only for now.
Compare against Git HEAD only for now.
Currently not sticky between tab switches.
Runs on main-thread.
New appended ”layout” scopes: diff.removed.line and diff.added.line .
Stick this in your theme file to get started:
{ name = 'Diff Removed';
scope = 'diff.removed';
settings = { background = '#FFC0CB'; };
},
{ name = 'Diff Added';
scope = 'diff.added';
settings = { background = '#90EE90'; };
},
Checkout here: https://github.com/joachimm/textmate/tree/diffing
Screencast: http://www.screencast.com/t/ZQyRQPIBvu Missing +/- though.
Feel free to test it.--
Joachim Mårtensson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate-dev/attachments/20150124/14f48df7/attachment.html>
More information about the textmate-dev
mailing list