Sort by filename, date, size orextension using shortcut keys

I am sure this is trivially easy to do, but being new to Opus I am failing to find the right (raw?) commands to do the following:

In Total Commander, if I wish to sort a list of files by filename, extension, size, date, there are predefined function keys to do so: Control-F3, Control-F4, etc.

Help would be greatly appreciated to know how I can do this in Opus.

This is quite simple. Check out this screenshot. In the red square you can define your shortcuts, in the list at the
right you can chosse from different sorting criteria. You can leave the sortreverse=off
out or set it to »off«, if you want to have it sorted in a different way.

http://img576.imageshack.us/img576/2419/sortby.jpg

Sorry, the coloured square is covering the equal symbol, so it reads SET SORTBY=name.

Also, if you want reverse sorting you can do it on a single line (which might be faster as it's only one sort change instead of two). For example:

Set SORTBY=created SORTREVERSE=on

Or:

Set SORTBY=modified SORTREVERSE=off

I´m not sure, which commands can be compactified.

For instance, i use follwing button (which might be circuitous):

Set Columnsremove=modified
Set Columnsremove=description
Set Columnsremove=type
set COLUMNSADD=createddate,createdtime
set SORTBY=created
Set SortReverse=on

So can i shorten the upper part to

Set Columnsremove=description, type

or even more compact?

Try it and see. :slight_smile:

Not Bad. One »Set« to rule them all. Even they seem to be different types of action. :open_mouth:

The Set command can take an unlimited number of arguments, so you can put them all on the one line. The only catch is when using one of the "toggle" commands, it is undefined which argument will be used when deciding whether the button should appear highlighted or not.

I have to keep that in mind, Thanks. I corrected already one having some format lock toggle. But i just found a situation, where a button is greyed out, since
there are a few columns missing in the first place, so the the button can´t do anything.

Maybe it would be good, to create an »clean slate«, if there was a COLUMNSREMOVE=all (except maybe name or at least one minimum
to avoid possible confusion) to build up a custom columns set from scratch.

You can use COLUMNS to specifically set which columns are in use, rather than by adding/removing.

That´s great. First i didn´t get it to work, though. It has to be said, that in this special case the SET columns=name,autosize,createdtime
etc. has to stand alone in one line, & another SET line has to be used for the other arguments like set SORTBY=created SortReverse=on.