From 89a6e14e154a987b742423bba238ea8ed174017e Mon Sep 17 00:00:00 2001 From: James Reed Date: Fri, 26 Oct 2018 17:04:22 -0600 Subject: [PATCH 1/3] Move level option to correct group --- contrib/man/exa.1 | 10 +++++----- src/options/help.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/man/exa.1 b/contrib/man/exa.1 index 2bf849d..9c97eaf 100644 --- a/contrib/man/exa.1 +++ b/contrib/man/exa.1 @@ -74,6 +74,11 @@ list directories like regular files .RS .RE .TP +.B \-L, \-\-level=\f[I]DEPTH\f[] +limit the depth of recursion +.RS +.RE +.TP .B \-r, \-\-reverse reverse the sort order .RS @@ -137,11 +142,6 @@ list each file\[aq]s inode number .RS .RE .TP -.B \-L, \-\-level=\f[I]DEPTH\f[] -limit the depth of recursion -.RS -.RE -.TP .B \-m, \-\-modified use the modified timestamp field .RS diff --git a/src/options/help.rs b/src/options/help.rs index fb65294..8ad4ed7 100644 --- a/src/options/help.rs +++ b/src/options/help.rs @@ -23,6 +23,7 @@ DISPLAY OPTIONS FILTERING AND SORTING OPTIONS -a, --all show hidden and 'dot' files -d, --list-dirs list directories like regular files + -L, --level DEPTH limit the depth of recursion -r, --reverse reverse the sort order -s, --sort SORT_FIELD which field to sort by --group-directories-first list directories before other files @@ -41,7 +42,6 @@ LONG VIEW OPTIONS -h, --header add a header row to each column -H, --links list each file's number of hard links -i, --inode list each file's inode number - -L, --level DEPTH limit the depth of recursion -m, --modified use the modified timestamp field -S, --blocks show number of file system blocks -t, --time FIELD which timestamp field to list (modified, accessed, created) From 7218fb4b6a6622f2d1ac250944b9ed1bc2ec43d6 Mon Sep 17 00:00:00 2001 From: James Reed Date: Fri, 26 Oct 2018 17:21:31 -0600 Subject: [PATCH 2/3] Document only-dirs option --- contrib/man/exa.1 | 5 +++++ src/options/help.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/contrib/man/exa.1 b/contrib/man/exa.1 index 9c97eaf..6f5fa56 100644 --- a/contrib/man/exa.1 +++ b/contrib/man/exa.1 @@ -107,6 +107,11 @@ ignore files mentioned in '.gitignore' list directories before other files .RS .RE +.TP +.B \-D, \-\-only\-dirs +list only directories +.RS +.RE .SH LONG VIEW OPTIONS .PP These options are available when running with \f[C]\-\-long\f[] diff --git a/src/options/help.rs b/src/options/help.rs index 8ad4ed7..a00864a 100644 --- a/src/options/help.rs +++ b/src/options/help.rs @@ -27,6 +27,7 @@ FILTERING AND SORTING OPTIONS -r, --reverse reverse the sort order -s, --sort SORT_FIELD which field to sort by --group-directories-first list directories before other files + -D, --only-dirs list only directories -I, --ignore-glob GLOBS glob patterns (pipe-separated) of files to ignore --git-ignore Ignore files mentioned in '.gitignore' Valid sort fields: name, Name, extension, Extension, size, type, From adb1edd1a99a9df28e54c6c315090acc154a8987 Mon Sep 17 00:00:00 2001 From: James Reed Date: Fri, 26 Oct 2018 17:41:27 -0600 Subject: [PATCH 3/3] Add only-dirs option to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7295929..f4596e1 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ exa’s options are almost, but not quite, entirely unlike `ls`'s. - **-r**, **--reverse**: reverse the sort order - **-s**, **--sort=(field)**: which field to sort by - **--group-directories-first**: list directories before other files +- **-D**, **--only-dirs**: list only directories - **--git-ignore**: ignore files mentioned in `.gitignore` - **-I**, **--ignore-glob=(globs)**: glob patterns (pipe-separated) of files to ignore