Have you thought about adding a diff tool to Peppy? That would be really
nice.
It looks like the std lib difflib module can do all the hard work - not
that it isn't hard to write a good UI for it, though.
I wonder if any of the other STC-based python editors has one -- a
question for the xides list, I suppose.
On request -- it should work well for non line-oriented text -- where an
entire paragraph could be one line. I just ran some text through it and
it looks pretty capable.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
> Have you thought about adding a diff tool to Peppy? That would be really
> nice.
I have given it a lot of thought, actually. I even started to work on
some difflib-based code that's in peppy/lib/diffctrl.py (with a
workable demo if you run 'python peppy/lib/diffctrl.py') Eventually I
wanted it to be like kdiff3 or meld with graphical representations of
where the changes were.
But me being me, I wanted it to be uber-extensible so that it wouldn't
be limited to just text (or lines of text; e.g. paragraphs). At one
point I had a need to difference some binary records and ended up just
hand coding some stuff, but I thought "wouldn't it be neat if a major
mode could provide some diff capability for its file type."
Anyway, I was thinking about having a go with that again if I ever get
some free time (I have a new baby!) because I think that it would be a
great feature that other editors couldn't do in the same way that
peppy could.
Rob