-
|
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. |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.