-[8.50b2a] cm_SwitchLongNames messes up History

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
white
Power Member
Power Member
Posts: 5810
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

-[8.50b2a] cm_SwitchLongNames messes up History

Post by *white »

(It's not a new problem introduced in version 8.50)

* Execute cm_SwitchLongNames (turn off long names)
Look at the folder history using the button with triangle image. The current folder has been uppercased.
* Execute cm_SwitchLongNames again (turn it on again)
Look at the folder history using the button with triangle image. The current folder is no longer uppercased.
The uppercased folder is however included in history when using the Go back and Go forward buttons (buttons with arrow images).

Consider a button to copy full file name to clipboard in 8.3 DOS notation.

Define custom command:

Code: Select all

em_CdPathShortNames
Command: cd
Parameters: %p
Create a button and set the command as mentioned below. Use the button by selecting exactly 1 file and then click the button.


The following button command does not work:

Code: Select all

em_CdPathShortNames,cm_SwitchLongNames,cm_CopyFullNamesToClip,cm_GotoPreviousDir,cm_SwitchLongNames
This one does (but history is messed up):

Code: Select all

em_CdPathShortNames,cm_SwitchLongNames,cm_CopyFullNamesToClip,cm_GotoPreviousDir,cm_GotoPreviousDir,cm_SwitchLongNames

The following command does not work:

Code: Select all

em_CdPathShortNames,cm_SwitchLongNames,cm_CopyFullNamesToClip,cm_SwitchLongNames,cm_GotoPreviousDir
The following command does not work:

Code: Select all

em_CdPathShortNames,cm_SwitchLongNames,cm_CopyFullNamesToClip,cm_SwitchLongNames,cm_GotoPreviousDir,cm_GotoPreviousDir
This one does (but history is messed up):

Code: Select all

em_CdPathShortNames,cm_SwitchLongNames,cm_CopyFullNamesToClip,cm_SwitchLongNames,cm_GotoPreviousDir,cm_GotoPreviousDir,cm_GotoPreviousDir
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, it's expected that the list gets messed up when switching between long and short names, because they are simply different.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5810
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

I understand it better now. cm_SwitchLongNames does a change folder and an entry is added to the folder history. So, the behavior is actually consistent.

I did not realize that "duplicates" (ignoring case) are filtered out of the visible history list (button with triangle), but not out of the actual list when using the Go back and Go forward buttons. So I got confused.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yss they are! The Go back/Forward history records all the dirs you went through. The Alt+Down list removes them because it doesn't make much sense to show the same directory 10 times...
Author of Total Commander
https://www.ghisler.com
Post Reply