From 07343b5baff84bc120c951b352166782e9fcdda1 Mon Sep 17 00:00:00 2001 From: David Peter Date: Tue, 19 Dec 2023 11:45:09 +0100 Subject: [PATCH] Update troubleshooting section --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2db1312..c91ff98 100644 --- a/README.md +++ b/README.md @@ -373,6 +373,15 @@ also used in [ripgrep](https://github.com/BurntSushi/ripgrep) (check it out!). ## Troubleshooting +### `fd` does not find my file! + +Remember that `fd` ignores hidden directories and files by default. It also ignores patterns +from `.gitignore` files. If you want to make sure to find absolutely every possible file, always +use the options `-u`/`--unrestricted` option (or `-HI` to enable hidden and ignored files): +``` bash +> fd -u … +``` + ### Colorized output `fd` can colorize files by extension, just like `ls`. In order for this to work, the environment @@ -386,15 +395,6 @@ for alternative, more complete (or more colorful) variants, see [here](https://g `fd` also honors the [`NO_COLOR`](https://no-color.org/) environment variable. -### `fd` does not find my file! - -Remember that `fd` ignores hidden directories and files by default. It also ignores patterns -from `.gitignore` files. If you want to make sure to find absolutely every possible file, always -use the options `-u`/`--unrestricted` option (or `-HI` to enable hidden and ignored files): -``` bash -> fd -u … -``` - ### `fd` doesn't seem to interpret my regex pattern correctly A lot of special regex characters (like `[]`, `^`, `$`, ..) are also special characters in your