Add missing flags in documentation files

- Update completions
  - fish		(-D)
  - zsh			(-D, --changed)
- Update man page	(--changed)
- Update README		(-F, --changed, --icons)
- Update help text	(--changed)
This commit is contained in:
ecanja 2019-11-12 01:18:51 +01:00
parent 89c861f24d
commit aded70c98e
5 changed files with 12 additions and 0 deletions

View File

@ -25,8 +25,10 @@ exas options are almost, but not quite, entirely unlike `ls`'s.
- **-R**, **--recurse**: recurse into directories - **-R**, **--recurse**: recurse into directories
- **-T**, **--tree**: recurse into directories as a tree - **-T**, **--tree**: recurse into directories as a tree
- **-x**, **--across**: sort the grid across, rather than downwards - **-x**, **--across**: sort the grid across, rather than downwards
- **-F**, **--classify**: display type indicator by file names
- **--colo[u]r**: when to use terminal colours - **--colo[u]r**: when to use terminal colours
- **--colo[u]r-scale**: highlight levels of file sizes distinctly - **--colo[u]r-scale**: highlight levels of file sizes distinctly
- **--icons**: display icons
### Filtering Options ### Filtering Options
@ -58,6 +60,7 @@ These options are available when running with --long (`-l`):
- **-u**, **--accessed**: use the accessed timestamp field - **-u**, **--accessed**: use the accessed timestamp field
- **-U**, **--created**: use the created timestamp field - **-U**, **--created**: use the created timestamp field
- **-@**, **--extended**: list each file's extended attributes and sizes - **-@**, **--extended**: list each file's extended attributes and sizes
- **--changed**: use the changed timestamp field
- **--git**: list each file's Git status, if tracked or ignored - **--git**: list each file's Git status, if tracked or ignored
- **--time-style**: how to format timestamps - **--time-style**: how to format timestamps

View File

@ -49,6 +49,7 @@ complete -c exa -s 's' -l 'sort' -x -d "Which field to sort by" -a "
" "
complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r
complete -c exa -s 'D' -l 'only-dirs' -d "List only directories"
# Long view options # Long view options
complete -c exa -s 'b' -l 'binary' -d "List file sizes with binary prefixes" complete -c exa -s 'b' -l 'binary' -d "List file sizes with binary prefixes"

View File

@ -26,12 +26,14 @@ __exa() {
--git-ignore"[Ignore files mentioned in '.gitignore']" \ --git-ignore"[Ignore files mentioned in '.gitignore']" \
{-a,--all}"[Show hidden and 'dot' files]" \ {-a,--all}"[Show hidden and 'dot' files]" \
{-d,--list-dirs}"[List directories like regular files]" \ {-d,--list-dirs}"[List directories like regular files]" \
{-D,--only-dirs}"[List only directories]" \
{-L,--level}"+[Limit the depth of recursion]" \ {-L,--level}"+[Limit the depth of recursion]" \
{-r,--reverse}"[Reverse the sort order]" \ {-r,--reverse}"[Reverse the sort order]" \
{-s,--sort}="[Which field to sort by]:(sort field):(accessed age changed created date extension Extension filename Filename inode modified oldest name Name newest none size time type)" \ {-s,--sort}="[Which field to sort by]:(sort field):(accessed age changed created date extension Extension filename Filename inode modified oldest name Name newest none size time type)" \
{-I,--ignore-glob}"[Ignore files that match these glob patterns]" \ {-I,--ignore-glob}"[Ignore files that match these glob patterns]" \
{-b,--binary}"[List file sizes with binary prefixes]" \ {-b,--binary}"[List file sizes with binary prefixes]" \
{-B,--bytes}"[List file sizes in bytes, without any prefixes]" \ {-B,--bytes}"[List file sizes in bytes, without any prefixes]" \
--changed"[Use the changed timestamp field]"
{-g,--group}"[List each file's group]" \ {-g,--group}"[List each file's group]" \
{-h,--header}"[Add a header row to each column]" \ {-h,--header}"[Add a header row to each column]" \
{-H,--links}"[List each file's number of hard links]" \ {-H,--links}"[List each file's number of hard links]" \

View File

@ -132,6 +132,11 @@ list file sizes in bytes, without any prefixes
.RS .RS
.RE .RE
.TP .TP
.B \-\-changed
use the changed timestamp field
.RS
.RE
.TP
.B \-g, \-\-group .B \-g, \-\-group
list each file\[aq]s group list each file\[aq]s group
.RS .RS

View File

@ -49,6 +49,7 @@ LONG VIEW OPTIONS
-t, --time FIELD which timestamp field to list (modified, accessed, created) -t, --time FIELD which timestamp field to list (modified, accessed, created)
-u, --accessed use the accessed timestamp field -u, --accessed use the accessed timestamp field
-U, --created use the created timestamp field -U, --created use the created timestamp field
--changed use the changed timestamp field
--time-style how to format timestamps (default, iso, long-iso, full-iso)"##; --time-style how to format timestamps (default, iso, long-iso, full-iso)"##;
static GIT_HELP: &str = r##" --git list each file's Git status, if tracked or ignored"##; static GIT_HELP: &str = r##" --git list each file's Git status, if tracked or ignored"##;