From 208e5563322436112bb263e69a72f89b41c7037e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 15 Feb 2024 15:10:54 +0900 Subject: Replace "default find command" with built-in directory traversal --- README-VIM.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'README-VIM.md') diff --git a/README-VIM.md b/README-VIM.md index e02a97f6..6751d25a 100644 --- a/README-VIM.md +++ b/README-VIM.md @@ -238,19 +238,20 @@ call fzf#run({'sink': 'e'}) ``` We haven't specified the `source`, so this is equivalent to starting fzf on -command line without standard input pipe; fzf will use find command (or -`$FZF_DEFAULT_COMMAND` if defined) to list the files under the current -directory. When you select one, it will open it with the sink, `:e` command. -If you want to open it in a new tab, you can pass `:tabedit` command instead -as the sink. +command line without standard input pipe; fzf will traverse the file system +under the current directory to get the list of files. (If +`$FZF_DEFAULT_COMMAND` is set, fzf will use the output of the command +instead.) When you select one, it will open it with the sink, `:e` command. If +you want to open it in a new tab, you can pass `:tabedit` command instead as +the sink. ```vim call fzf#run({'sink': 'tabedit'}) ``` -Instead of using the default find command, you can use any shell command as -the source. The following example will list the files managed by git. It's -equivalent to running `git ls-files | fzf` on shell. +You can use any shell command as the source to generate the list. The +following example will list the files managed by git. It's equivalent to +running `git ls-files | fzf` on shell. ```vim call fzf#run({'source': 'git ls-files', 'sink': 'e'}) -- cgit v1.2.3