History Viewer -- "compare code"

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

History Viewer -- "compare code"

Post by jassing »

Would be nice if you could compare code in history viewer with other versions in history viewer and/or files saved on disk.

As an example; the pb ide crashed on me sometime last night. History viewer showed "Unexpected close" - and had some code in there -- the only way for me to be sure I had saved the file before hand is to save it to a new file, then compare the two files manually. Would be nice to be able to, right in archive viewer, "Compare to saved version" "Compare to saved-file" "Compare to previous/other history-viewer version"

In one case, the history viewer had some code I had been working on. I had saved it to a file, but history viewer had it under "unsaved" - so having the option to pick a file to compare to would be very useful, in addition to other history viewer versions.
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: History Viewer -- "compare code"

Post by Rings »

on a sidenote, you can use winmerge (http://winmerge.org)
with commandline to compare 2 files (or directorys).

winmerge.exe file1 file2

i use it daily at work :)
SPAMINATOR NR.1
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: History Viewer -- "compare code"

Post by jassing »

Rings wrote:on a sidenote, you can use winmerge (http://winmerge.org)
with commandline to compare 2 files (or directorys).

winmerge.exe file1 file2

i use it daily at work :)
Right-- you can, I use windiff; but still -- if it's an unsaved work, or something 'back in history' -- you have to save both versions, then compare it - it would be nice to be able to compare w/o having to save versions to disk; and then compare manually -- possibly loosing sight on what you meant to compare.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: History Viewer -- "compare code"

Post by freak »

More is planned for the history viewer. It just wasn't possible in time for this release.
quidquid Latine dictum sit altum videtur
Post Reply