mirror of https://github.com/sharkdp/fd.git
commit
14ed023875
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
- Add `dir` as an alias to `directory` when using `-t` \ `--type`, see #1460 and #1464 (@Ato2207).
|
||||||
|
|
||||||
## Bugfixes
|
## Bugfixes
|
||||||
|
|
||||||
|
|
|
@ -316,9 +316,9 @@ Options:
|
||||||
-p, --full-path Search full abs. path (default: filename only)
|
-p, --full-path Search full abs. path (default: filename only)
|
||||||
-d, --max-depth <depth> Set maximum search depth (default: none)
|
-d, --max-depth <depth> Set maximum search depth (default: none)
|
||||||
-E, --exclude <pattern> Exclude entries that match the given glob pattern
|
-E, --exclude <pattern> Exclude entries that match the given glob pattern
|
||||||
-t, --type <filetype> Filter by type: file (f), directory (d), symlink (l),
|
-t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l),
|
||||||
executable (x), empty (e), socket (s), pipe (p), char-device
|
executable (x), empty (e), socket (s), pipe (p),
|
||||||
(c), block-device (b)
|
block-device (b), char-device (c)
|
||||||
-e, --extension <ext> Filter by file extension
|
-e, --extension <ext> Filter by file extension
|
||||||
-S, --size <size> Limit results based on the size of files
|
-S, --size <size> Limit results based on the size of files
|
||||||
--changed-within <date|dur> Filter by file modification time (newer than)
|
--changed-within <date|dur> Filter by file modification time (newer than)
|
||||||
|
|
|
@ -191,7 +191,7 @@ Filter search by type:
|
||||||
.RS
|
.RS
|
||||||
.IP "f, file"
|
.IP "f, file"
|
||||||
regular files
|
regular files
|
||||||
.IP "d, directory"
|
.IP "d, dir, directory"
|
||||||
directories
|
directories
|
||||||
.IP "l, symlink"
|
.IP "l, symlink"
|
||||||
symbolic links
|
symbolic links
|
||||||
|
|
|
@ -314,7 +314,7 @@ pub struct Opts {
|
||||||
|
|
||||||
/// Filter the search by type:
|
/// Filter the search by type:
|
||||||
/// {n} 'f' or 'file': regular files
|
/// {n} 'f' or 'file': regular files
|
||||||
/// {n} 'd' or 'directory': directories
|
/// {n} 'd' or 'dir' or 'directory': directories
|
||||||
/// {n} 'l' or 'symlink': symbolic links
|
/// {n} 'l' or 'symlink': symbolic links
|
||||||
/// {n} 's' or 'socket': socket
|
/// {n} 's' or 'socket': socket
|
||||||
/// {n} 'p' or 'pipe': named pipe (FIFO)
|
/// {n} 'p' or 'pipe': named pipe (FIFO)
|
||||||
|
@ -352,7 +352,7 @@ pub struct Opts {
|
||||||
value_name = "filetype",
|
value_name = "filetype",
|
||||||
hide_possible_values = true,
|
hide_possible_values = true,
|
||||||
value_enum,
|
value_enum,
|
||||||
help = "Filter by type: file (f), directory (d), symlink (l), \
|
help = "Filter by type: file (f), directory (d/dir), symlink (l), \
|
||||||
executable (x), empty (e), socket (s), pipe (p), \
|
executable (x), empty (e), socket (s), pipe (p), \
|
||||||
char-device (c), block-device (b)",
|
char-device (c), block-device (b)",
|
||||||
long_help
|
long_help
|
||||||
|
@ -729,7 +729,7 @@ fn default_num_threads() -> NonZeroUsize {
|
||||||
pub enum FileType {
|
pub enum FileType {
|
||||||
#[value(alias = "f")]
|
#[value(alias = "f")]
|
||||||
File,
|
File,
|
||||||
#[value(alias = "d")]
|
#[value(alias = "d", alias = "dir")]
|
||||||
Directory,
|
Directory,
|
||||||
#[value(alias = "l")]
|
#[value(alias = "l")]
|
||||||
Symlink,
|
Symlink,
|
||||||
|
|
Loading…
Reference in New Issue