Skip to content
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

Allow using a completion-specific candidate description over the candidate's help message in rust-native completions #5063

Open
ModProg opened this issue Aug 1, 2023 · 2 comments
Labels
A-completion Area: completion generator C-enhancement Category: Raise on the bar on expectations S-blocked Status: Blocked on something else such as an RFC or other implementation work.

Comments

@ModProg
Copy link
Contributor

ModProg commented Aug 1, 2023

Some shell completions, such as fish and zsh allow displaying a help message.

Currently, we use the short help, but this might not always be appropriate due to the constraints of the completion.

We could consider adding a separate complete_help to any command, argument, or possible value, this would be the first line of the short help by default, but could be overridden either to disable, or to replace with a custom message.

This does pose some complexity as it adds an additional field to everything with a help or about.

@epage epage added C-enhancement Category: Raise on the bar on expectations A-completion Area: completion generator labels Aug 1, 2023
@epage
Copy link
Member

epage commented Aug 1, 2023

complete_help would be blocked on the plugin system being publicly exposed

@epage epage added the S-blocked Status: Blocked on something else such as an RFC or other implementation work. label Aug 1, 2023
@epage epage changed the title Support custom help messages for completions Allow using a completion-specific candidate description over the candidate's help message Aug 11, 2024
@epage epage changed the title Allow using a completion-specific candidate description over the candidate's help message Allow using a completion-specific candidate description over the candidate's help message in rust-native completions Aug 11, 2024
@epage
Copy link
Member

epage commented Sep 20, 2024

btw we now have unstable support for the plugin system, unblocking this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completion Area: completion generator C-enhancement Category: Raise on the bar on expectations S-blocked Status: Blocked on something else such as an RFC or other implementation work.
Projects
None yet
Development

No branches or pull requests

2 participants