[TC 10.52rc1] Auto Switch Mode - sorting not working

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

[TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *monarch-lfv »

Problem in tc1052_rc1: Auto Switch Mode - sorting not working
In tc1051 - works correctly.
When I go to the %commander_path% directory, automatically switch the display mode with an additional column, by which it is sorted in such a way that the "wincmd.ini" is always the first, then other INI-files, then BAR files, etc.
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *petermad »

I cannot confirm this.

Can you be more specific about the View Mode and the Auto Switch Mode you use
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
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *monarch-lfv »

2petermad
I use my scrippt VBS in PLugin WinScriptsAdv, It is similar to the "Groups" plugin.
With my current settings in TC1051 - works fine. I change only the files "TOTALCMD.EXE" and "TOTALCMD64.EXE" from the new version TC1052rc1 in the directory TC, reload the total and see that the sorting does not work. Moreover, in the panel header it is displayed correctly, but in the panel the files are sorted by default - by name.
I change the same Exe files again to TC1051 - works fine.
Screenshot: https://ibb.co/f00hZX6
If click on the column heading, then sorting occurs at the beginning in reverse order, and then when you click again - as it should.
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *nsp »

I can confirm it with WinScriptsAdv in additional column and second sorting on name (taken into account) but first sorting not waiting full view populated.

// See a sample with in option.ini of WinScriptsAdv
First line add wincmd

Code: Select all

[Script] 
ActiveScripts=......|wincmd
[wincmd]
Script=wincmd.js
content=TCOrder
extensions=*
FoldersPaths=0
Script wincmd.js as sample:

Code: Select all

fn = filename.toLowerCase()
fn = fn.substring(filename.lastIndexOf("\\")+1)
ext = fn.substring(fn.lastIndexOf("."));

sort = "A"
if ( fn === "wincmd.ini" ){
sort = "0"
} else if ( fn === "wincmd.key" ){
sort = "-1"
}else if ( ext === ".ini" ){
sort = "1"
}else if ( ext === ".bar" ){
sort = "2"
}else if ( ext === ".br2" ){
sort = "2"
}else if ( ext === ".exe" ){
sort = "3"
}else if ( ext === ".com" ){
sort = "4"
}else if ( ext === ".dll" ){
sort = "5"
}else if ( ext === ".chm" ){
sort = "6"
}else if ( ext === ".hlp" ){
sort = "6"
}else if ( ext === ".sfx" ){
sort = "7"
}else if ( ext === ".sys" ){
sort = "8"
}else if ( ext === ".original" ){
sort = "Z"
}

content =  sort
Create a column view with additional columns at least on using WinScriptsAdv . TCOrder
...
Create a custom view mode setting with the user column and define sort based on the TCOrder and second sort based on name ...
Autoswitch on %commander_path%
....
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *petermad »

2monarch-lfv
2petermad
I use my scrippt VBS in PLugin WinScriptsAdv, It is similar to the "Groups" plugin.
I have tried with a couple of Custom columns and here the sorting chosen for the View Mode is applied OK, so it must be with a problem between WinScriptsAdv and TC specifically. Does it not work with the Groups plugin either?
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
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *monarch-lfv »

2petermad
I tested it, it also does not work with the "groups" plugin.
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *petermad »

monarch-lfv wrote: 2022-10-05, 12:13 UTC 2petermad
I tested it, it also does not work with the "groups" plugin.
Does it work for you with a Custom column with for example just items from the build in tc content plugin.
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
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *monarch-lfv »

2petermad
Unfortunately, this do not work even if I puting in the column [= tc.size]. It does not work precisely on TC1052rc1 (both x32 and x64). I checked on Win10x64 and Win7x64.
On TC1051 everything works fine.
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *petermad »

Hmm, here it works if I set [= tc.size] for sorting using Auto Switch Mode.
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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48070
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *ghisler(Author) »

There are no changes in auto switch mode and view modes between 10.51 and 10.52rc1, except for the option to show solid colors in the tab headers.
Author of Total Commander
https://www.ghisler.com
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *monarch-lfv »

ghisler(Author) wrote: 2022-10-06, 07:41 UTC except for the option to show solid colors in the tab headers.
May be here the problem? Because, as I wrote above, in version 1051 everything works fine.
Replaced only the files of "TOTALCMD.EXE" and ""TOTALCMD64.EXE"".
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *petermad »

2monarch-lfv
May be here the problem? Because, as I wrote above, in version 1051 everything works fine.
Replaced only the files of "TOTALCMD.EXE" and ""TOTALCMD64.EXE"".
I don't think that is the reason - I compared the files for TC 10.51 and TC 10.52rc1 - the only binary files that are different is TOTALCMD64.EXE and the help file.
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
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *monarch-lfv »

Please, try this wincmd.ini:

Code: Select all

[CustomFields]
Titles=111
AutoLoad=0
Widths1=255,30,-45,-80
Headers1=size\ndate
Contents1=[=tc.size]\n[=tc.writedate.D.M.Y h:m:s]
Options1=-1|0|96

[ViewModes]
0_name=<Default>
0_icon=
0_options=1|1|0||-1|-1|-1|-1|-1
1_name=colorTC
1_icon=
1_options=6|100|0||-1|-1|-1|2105344|2105344

[ViewModeSwitch]
Enabled=1
0_rules=?%commander_path%\*\
0_mode=1
And enter to directory %commander_path%. Then exit it with the "Enter" button on the keyboard and then enter again.
User avatar
petermad
Power Member
Power Member
Posts: 14787
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *petermad »

2monarch-lfv

Tried your wincmd.ini:
1. When I enter %commander_path% the "111" Custom colums view is loaded and sorting is set to "size".
2. When I exit %commander_path% the Full view is loaded and sorting is set to "Ext".

When I repeat pressing Enter to go in and out of %commander_path% then 1 and 2 happens again (and again and again) - just as expected. What happens for you?
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
monarch-lfv
Junior Member
Junior Member
Posts: 73
Joined: 2022-06-16, 23:37 UTC

Re: [TC 10.52rc1] Auto Switch Mode - sorting not working

Post by *monarch-lfv »

2petermad
My experience (need to download):
https://cloud.mail.ru/public/RRKF/FihJD5L7F
Post Reply