The Sort By/List is quite bloated for me, with me only ever using 3 of the 28 options that show by default.
It would be really nice if...
1. options could be (un)checked and hidden, perhaps with the unchecked ones only showing in the Sort List under '...' (e.g. being able to uncheck and hide 'F-Stop');
2. a custom order could be given to the list (e.g. moving 'Name' to the top, 'Size' second, etc).
Kind of like Color Filters or List Management alike.
For some unknown reason, 'Extra 16' shows in between 'Extra 5' and 'Extra 6' for me in the Sort List under '...', the order being 'Extra .. 4, 5, 16, 6, 7 ..', which lead me to believe the above is already possible. I am fairly certain I looked everywhere, but I could find no such option.
Custom Sort List
-
avivariba
- Posts: 87
- Joined: 05 Mar 2023 07:38
- Location: Win11@125% (second monitor@100%)
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Custom Sort List
I don't think this will happen...
Use scripting to create what you want
Command ids can be looked up via the Help - List All Commands... menu
Use scripting to create what you want
Code: Select all
"By name" #321;
"By size" #323;
"By type" #324;
One of my scripts helped you out? Please donate via Paypal
-
avivariba
- Posts: 87
- Joined: 05 Mar 2023 07:38
- Location: Win11@125% (second monitor@100%)
Re: Custom Sort List
I found that for a popupmenu button it's nice. Unfortunately it has no state checkmark by default, and the 'Sort By' in the context menu will still be a bit of a hell.highend wrote: ↑07 May 2023 20:21 I don't think this will happen...
Use scripting to create what you wantCommand ids can be looked up via the Help - List All Commands... menuCode: Select all
"By name" #321; "By size" #323; "By type" #324;
I suppose the 'Extra 16' being out of place really is just a small bug then.
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Custom Sort List
Even that could be scripted, but not with that simple multiline versionUnfortunately it has no state checkmark by default
One of my scripts helped you out? Please donate via Paypal
-
Norn
- Posts: 504
- Joined: 24 Oct 2021 16:10
Re: Custom Sort List
Unfortunately it has no state checkmark by default
Code: Select all
get("#333")
get("Sort")Windows 11 24H2 @100% 2560x1440
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Custom Sort List
E.g.:
Code: Select all
$sortBy = gettoken(get("Sort"), 1, ",");
$menu = <<<>>>
By name|#321;||
By size|#323;||
By type|#324;||
>>>;
$default = regexmatches($menu, "^By " . $sortBy . "\|.+?(?=\r?\n|$)");
if ($default) { $menu = replace($menu, $default, $default . 3); }
$sel = popupmenu($menu, 6:=<crlf>, 7:="|");
One of my scripts helped you out? Please donate via Paypal
-
avivariba
- Posts: 87
- Joined: 05 Mar 2023 07:38
- Location: Win11@125% (second monitor@100%)
Re: Custom Sort List
I was just about to get frustrated trying to script it myself, and then you dropped this surprise.
To make it look a little more similar to the original (for if that were to help anyone else), I dropped the
By (and "^By " . ), and changed the replace with $default . 2.
XYplorer Beta Club