You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to vim, I'd like to have the completion menu auto-select the first thing in the list. I like to trigger completion manually, so it'd be great if I didn't have to type another key to choose what is potentially the only available completion option.
Usecase
No response
The text was updated successfully, but these errors were encountered:
On Tue, Jan 21, 2025 at 07:26:35PM -0800, Shawn Wallace wrote:
### Feature
Similar to vim, I'd like to have the completion menu auto-select
the first thing in the list. I like to trigger completion manually,
so it'd be great if I didn't have to type another key to choose
what is potentially the only available completion option.
This works for me:
# Disable autocomplete in insert mode.
set global autocomplete prompt
define-command -override my-toggle-completions %{
execute-keys <c-o>
hook -group my-auto-select -once window InsertCompletionShow .* %{
execute-keys <c-n><c-p>
}
hook -once window InsertIdle .* %{
remove-hooks window my-auto-select
}
}
map global insert <c-o> <a-semicolon>:my-toggle-completions<ret>
Feature
Similar to vim, I'd like to have the completion menu auto-select the first thing in the list. I like to trigger completion manually, so it'd be great if I didn't have to type another key to choose what is potentially the only available completion option.
Usecase
No response
The text was updated successfully, but these errors were encountered: