[TC10.50rc3] Compare by Content - Ignore repeated spaces doesn't work in edit mode

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC10.50rc3] Compare by Content - Ignore repeated spaces doesn't work in edit mode

Post by *white »

Compare by Content:

While Case sensitive and currently selected Sync mode work while editing a line in Edit mode, Ignore repeated spaces seems to be always disabled when editing a line.

With Ignore repeated spaces enabled, compare for example a file containing:

Code: Select all

test1 test2   test3
with a file containing:

Code: Select all

test1      test2      test3
Click the Edit button and add some more spaces.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50rc3] Compare by Content - Ignore repeated spaces doesn't work in edit mode

Post by *ghisler(Author) »

"Ignore repeated spaces" is only used to determine whether two lines are the same or not. Once you change anything within a line, they are not considered the same and the comparison within a line is started. In this comparison, "Ignore repeated spaces" is not used. I will add a note to the help to make that clear.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.50rc3] Compare by Content - Ignore repeated spaces doesn't work in edit mode

Post by *white »

ghisler(Author) wrote: 2022-06-26, 08:35 UTC In this comparison, "Ignore repeated spaces" is not used.
I think this is rather nonintuitive. Can you put it on your wish list?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50rc3] Compare by Content - Ignore repeated spaces doesn't work in edit mode

Post by *ghisler(Author) »

It's probably not feasible due to how the comparison within a line works (finding the next match with the minimum distance).

Moderator message

Moved to suggestions
Author of Total Commander
https://www.ghisler.com
Post Reply