Hi,
On Mon, Mar 21, 2022 at 12:17 AM バクダンくん <[email protected]> wrote:
> Steps to reproduce
>
> 1. vim --clean
> 2. Confirm :echo getcompletion('e', 'command') returns many commands
> 3. :set wildoptions=fuzzy
> 4. Confirm :echo getcompletion('e', 'command') returns empty list
>
> Expected behaviour
>
> getcompletion() does not take effect of 'wildoptions'.
>
> Actually I want getcompletion('e', 'command') to take effect of
> 'wildoptions' and returns commands that are same as what are shown when I
> hit :e<Tab>, but that can break some plugins.
> It may be good to add fourth argument to getcompletion() to specify
> whether to use fuzzy completion.
>
I see the problem. I will modify getcompletion() to check for the
'wildoptions' values.
A plugin can save/restore the 'wildoptions' setting if needed to get the
completion
matches with fuzzy matching and without fuzzy matching.
- Yegappan
> Version of Vim
>
> 8.2.4522
> Environment
>
> OS: Windows 11 Pro
> Terminal: Windows Terminal and GUI
> Logs and stack traces
>
> *No response*
>
>
>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7kAppTJLx7oc5qROS5tpLQDrfrrUgoppshNMSrdz_k1kQ%40mail.gmail.com.