I'd like to have keyboard shortcuts that sort by name, size, date, etc.
But I'd also like them to toggle the sort order if I press the same key again (behavior of TC).
I know how to change the sort column, I know the command to toggle the order, but I can't figure how to toggle "intelligently", meaning that if I'm coming from another sort I'll reset to the default lower to higher order, while if I'm pressing the key for the same sort I'll toggle the order.
Is there a solution to my problem?
I'm not aware of anything that might help you.
I set up these two buttons (could've also been hotkeys):
Set SORTBY=name SORTREVERSE=Toggle
Set SORTBY=type SORTREVERSE=Toggle
Results of successive actions - Script 1:[ol][li] Lister opens with Opus default sort -- name ascending, folders before files.[/li]
[li] Click the first button once sorts by Name descending. [/li]
[li] Click the second button once sorts by Type ascending.[/li]
[li] Click the first button once sorts by Name descending.[/li]
[li] Click the second button once sorts by Type ascending.[/li]
[li] Click the first button once sorts by Name descending.[/li][/ol]Results of successive actions - Script 2:[ol][li] Lister opens with Opus default sort -- name ascending, folders before files.[/li]
[li] Click the first button once sorts by Name descending. [/li]
[li] Click the second button once sorts by Type ascending.[/li]
[li] Click the second button once sorts by Type descending.[/li]
[li] Click the first button once sorts by Name ascending.[/li]
[li] Click the first button once sorts by Name descending.[/li]
[li] Click the second button once sorts by Type ascending.[/li]
[li] Click the second button once sorts by Type descending.[/li]
[li] Click the first button once sorts by Name ascending.[/li]
[li] Click the first button once sorts by Name descending.[/li][/ol] I guess you have to re-train yourself to watch the triangle on the column header to ensure you are sorted the way you want. Although with hotkeys defined, this isn't so bad, it's just press the same key sequence twice. That is really quick to do.
Maybe we need aSORTREVERSE=togglesmart which only toggles the sort direction if the sort field does not change?
That's exactly what I think. The toggle needs to be intelligent & not toggle itself when we're coming from another sort type.
I already double-type, but it's a bit confusing to do so while it wasn't necessary with TC.
So, I assume I'll make a request for it
No need I've already filed an official request.