From f61e3853c14618a53e59d37495ecde7bca9e0221 Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Thu, 29 Jun 2017 14:57:43 +0100 Subject: [PATCH] Document sorting by type --- README.md | 2 +- contrib/completions.bash | 2 +- contrib/completions.fish | 1 + contrib/completions.zsh | 2 +- contrib/man/exa.1 | 2 +- src/options/help.rs | 2 +- xtests/help | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2c3c3f2..312045d 100644 --- a/README.md +++ b/README.md @@ -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**. diff --git a/contrib/completions.bash b/contrib/completions.bash index 54f650d..47ea47f 100644 --- a/contrib/completions.bash +++ b/contrib/completions.bash @@ -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 ;; diff --git a/contrib/completions.fish b/contrib/completions.fish index 460cbb9..9f0d628 100644 --- a/contrib/completions.fish +++ b/contrib/completions.fish @@ -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 diff --git a/contrib/completions.zsh b/contrib/completions.zsh index 8f9be11..e128775 100644 --- a/contrib/completions.zsh +++ b/contrib/completions.zsh @@ -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]" \ diff --git a/contrib/man/exa.1 b/contrib/man/exa.1 index 315862c..33b1a8b 100644 --- a/contrib/man/exa.1 +++ b/contrib/man/exa.1 @@ -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 diff --git a/src/options/help.rs b/src/options/help.rs index e06d275..a391b9c 100644 --- a/src/options/help.rs +++ b/src/options/help.rs @@ -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 "##; diff --git a/xtests/help b/xtests/help index d6211c3..3e2f39a 100644 --- a/xtests/help +++ b/xtests/help @@ -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