Add -l/--list option

Add a new `-l`/`--list` option to show more details about the search results. This is basically
an alias for `--exec-batch ls -l` with some additional `ls` options.
This can be used in order to:
    * see metadata like permissions, owner, file size, modification times (#491)
    * see symlink targets (#482)
    * achieve a deterministic output order (#324, #196, #159)
    * avoid duplicate search results when multiple search paths are given (#405)
This commit is contained in:
sharkdp
2020-04-02 21:40:57 +02:00
committed by David Peter
parent 1714d416e2
commit da5cd12b24
4 changed files with 50 additions and 4 deletions
Vendored
+6
View File
@@ -66,6 +66,12 @@ Treat the pattern as a literal string instead of a regular expression.
.B \-a, \-\-absolute\-path
Shows the full path starting from the root as opposed to relative paths.
.TP
.B \-l, \-\-list
Use a detailed listing format like 'ls -l'. This is basically an alias
for '--exec-batch ls -l' with some additional 'ls' options. This can be used
to see more metadata, to show symlink targets, to achieve a deterministic
sort order and to avoid duplicate search results when using multiple search paths.
.TP
.B \-L, \-\-follow
By default, fd does not descend into symlinked directories. Using this flag, symbolic links are
also traversed.