-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(completion): fuzzy on default completion #15193
Conversation
need a rebase after revert pr merge. |
8565df6
to
68ee15c
Compare
66ada0a
to
2eaa568
Compare
thanks. Can someone test this please? |
try remove fuzzy in completeopt there will still get a wrong status msg. |
@chrisbra What do you think ? |
8f18d50
to
8cead51
Compare
It does also happen without fuzzy as @glepnir mentions I started with To clear further, as seen in my ss:
But if I press |
because I think it's better to file an issue. this has nothing to do with fuzzy. If others think it's a bug, I can fix it immediately. |
Tried it, looks good to me. |
However the help topic now incorrect:
This part
Currently it also affects how candidates are collected. At least for keywords. Let me check other methods. |
okay, there is a regression, at least for line completion, doesn't work at all when @glepnir pls check following:
"world is on fire" should be completed. But it is not: |
because `cp_matches` is the count of all candidate words. `statusmsg` uses it. But when the leader adds or deletes the pum array regenerates , `cp_matches` is not updated. So it is still the initial count. It should be easy to fix. I just don't know why no one has raised an issue. The default completion has existed for a long time. Someone should have noticed it.
this maybe not a bug, here the second c-n after the first one was not same meaning, it still was the first compl.
// regardingless what is fuzzy or fuzzycollect going, wish not impact the original compl,
// though do welcome you to fix its original real bug if there, thx~
…--
shane.xb.qian
|
e82a7f6
to
38b450a
Compare
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
…etion Problem: fuzzy completion does not work with default completion Solution: Make it work (glepnir) closes: vim/vim#15193 vim/vim@8159fb1 Cherry-pick insexpand.c changes from patch 9.1.0608. N/A patch: vim-patch:9.1.0632: MS-Windows: Compiler Warnings Co-authored-by: glepnir <[email protected]>
…pt's fuzzy documentation Originally, `:set completeopt+=fuzzy` did not affect how the candidate list is collected in default keyword completion. A comment was added to documentation as part of vim/vim#14912 to clarify it. vim/vim#15193 later changed the fuzzy behavior to now change the candidate collection behavior as well so the clarification in docs is now wrong. Remove them here. closes: vim/vim#15656 vim/vim@26e4b00 Co-authored-by: Yee Cheng Chin <[email protected]>
make
fuzzy
works on keyword completion.