Compare text diff- view only different lines

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Compare text diff- view only different lines

Post by *kluvi »

I was convinced, that TC can display on screen with Compare by content differences only (hide the identical lines).
But i didn't found it.
Is it possible to add such feature? I think, that it is a piece of cake only.
Maybe also add option if to display only different lines (different parts of line have to stay highlited as now)
or surrounding unchanged lines too.

Please please please :-D

With regards
Martin
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

There's no such feature in TC. But if it would be: how do you know where in the file the displayed differences are (in relation to the other file, too) if the context (identical lines) is hidden? Yes, there're line numbers, but most of the time, the context (preceding and subsequent lines) is important.

Well, I'm not against an option to switch to such a view, if that's of any help to users. However, I wouldn't use it.

BTW: You can already use the buttons in the upper part of the Compare by Contents window to jump to the next/previous difference.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Post by *kluvi »

Thanks for super quick response.
I do not understand where is the problem.
I dont need know WHERE are the differencies located. I need know only WHAT differs.
Real situation:
I have XML file with some structure and embedded text objects. (Sourcecode consisting of tagged tree structure an some program-like code)
It have 150 000lines and for instance there are 2000 differencies.
I like to view only differences to have some overview what changed. It is not very comfortable to randomly scroll within 150k of lines and watch where are red lines. Or press NEXT button so many time.
If TC have toggle display/hide white lines, i can examine those filtered lines and when i need to have overview (WHERE) is it, i can toggle to DISPLAY them.
It would be great (for my needs). Yes, i can use TC as is, but it would be much more convenient for me described way.
By the way, if i want to understand where am in XML file actually located (in structure), i have rollback for instance 10k lines ahead (by reversed search fore some header). So for me does not help even those white lines.
With regards
Martin
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

2kluvi

You know, TCs Compare tool is not made for 150.000 lines source code
but for some much shorter text files like configure .cfg .ini or *.reg files.

You're better using a dedicated text compare tool.
There are some cheap or even free ones,
which are portable and can be called from within TC.

There are so many things to do on TC core for a more broader user base,
so I don't think such welcome features will make its way into future TCs.


 
User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Post by *kluvi »

I tried some tools, but they are not free, or this function is disabled in free version. And i am not sure if it is worth such money.
But I understand Your position.
It only looked for me as simple change.
Martin
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1013
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

WinMerge is free.
Beyond Compare is not that expensive.
User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Post by *kluvi »

i tried WinMerge, but it does not offer such function.
Examdif offers, but costs 35$
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Interesting, I found this topic regarding WinMerge. And there is a screenshot that can help to enable this function. I tried 0.2011.005.216 and 2.14.0-jp-84 from this page, both have it working.
User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Post by *kluvi »

I expressed wrong way.
WinMerge can hide only different lines, but have no highliting inside the different rows (only PRO payed version)
I try to use it, but it is simillar problem like TC. It is not very convenient.
I imagine, that to add button in TC "hide same lines" would it be not a big problem.
I know, it is view from outside of system :)
But thanks for Your effort.
I try to find some other solution.
Or survive that comparing XML files. :-D
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Thanks for that link, MVV!





 
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Oh, kluvi has posted too:
"""WinMerge ..., but have no highliting inside the different rows (only PRO payed version) """


Sure it has. Maybe you have to enable it in settings?


What is "PRO payed version"- Me think WinMerge is Open-Source?

 
User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Post by *kluvi »

So i got littlebit confused. I testes so much SW...

Limited free is that Beyound compare.

WinMerge is better, but i was not satisfied with way how it highlits changes in line.
But maybe i have only to play with setting of colors setting
User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Post by *kluvi »

MVV wrote:Interesting, I found this topic regarding WinMerge. And there is a screenshot that can help to enable this function. I tried 0.2011.005.216 and 2.14.0-jp-84 from this page, both have it working.
So. Actual WinMerge (2.14.0.0 unicode) from http://sourceforge.net/projects/winmerge/?source=typ_redirect
has NOT such item in menu.... (Synax highliting and then Lock pane...)

https://picasaweb.google.com/118005049894644668875/TEMPORARY#6191690384038670722
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

kluvi,
Please read topic from my link, especially this post:
So, this feature is currently exists in unofficial beta versions only and not in official release. And I've mentioned exact versions where feature exists and works.
User avatar
kluvi
Junior Member
Junior Member
Posts: 45
Joined: 2010-02-18, 11:13 UTC
Location: Czech rep.

Post by *kluvi »

Sorry. I am distracted...a LOT of..
Thanks
Post Reply