|
Hi, I'm writing a command history source that ideally displays all history entries when the user enters the command line interface without requiring the user to type anything, and I'm not able to do that with the current configuration. |
Answered by
soifou
Jan 2, 2026
Replies: 1 comment 4 replies
|
Why do you need to display all these entries without typing anything? The role of a source is to provide completion candidates, it should not decide when the completion menu appears. That behavior is managed upstream and can be customized through user configuration. If you want to display your history entries immediately, you'll need to trigger the completion manually or start typing to activate it. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By manually I was refering to bind a keymap like:
For your usecase, you could use an autocommand:
But again, IMO this behavior should be opt-in.