5.9.3.4 Dired Sort By (Sort By›)

images/casual-dired-sort-by-screenshot

The Dired Sort By menu (casual-dired-sort-by-tmenu) provides an interface to configuring GNU ls.

The menu is separated into two sections:

Options

Option switches to control how output is displayed.

KeyLabelOptionNotes
.Show all (include .*)–allControl display of hidden (dot) files.
gGroup directories first–group-directories-first
rReverse–reverse
tSet time style–time-style=
hShow size like 1K 234M 2G etc.–human-readable
1Like above but in powers of 1000–si
OHide owner-g
GHide group–no-group
NUse numeric UID/GID–numeric-uid-gid
iShow inode–inode

Refer to GNU ls (coreutils#ls invocation) for more detail on option behavior.

Sort By

Commands to sort by a specified criteria.

KeyLabelCommand
nNamecasual-dired–sort-by-name
kKindcasual-dired–sort-by-kind
lDate Last Openedcasual-dired–sort-by-date-last-opened
aDate Addedcasual-dired–sort-by-date-added
mDate Modifiedcasual-dired–sort-by-date-modified
MDate Metadata Changedcasual-dired–sort-by-date-metadata-changed
sSizecasual-dired–sort-by-size

With the Sort By menu raised, one can save the switch settings for future use via the binding C-x C-s (transient-save). Note this is a global setting and will apply to all future calls to the Sort By menu.