Hi,

On Sun, Oct 4, 2020 at 7:10 PM lacygoill <[email protected]> wrote:

> There is something else which I think would be useful but it's more a
> feature request. If you use fzf(1) to search through help tags via
> :Helptags
> <https://github.com/junegunn/fzf.vim/blob/0fe8e198a3a501b54dbc4f9587526c097599f95a/plugin/fzf.vim#L66>,
> you should notice that we can use spaces between tokens. And when you do,
> fzf(1) does 2 interesting things:
>
>    - it ignores whitespace
>    - it looks for the tokens in no particular order
>
> So if you look for the help tag function-search-undo but only remember
> that there was fun and undo somewhere in the name, and if you type the
> tokens in the wrong order (i.e. undo before fun), fzf(1) will still find
> the tag. That's not the case with matchfuzzypos(). It does not ignore
> whitespace; but this can be easily fixed with a substitute(). However,
> then the issue is to make it look for the tokens in all possible orders. I
> don't know how fzf(1) does it. And I don't know what would be the impact
> on performance; especially since the bigger the number of
> whitespace-separated tokens, the bigger the number of possible
> permutations. Could this feature be one day implemented and maybe enabled
> via an optional dictionary (similar to the final {dict} argument of
> matchadd())?
>
>
>
I have created PR #7163 to implement the above.

 https://github.com/vim/vim/pull/7163

- Yegappan

-- 
-- 
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/CAAW7x7nO28nCMtgaXf3SBF2WsrSRN2Y0%2BzsPrz5-8fFoJJn6Lw%40mail.gmail.com.

Raspunde prin e-mail lui