Skip to content

Let the complete_style parameter be a Callable - #2085

Open
rolandwalker wants to merge 1 commit into
prompt-toolkit:mainfrom
rolandwalker:RW/let-complete-style-accept-a-callable
Open

Let the complete_style parameter be a Callable#2085
rolandwalker wants to merge 1 commit into
prompt-toolkit:mainfrom
rolandwalker:RW/let-complete-style-accept-a-callable

Conversation

@rolandwalker

Copy link
Copy Markdown

Motivation: to force CompleteStyle.COLUMN for the first word of the buffer, if the user is entering an initial forward-slash /command in mycli.

The COLUMN CompleteStyle can show help text for every completion entry via the display_meta argument, whereas MULTI_COLUMN shows the display_meta value only for the selection.

The goal is a completion menu like the following, regardless of the user's settings:

first_word_complete_style

Motivation: to force CompleteStyle.COLUMN for the first word of the
buffer, if the user is entering an initial forward-slash /command in
mycli.

The COLUMN CompleteStyle can show help text for every completion entry
via the display_meta argument, whereas MULTI_COLUMN shows the
display_meta value only for the selection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant