-[8.51rc1] Edit and compare losts sync markers after saving

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

-[8.51rc1] Edit and compare losts sync markers after saving

Post by *MVV »

It is very irritating that all manually placed sync markers (resync from here) are lost after saving files, and I need to set them back and back and back...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Not confirmed. How do you save the files? Via save button? I just tried this, and the sync stays the same.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Sorry, I was talking about recomparing. When I edit files a lot (including copy and paste operations), connections between lines are lost so I need to recompare often. Unfortunately TC resets sync markers so I need to match lines in large files again and again (at this time I have two large files where same function begins from lines 91 and 480 respectively).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - when you recompare, TC discards everything and compares the two files from scratch. There is no way to keep re-sync operations because the previously re-synced lines may not even exist any more, or their offsets in the file may have changed.

Why do you need to recompare? Do you edit the files outside of the compare tool? If yes, what feature are you missing in the internal editor?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I don't edit files outside, but I can do copy and paste manually (even from third file), sometimes I add or remove empty lines, I often get situations when similar lines get out of sync. You can try to cut 3 lines in e.g. left file and then paste them to 2nd or 3rd line within cut space, and TC will lose sync between these lines and ones from right file.
I uderstand that it is normal that TC resets markers on Compare but it would be great to have a way to recompare with keeping markers.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

When you paste lines, just use resync from here instead of recomparing everything again.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thanks for this nice idea, I'll keep it in mind next time!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Unfortunately resync requires too much actions: select text on both sides and then RMB - resync. It would be nice to have additional context menu item like 'Recompare from here' so TC could just recompare from current line w/o resetting markers.

One of cases where I copy+paste manually is when lines are not synced and I need copy+paste not just to other file but into another position. Resync won't help here because I need to shift lines, but copy+paste works.
Post Reply