summaryrefslogtreecommitdiff
path: root/README-VIM.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-06-04 22:04:20 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-06-04 22:07:29 +0900
commita74731d7f5abe874fb14766249a039408f2137b5 (patch)
tree04087eed5504dbb25789c0164610d28ba4da4ebd /README-VIM.md
parente086f0b3fe1cb56df1335037cfd3d612defce082 (diff)
downloadfzf-a74731d7f5abe874fb14766249a039408f2137b5.tar.gz
[vim] Add 'sinklist' as a synonym to 'sink*'
So that it's easier to add a sinklist function to a spec dictionary. let spec = { 'source': source, 'options': ['--preview', preview] } function spec.sinklist(matches) echom string(a:matches) endfunction call fzf#run(fzf#wrap(spec))
Diffstat (limited to 'README-VIM.md')
-rw-r--r--README-VIM.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README-VIM.md b/README-VIM.md
index 3704f14c..425bf672 100644
--- a/README-VIM.md
+++ b/README-VIM.md
@@ -283,7 +283,7 @@ The following table summarizes the available options.
| `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 |
+| `sinklist` (or `sink*`) | funcref | Similar to `sink`, but takes the list of output lines at once |
| `options` | string/list | Options to fzf |
| `dir` | string | Working directory |
| `up`/`down`/`left`/`right` | number/string | (Layout) Window position and size (e.g. `20`, `50%`) |
@@ -387,7 +387,7 @@ command! -bang -complete=dir -nargs=? LS
- `g:fzf_layout`
- `g:fzf_action`
- - **Works only when no custom `sink` (or `sink*`) is provided**
+ - **Works only when no custom `sink` (or `sinklist`) is provided**
- Having custom sink usually means that each entry is not an ordinary
file path (e.g. name of color scheme), so we can't blindly apply the
same strategy (i.e. `tabedit some-color-scheme` doesn't make sense)