diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-06-12 15:37:24 +0200 |
|---|---|---|
| committer | Simon Hauser <simon.hauser@helsinki-systems.de> | 2022-06-30 14:01:51 +0200 |
| commit | f6efef4c4183407860618832cf9c51b20d15e96d (patch) | |
| tree | c4090e68ba7a0524656011489e64c2e3332d9f34 /doc | |
| parent | 77e2b8ceea048b42773fc454658c17448caa2a93 (diff) | |
feat: `find_command` can be a function (#2000)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/telescope.txt | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/doc/telescope.txt b/doc/telescope.txt index 8d90dc2..7fc66e2 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -878,22 +878,24 @@ builtin.find_files({opts}) *telescope.builtin.find_files()* {opts} (table) options to pass to the picker Options: ~ - {cwd} (string) root dir to search from (default: cwd, - use utils.buffer_dir() to search - relative to open buffer) - {find_command} (table) command line arguments for `find_files` - to use for the search, overrides - default: config - {follow} (boolean) if true, follows symlinks (i.e. uses - `-L` flag for the `find` command) - {hidden} (boolean) determines whether to show hidden files - or not (default: false) - {no_ignore} (boolean) show files ignored by .gitignore, - .ignore, etc. (default: false) - {no_ignore_parent} (boolean) show files ignored by .gitignore, - .ignore, etc. in parent dirs. (default: - false) - {search_dirs} (table) directory/directories to search in + {cwd} (string) root dir to search from (default: + cwd, use utils.buffer_dir() to + search relative to open buffer) + {find_command} (function|table) cmd to use for the search. Can be + a fn(opts) -> tbl (default: + autodetect) + {follow} (boolean) if true, follows symlinks (i.e. + uses `-L` flag for the `find` + command) + {hidden} (boolean) determines whether to show hidden + files or not (default: false) + {no_ignore} (boolean) show files ignored by .gitignore, + .ignore, etc. (default: false) + {no_ignore_parent} (boolean) show files ignored by .gitignore, + .ignore, etc. in parent dirs. + (default: false) + {search_dirs} (table) directory/directories to search + in builtin.fd() *telescope.builtin.fd()* |
