Update README-VIM: options as list (#896)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parent 5677e5e · Browse files · 2 files·+19 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+19 added−3 removed
- other:+19 added−3 removed
Provenance
- Commit
d5e72bf- Tree
0645a39- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
5677e5e
2 files changed+19 added−3 removed
modified:doc/fzf.txt+9 added-2 removed
1-fzf.txt fzf Last change: April 1 20171+fzf.txt fzf Last change: April 28 20172 FZF - TABLE OF CONTENTS *fzf* *fzf-toc*3 ==============================================================================4 5 FZF Vim integration118 unmodified lines124 `source` | list | Vim list as input to fzf125 `sink` | string | Vim command to handle the selected item (e.g. `e` , `tabe` )126 `sink` | funcref | Reference to function to process each selected item127 `sink*` | funcref | Similar to `sink` , but takes the list of output lines at once128- `options` | string | Options to fzf128+ `options` | string/list | Options to fzf129 `dir` | string | Working directory130 `up` / `down` / `left` / `right` | number/string | Use tmux pane with the given size (e.g. `20` , `50%` )131 `window` (Neovim only) | string | Command to open fzf window (e.g. `vertical aboveleft 30new` )132 `launcher` | string | External terminal emulator to start fzf with (GVim only)133 `launcher` | funcref | Function for generating `launcher` string (GVim only)134 ---------------------------+---------------+--------------------------------------------------------------135 136+`options` entry can be either a string or a list. For simple cases, string137+should suffice, but prefer to use list type if you're concerned about escaping138+issues on different platforms.139+>140+ call fzf#run({'options': '--reverse --prompt "C:\\Program Files\\"'})141+ call fzf#run({'options': ['--reverse', '--prompt', 'C:\Program Files\']})142+<143 144 FZF#WRAP *fzf#wrap*145 ==============================================================================146 36 unmodified linesmodified:README-VIM.md+10 added-1 removed
97 unmodified lines989910010110210210310410510610710810911011111211311411511611711811912012134 unmodified lines97 unmodified lines| `source` | list | Vim list as input to fzf || `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, stringshould suffice, but prefer to use list type if you're concerned about escapingissues on different platforms.
```vimcall fzf#run({'options': '--reverse --prompt "C:\\Program Files\\"'})call fzf#run({'options': ['--reverse', '--prompt', 'C:\Program Files\']})```
`fzf#wrap`----------
`fzf#wrap([name string,] [opts dict,] [fullscreen boolean])` is a helper34 unmodified lines