-[8.51rc1] Edit and compare losts sync markers after saving
Moderators: Hacker, petermad, Stefan2, white
-[8.51rc1] Edit and compare losts sync markers after saving
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...
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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).
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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?
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
https://www.ghisler.com
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
When you paste lines, just use resync from here instead of recomparing everything again.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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.
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.