diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-07-23 06:12:50 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-23 06:12:50 +0800 |
| commit | 9377db2545090fbea740a5befcf931f6db11c2e1 (patch) | |
| tree | 19997ce2fdac63b1655e0cf663b71678257ea26c /scripts/lintcommit.lua | |
| parent | 8b5d8dfc732eff3a7ba1cc25d6e5b7c210f761a4 (diff) | |
| download | rneovim-9377db2545090fbea740a5befcf931f6db11c2e1.tar.gz rneovim-9377db2545090fbea740a5befcf931f6db11c2e1.tar.bz2 rneovim-9377db2545090fbea740a5befcf931f6db11c2e1.zip | |
vim-patch:9.1.1576: cannot easily trigger wildcard expansion (#35022)
Problem: cannot easily trigger wildcard expansion
Solution: Introduce wildtrigger() function
(Girish Palya)
This PR introduces a new `wildtrigger()` function.
See `:h wildtrigger()`
`wildtrigger()` behaves like pressing the `wildchar,` but provides a
more refined and controlled completion experience:
- Suppresses beeps when no matches are found.
- Avoids displaying irrelevant completions (like full command lists)
when the prefix is insufficient or doesn't match.
- Skips completion if the typeahead buffer has pending input or if a
wildmenu is already active.
- Does not print "..." before completion.
This is an improvement on the `feedkeys()` based autocompletion script
given in vim/vim#16759.
closes: vim/vim#17806
https://github.com/vim/vim/commit/b486ed8266d3b8cd1ffab7d7f302fbd6d5a55c70
While at it, also make Ctrl-Z trigger search completion.
Co-authored-by: Girish Palya <girishji@gmail.com>
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions