From a74731d7f5abe874fb14766249a039408f2137b5 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 4 Jun 2021 22:04:20 +0900 Subject: [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)) --- doc/fzf.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/fzf.txt b/doc/fzf.txt index e5197dd6..94857232 100644 --- a/doc/fzf.txt +++ b/doc/fzf.txt @@ -300,7 +300,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%` ) -- cgit v1.2.3