Skip to content
Myr

Merge pull request #1663 from tmccombs/more-troubleshooting

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 86d6e2d, 8c17756 · Browse files · 3 files+7 added−2 removed
This commit

State

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

Trailers

  • docs: Mention --full-path in troubleshooting

Diff stats

3 files+7 added−2 removed

  • other:+7 added−2 removed

3 files+7 added−2 removed

modified:src/output.rs+1 added-1 removed
49 unmodified lines
50 entry: &DirEntry,51 config: &Config,52 style: Option<&Style>,53) -> io::Result<()> {54 if entry.file_type().map_or(false, |ft| ft.is_dir()) {54 if entry.file_type().is_some_and(|ft| ft.is_dir()) {55 write!(56 stdout,57 "{}",58 style
117 unmodified lines
modified:src/walk.rs+1 added-1 removed
475 unmodified lines
476 if io_error.kind() == io::ErrorKind::NotFound477 && path478 .symlink_metadata()479 .ok()480 .map_or(false, |m| m.file_type().is_symlink()) =>480 .is_some_and(|m| m.file_type().is_symlink()) =>481 {482 DirEntry::broken_symlink(path)483 }484 _ => {
186 unmodified lines
modified:README.md+5 added
386 unmodified lines
387``` bash388> fd -u …389```390391Also remember that by default, `fd` only searches based on the filename and392doesn't compare the pattern to the full path. If you want to search based on the393full path (similar to the `-path` option of `find`) you need to use the `--full-path`394(or `-p`) option.395396### Colorized output397398`fd` can colorize files by extension, just like `ls`. In order for this to work, the environment399variable [`LS_COLORS`](https://linux.die.net/man/5/dir_colors) has to be set. Typically, the value
336 unmodified lines