additional internal commands for sort orders
Moderators: white, Hacker, petermad, Stefan2
-
- Member
- Posts: 149
- Joined: 2008-10-14, 17:12 UTC
additional internal commands for sort orders
hi,
there are commands like cm_SrcSortByCol1.
these toggle the sort order if column is already sorted.
for better handling sort orders by plugins, what about a set of new commands like cm_SrcSortByCol1Asc & cm_SrcSortByColDesc ?
integrating should be a simple task...
regards
there are commands like cm_SrcSortByCol1.
these toggle the sort order if column is already sorted.
for better handling sort orders by plugins, what about a set of new commands like cm_SrcSortByCol1Asc & cm_SrcSortByColDesc ?
integrating should be a simple task...
regards
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
Or use TCMC.exe ...
Where TCMC has been SET, by the .CMD I use to launch TC.
RunTC.cmd
Code: Select all
button8=%Commander_Path%\wcmIcons.dll,52
cmd8=%TCMC% CMcm_SrcSortByCol1 CMcm_SrcNegOrder
menu8=Sort Col1 Reversed
RunTC.cmd
Code: Select all
@ECHO OFF
SET PATH=%SYS32%;C:\WIN2K;%wuBIN%;%wuBin%\exCMD;%wuBIN%\exDOS;%SYS32%\Wbem
SET TC=%ProgramFiles%\TotalCMD
SET TCmd=%TC%\TotalCMD.exe
SET TCMC=%TC%\TOOLS\TCMC.exe 50
SET APPLOCAL=%USERPROFILE%\Local Settings\Application Data
START "" "%ProgramFiles%\TotalCMD\TotalCMD.exe"
-
- Member
- Posts: 149
- Joined: 2008-10-14, 17:12 UTC
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
AH, Would need to Unsort first then.
Code: Select all
button8=%Commander_Path%\wcmIcons.dll,52
cmd8=%TCMC% CMcm_Unsorted CMcm_SrcSortByCol1 CMcm_SrcNegOrder
menu8=Sort Col1 Reversed
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
- ghisler(Author)
- Site Admin
- Posts: 48125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Have you tried to chain 2 commands, e.g.
cm_SrcUnsorted,cm_SrcSortByCol1
or 3:
cm_SrcUnsorted,cm_SrcSortByCol1,cm_SrcSortByCol1
cm_SrcUnsorted,cm_SrcSortByCol1
or 3:
cm_SrcUnsorted,cm_SrcSortByCol1,cm_SrcSortByCol1
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
It should rather be implemented the same way as it if for the other sort functions - with a parameter:I strongly support the OP suggestion:
adding a new cm_SrcSortByCol1Asc & cm_SrcSortByCol1Desc, cm_SrcSortByCol2Asc ect... would be perfect and natural to use.
history.txt
20.09.16 Added: The following internal commands now accept parameters 0 (toggle, default), 1 (true), and 2 (false), except in main menu (* stands for LEFT, RIGHT, and SRC): CM_VERTICALPANELS,CM_*THUMBS,CM_*BYNAME,CM_*BYEXT,CM_*BYSIZE,CM_*BYDATETIME,CM_*NEGORDER (32/64)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 48125
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You should only sort by custom column as the last command - it's considerably slower than sorting by internal values like name or size. So better use
cm_SrcUnsorted,cm_SrcSortByCol1
cm_SrcUnsorted,cm_SrcSortByCol1
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com