From 0c4edde86b3a3e58fc34280543dcd7235e17e5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Le=C3=B1ero?= Date: Fri, 20 Oct 2017 21:12:59 -0500 Subject: [PATCH 1/3] fd: add page --- pages/common/fd.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/fd.md diff --git a/pages/common/fd.md b/pages/common/fd.md new file mode 100644 index 000000000..a73e5cf5f --- /dev/null +++ b/pages/common/fd.md @@ -0,0 +1,19 @@ +# fd + +> A simple, fast and user-friendly alternative to find. + +- Find files under current dir that match foo: + +`fd foo` + +- Find files that begin with foo: + +`fd '^foo'` + +- Find files matching test with a specific extension and under a specific dir: + +`fd --extension js test ./src` + +- Find files matching config, include ignored and hidden files: + +`fd --hidden --no-ignore config` From 8708fcbee3373896ebe411259ee93dc8d11a46ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Le=C3=B1ero?= Date: Fri, 20 Oct 2017 21:24:07 -0500 Subject: [PATCH 2/3] Use tokens for client highlighting. --- pages/common/fd.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pages/common/fd.md b/pages/common/fd.md index a73e5cf5f..7edaf1944 100644 --- a/pages/common/fd.md +++ b/pages/common/fd.md @@ -2,18 +2,22 @@ > A simple, fast and user-friendly alternative to find. -- Find files under current dir that match foo: +- Find files under current dir that match a pattern: -`fd foo` +`fd {{pattern}}` - Find files that begin with foo: -`fd '^foo'` +`fd {{'^foo'}}` -- Find files matching test with a specific extension and under a specific dir: +- Find files with a specific extension: -`fd --extension js test ./src` +`fd --extension {{.ext}} {{pattern}}` -- Find files matching config, include ignored and hidden files: +- Find files under a specific dir: -`fd --hidden --no-ignore config` +`fd {{pattern}} {{path/to/dir}}` + +- Include ignored and hidden files in search: + +`fd --hidden --no-ignore {{pattern}}` From ff4ea8adc60b554078acccd1b6b4c31739ba9829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Le=C3=B1ero?= Date: Sun, 22 Oct 2017 21:40:39 -0500 Subject: [PATCH 3/3] dir -> directory --- pages/common/fd.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/fd.md b/pages/common/fd.md index 7edaf1944..a0eede896 100644 --- a/pages/common/fd.md +++ b/pages/common/fd.md @@ -2,7 +2,7 @@ > A simple, fast and user-friendly alternative to find. -- Find files under current dir that match a pattern: +- Find files under current directory that match a pattern: `fd {{pattern}}` @@ -14,7 +14,7 @@ `fd --extension {{.ext}} {{pattern}}` -- Find files under a specific dir: +- Find files under a specific directory: `fd {{pattern}} {{path/to/dir}}`