diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-04-28 02:09:55 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-04-28 02:09:55 +0900 |
commit | d5e72bf55d0bb317a3b9515885e92d94097b38fe (patch) | |
tree | 0645a39a44c009f39a59ea9e1aa4eb9be64652c5 /README-VIM.md | |
parent | 5677e5e1338a07d00d0a1c74ce918710a9ce8fdc (diff) |
Update README-VIM: options as list (#896)
Diffstat (limited to 'README-VIM.md')
-rw-r--r-- | README-VIM.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/README-VIM.md b/README-VIM.md index 0cee3792..804400d4 100644 --- a/README-VIM.md +++ b/README-VIM.md @@ -99,13 +99,22 @@ following options. | `sink` | string | Vim command to handle the selected item (e.g. `e`, `tabe`) | | `sink` | funcref | Reference to function to process each selected item | | `sink*` | funcref | Similar to `sink`, but takes the list of output lines at once | -| `options` | string | Options to fzf | +| `options` | string/list | Options to fzf | | `dir` | string | Working directory | | `up`/`down`/`left`/`right` | number/string | Use tmux pane with the given size (e.g. `20`, `50%`) | | `window` (*Neovim only*) | string | Command to open fzf window (e.g. `vertical aboveleft 30new`) | | `launcher` | string | External terminal emulator to start fzf with (GVim only) | | `launcher` | funcref | Function for generating `launcher` string (GVim only) | +`options` entry can be either a string or a list. For simple cases, string +should suffice, but prefer to use list type if you're concerned about escaping +issues on different platforms. + +```vim +call fzf#run({'options': '--reverse --prompt "C:\\Program Files\\"'}) +call fzf#run({'options': ['--reverse', '--prompt', 'C:\Program Files\']}) +``` + `fzf#wrap` ---------- |