mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-27 15:48:28 +00:00
Document sorting by type
This commit is contained in:
parent
f750536420
commit
f61e3853c1
@ -53,7 +53,7 @@ These options are available when running with --long (`-l`):
|
||||
- **--git**: list each file's Git status, if tracked
|
||||
|
||||
- Valid **--color** options are **always**, **automatic**, and **never**.
|
||||
- Valid sort fields are **accessed**, **created**, **extension**, **Extension**, **inode**, **modified**, **name**, **Name**, **size**, and **none**. Fields starting with a capital letter are case-sensitive.
|
||||
- Valid sort fields are **accessed**, **created**, **extension**, **Extension**, **inode**, **modified**, **name**, **Name**, **size**, **type**, and **none**. Fields starting with a capital letter are case-sensitive.
|
||||
- Valid time fields are **modified**, **accessed**, and **created**.
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ _exa()
|
||||
;;
|
||||
|
||||
-s|--sort)
|
||||
COMPREPLY=( $( compgen -W 'name filename Name Filename size filesize extension Extension modified accessed created none inode --' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W 'name filename Name Filename size filesize extension Extension modified accessed created type inode none --' -- "$cur" ) )
|
||||
return
|
||||
;;
|
||||
|
||||
|
@ -36,6 +36,7 @@ complete -c exa -s 's' -l 'sort' -x -d "Which field to sort by" -a "
|
||||
Name\t'Sort by filename (case-insensitive)'
|
||||
none\t'Do not sort files at all'
|
||||
size\t'Sort by file size'
|
||||
type\t'Sort by file type'
|
||||
"
|
||||
|
||||
complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r
|
||||
|
@ -18,7 +18,7 @@ __exa() {
|
||||
{-d,--list-dirs}"[List directories like regular files]" \
|
||||
{-L,--level}"+[Limit the depth of recursion]" \
|
||||
{-r,--reverse}"[Reverse the sort order]" \
|
||||
{-s,--sort}"[Which field to sort by]:(sort field):(accessed created extension Extension filename Filename inode modified name Name none size)" \
|
||||
{-s,--sort}"[Which field to sort by]:(sort field):(accessed created extension Extension filename Filename inode modified name Name none size type)" \
|
||||
{-I,--ignore-glob}"[Ignore files that match these glob patterns]" \
|
||||
{-b,--binary}"[List file sizes with binary prefixes]" \
|
||||
{-B,--bytes}"[List file sizes in bytes, without any prefixes]" \
|
||||
|
@ -76,7 +76,7 @@ reverse the sort order
|
||||
.TP
|
||||
.B \-s, \-\-sort=\f[I]SORT_FIELD\f[]
|
||||
which field to sort by.
|
||||
Valid fields are name, Name, extension, Extension, size, modified, accessed, created, inode, and none.
|
||||
Valid fields are name, Name, extension, Extension, size, modified, accessed, created, inode, type, and none.
|
||||
Fields starting with a capital letter are case-sensitive.
|
||||
.RS
|
||||
.RE
|
||||
|
@ -23,7 +23,7 @@ FILTERING AND SORTING OPTIONS
|
||||
-s, --sort SORT_FIELD which field to sort by:
|
||||
--group-directories-first list directories before other files
|
||||
-I, --ignore-glob GLOBS glob patterns (pipe-separated) of files to ignore
|
||||
Valid sort fields: name, Name, extension, Extension, size,
|
||||
Valid sort fields: name, Name, extension, Extension, size, type,
|
||||
modified, accessed, created, inode, none
|
||||
"##;
|
||||
|
||||
|
@ -22,7 +22,7 @@ FILTERING AND SORTING OPTIONS
|
||||
-s, --sort SORT_FIELD which field to sort by:
|
||||
--group-directories-first list directories before other files
|
||||
-I, --ignore-glob GLOBS glob patterns (pipe-separated) of files to ignore
|
||||
Valid sort fields: name, Name, extension, Extension, size,
|
||||
Valid sort fields: name, Name, extension, Extension, size, type,
|
||||
modified, accessed, created, inode, none
|
||||
|
||||
LONG VIEW OPTIONS
|
||||
|
Loading…
x
Reference in New Issue
Block a user