Skip to content
Myr

Merge pull request #2001 from leno23/docs/extension-help-1693

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by GitHub · parents 25461e5, 1161471 · Browse files · 3 files+9 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • docs: clarify that -e/--extension matches all entry types

Diff stats

3 files+9 added−6 removed

  • other:+9 added−6 removed

3 files+9 added−6 removed

modified:doc/fd.1+4 added-2 removed
255 unmodified lines
256 fd -te -td257.RE258.TP259.BI "\-e, \-\-extension " ext260Filter search results by file extension260Filter search results by extension261.IR ext .262This option can be used repeatedly to allow for multiple possible file extensions.262This option can be used repeatedly to allow for multiple possible extensions.263By default, extension filters apply to both files and directories. Use264\fB\-\-type\fR to restrict the search to specific types.265266If you want to search for files without extension, you can use the regex '^[^.]+$'267as a normal search pattern.268.TP
319 unmodified lines
modified:src/cli.rs+4 added-3 removed
375 unmodified lines
376 long_help377 )]378 pub filetype: Option<Vec<FileType>>,379380 /// (Additionally) filter search results by their file extension. Multiple381 /// allowable file extensions can be specified.380 /// Filter results by extension. By default, this matches all entry types381 /// (including directories whose names end with the extension). Use `--type`382 /// to restrict the search to specific types. Multiple extensions can be specified.383 ///384 /// If you want to search for files without extension,385 /// you can use the regex '^[^.]+$' as a normal search pattern.386 #[arg(387 long = "extension",388 short = 'e',389 value_name = "ext",389 help = "Filter by file extension",390 help = "Filter by extension",391 long_help392 )]393 pub extensions: Option<Vec<String>>,394
577 unmodified lines
modified:README.md+1 added-1 removed
326 unmodified lines
327 -E, --exclude <glob> Exclude entries that match the given glob pattern328 -t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l),329 executable (x), empty (e), socket (s), pipe (p), char-device330 (c), block-device (b)331 -e, --extension <ext> Filter by file extension331 -e, --extension <ext> Filter by extension332 -S, --size <size> Limit results based on the size of files333 --changed-within <date|dur> Filter by file modification time (newer than)334 --changed-before <date|dur> Filter by file modification time (older than)335 -o, --owner <user:group> Filter by owning user and/or group
455 unmodified lines