aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-17 14:35:05 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-01-17 15:55:58 +0800
commit441d13eae5569be2856a8d17b87f0897b85f4ad8 (patch)
tree2562dddfa8bb2ac2fd7a3638fa817ac1ca1b9d71 /runtime
parent2093e574c6c934a718f96d0a173aa965d3958a8b (diff)
downloadrneovim-441d13eae5569be2856a8d17b87f0897b85f4ad8.tar.gz
rneovim-441d13eae5569be2856a8d17b87f0897b85f4ad8.tar.bz2
rneovim-441d13eae5569be2856a8d17b87f0897b85f4ad8.zip
vim-patch:8.2.4482: no fuzzy cmdline completion for user defined completion
Problem: No fuzzy cmdline completion for user defined completion. Solution: Add fuzzy completion for user defined completion. (Yegappan Lakshmanan, closes vim/vim#9858) https://github.com/vim/vim/commit/afd4ae35d66b2e7732eceb5ad9f6b4ece6b7c64c Cherry-pick related docs from Vim runtime. N/A patches for version.c: vim-patch:8.2.4485: compiler warning for uninitialized variable vim-patch:8.2.4732: duplicate code to free fuzzy matches Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/map.txt8
-rw-r--r--runtime/doc/options.txt2
2 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index ccd48a8959..cb8b162eb6 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1432,9 +1432,11 @@ The function arguments are:
The function may use these for determining context. For the "custom"
argument, it is not necessary to filter candidates against the (implicit
pattern in) ArgLead. Vim will filter the candidates with its regexp engine
-after function return, and this is probably more efficient in most cases. For
-the "customlist" argument, Vim will not filter the returned completion
-candidates and the user supplied function should filter the candidates.
+after function return, and this is probably more efficient in most cases. If
+'wildoptions' contains "fuzzy", then the candidates will be filtered using
+|fuzzy-matching|. For the "customlist" argument, Vim will not
+filter the returned completion candidates and the user supplied function
+should filter the candidates.
The following example lists user names to a Finger command >
:com -complete=custom,ListUsers -nargs=1 Finger !finger <args>
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 0683bb0602..169ec95b03 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -7126,7 +7126,7 @@ A jump table for the options with a short description can be found at |Q_op|.
global
A list of words that change how |cmdline-completion| is done.
The following values are supported:
- fuzzy Use fuzzy matching to find completion matches. When
+ fuzzy Use |fuzzy-matching| to find completion matches. When
this value is specified, wildcard expansion will not
be used for completion. The matches will be sorted by
the "best match" rather than alphabetically sorted.