Natural Order Sorting
Moderators: Hacker, petermad, Stefan2, white
I have columns header (tabstop header) hidden so it doesn't really matter for me how a kind of sorting is indicated in it. I'd prefer if corresponding buttons (on button bar) had two states: pressed and unpressed. I mean the following commands:
cm_SrcByName
cm_SrcByExt
cm_SrcByDateTime
cm_SrcBySize
cm_SrcNegOrder
cm_SrcUnsorted (this one is actually not necessary)
and new cm_SrcNatural (cm_SrcAlternative, or whatsoever)
and analogous cm_Left* and cm_Right*.
I already asked about this in the old forum but still don't know Christian's opinion on that. I should have sent Christian e-mail to know it but it's so well related to the content of this thread so I decided to post here.
BTW, the following commands aren't two-state even in menu (with or without ticks), which is quite inconvenient:
cm_SwitchHidSys
cm_Switch83Names
cm_SwitchLongNames
cm_SwitchDirSort
(there are a lot of others but I don't care about them)
cm_SrcByName
cm_SrcByExt
cm_SrcByDateTime
cm_SrcBySize
cm_SrcNegOrder
cm_SrcUnsorted (this one is actually not necessary)
and new cm_SrcNatural (cm_SrcAlternative, or whatsoever)
and analogous cm_Left* and cm_Right*.
I already asked about this in the old forum but still don't know Christian's opinion on that. I should have sent Christian e-mail to know it but it's so well related to the content of this thread so I decided to post here.
BTW, the following commands aren't two-state even in menu (with or without ticks), which is quite inconvenient:
cm_SwitchHidSys
cm_Switch83Names
cm_SwitchLongNames
cm_SwitchDirSort
(there are a lot of others but I don't care about them)
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Currently the button bar doesn't support states. I will add it to my wish list, but cannot promise anything...I'd prefer if corresponding buttons (on button bar) had two states: pressed and unpressed.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I simply love this idea. Got lots of mp3`s and mpg`s that would be easier to add into playlists if they were sorted "natural".
How it`s implemented gui wise is not a big issue as i see it. If Mac users can live with natural sorting _only_. Im sure we can live with a slight hassle to change natural sorting on / off.
How it`s implemented gui wise is not a big issue as i see it. If Mac users can live with natural sorting _only_. Im sure we can live with a slight hassle to change natural sorting on / off.
May I ask why? Delphi's toolbar component doesn't support states? I thought that these components are just wrappers around standard Windows controls (like MFC, God forbid). Standard Toolbar control supports such buttons.ghisler(Author) wrote:Currently the button bar doesn't support states.
Thanks!ghisler(Author) wrote:I will add it to my wish list, but cannot promise anything...
Currently the button bar doesn't support states.
May I ask why? Delphi's toolbar component doesn't support states?
I might be wrong, but I think Christian rather meant "TC's Button Bar doesn't support states at the moment".
HTH
Roman
May I ask why? Delphi's toolbar component doesn't support states?
I might be wrong, but I think Christian rather meant "TC's Button Bar doesn't support states at the moment".
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Definitely yes! It is also wish of mine since years. I would even go further and allow different stateless commands and different tooltips for various click event types such as Shift-Click, Ctrl-Click, Shift-Ctrl-Click etc.Valentino wrote:But would anybody else like the toolbar buttons to be 2-state?
EXAMPLE:
I would like to assign the commands cm_CopyFullNamesToClip and cm_CopyNetNamesToClip to the same button. cm_CopyFullNamesToClip should be triggered by a plain Click and cm_CopyNetNamesToClip by a Shift-Click.
If the cursor is over the button and no modifier key is pressed then the tooltip for cm_CopyFullNamesToClip should be displayed.
If the cursor is over the button and the Shift key is pressed then the tooltip for cm_CopyNetNamesToClip should be displayed.
NOTE: The restriction 'stateless' is important because 2-state commands (toggle commands) such as for the sorting mode could not share a button.
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
That would be actually really flexible and powerful.jb wrote:Definitely yes! It is also wish of mine since years. I would even go further and allow different stateless commands and different tooltips for various click event types such as Shift-Click, Ctrl-Click, Shift-Ctrl-Click etc.Valentino wrote:But would anybody else like the toolbar buttons to be 2-state?
EXAMPLE:
I would like to assign the commands cm_CopyFullNamesToClip and cm_CopyNetNamesToClip to the same button. cm_CopyFullNamesToClip should be triggered by a plain Click and cm_CopyNetNamesToClip by a Shift-Click.
If the cursor is over the button and no modifier key is pressed then the tooltip for cm_CopyFullNamesToClip should be displayed.
If the cursor is over the button and the Shift key is pressed then the tooltip for cm_CopyNetNamesToClip should be displayed.
NOTE: The restriction 'stateless' is important because 2-state commands (toggle commands) such as for the sorting mode could not share a button.
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
Now I think it would be better to show just one multiline tooltip containing the descriptions and the modifier keys of all mapped commands at once, similar to a menu.jb wrote:EXAMPLE:
I would like to assign the commands cm_CopyFullNamesToClip and cm_CopyNetNamesToClip to the same button. cm_CopyFullNamesToClip should be triggered by a plain Click and cm_CopyNetNamesToClip by a Shift-Click.
If the cursor is over the button and no modifier key is pressed then the tooltip for cm_CopyFullNamesToClip should be displayed.
If the cursor is over the button and the Shift key is pressed then the tooltip for cm_CopyNetNamesToClip should be displayed.
EXAMPLE:
[face=tahoma]Copy full DOS path names to clipboard (Click)
Copy full UNC path names to clipboard (Shift+Click)[/face]
In the Famous Manuals !
2chea
Hello !
From the Help / Tutorial >> 4 >>b >> <wincmd.ini> :
Kind regards,
Claude
Clo

From the Help / Tutorial >> 4 >>b >> <wincmd.ini> :
SortUpper=0 / 1 / 2 / 3
1 : When sorting files, put files starting with an underscore _ last (1/0)
2 :makes a "natural" sorting, ignoring the spaces in file-names, sets the numbers at start / end of names as the usual order like
0, 1, 2, 3, .... 9, 10, 11, and so on, instead the "odd" Win / DOS system (order on the disk)…
3 : Like ‹2›, but with a logical sorting too for the special / accented characters as e - é - è … o - ø - ö…which otherwise are placed at the end of the list with ‹2›
‹3› needs Internet Explorer 6.0 or newer installed !
It works too under Win 98 SE if you have IE 6.0 installed. Found out by chance…

Claude
Clo
Last edited by Clo on 2005-09-21, 21:43 UTC, edited 1 time in total.
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Yes it is. Add the following line in the section [Configuration] of your <wincmd.ini>:chea wrote:So.... is the natural order possible now?
Code: Select all
SortUpper=3
You can use the value "2" as well. For details see chapter 4b.) in the TC's online help.
EDIT: Oops... Clo was much faster

For this purpose you should use the multi rename tool (MRT) of TC: Menu "Files" > "Multi-Rename Tool..." (shortcut: <Ctrl><M>). For details see chapter 3j.) in the online help.If not: how do I rename a lot of files quickly? (that is: add zeros)