-
Notifications
You must be signed in to change notification settings - Fork 720
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
[BUG] Interaction between autocomplete option and ctags-search #5260
Comments
Looking at the code, :ctags-generate uses the menu module, which is built on the :prompt command, which only shows its completion menu by default if That behaviour makes sense to me, but I guess you expected that |
It makes sense indeed and I wouldn't want to introduce deep inconsistent changes for this minor inconvenience but leaving an empty prompt is really weird. Edit: looking at the code I understand that |
I guess from a functional stand there is a slight difference between auto-completing (I want the freedom to type stuff and might need some more choices displayed to me) and selecting (I want to chose between complex options that I might not be able to guess nor type). |
Version of Kakoune
v2024.05.18
Reproducer
Given the following Go file with multiple symbols having the same name (should work in any language):
kak -n
:source <rc>/autoload/tools/menu.kak
:source <rc>/autoload/tools/ctags.kak
:ctags-generate
Now, given tags were successfully generated, run
:ctags-search Foo
.Outcome
If
set-option global autocomplete insert
is set, the prompt stays empty. Press<Tab>
twice to see the autocomplete list appear.If default options are set, the autocomplete list appears correctly.
Expectations
Even when
set-option global autocomplete insert
, the autocomplete list should appear without needing to press<Tab>
even once.Rephrasing this to be less confusing: I think the bug occurs when
autocomplete
does not containprompt
.Additional information
Reproduced on MacOS + Kitty.
The text was updated successfully, but these errors were encountered: