From 5b4458ebea9874bb5c44fdd9b933b584dcb09752 Mon Sep 17 00:00:00 2001 From: Brandon Conway Date: Sun, 13 Sep 2020 19:44:16 -0700 Subject: [PATCH] Document the optional find_command setting (#74) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4293ca0..7573484 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ Handy documentation, showcase of all tools available in Telescope. require'telescope.builtin'.git_files{} ``` -Search your files in a git repo. Ignores files in your .gitignore. +Search your files in a git repo. Ignores files in your .gitignore. You can optionally override the find command. Note: Requires the `cwd` to be a git directory. @@ -186,6 +186,7 @@ Note: Requires the `cwd` to be a git directory. require'telescope.builtin'.find_files{ -- Optional -- cwd = "/home/tj/" + -- find_command = { "rg", "-i", "--hidden", "--files", "-g", "!.git" } } ``` Searches files in your working directory.