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

Style completion options with rust-native completions #5649

Open
epage opened this issue Aug 10, 2024 · 3 comments
Open

Style completion options with rust-native completions #5649

epage opened this issue Aug 10, 2024 · 3 comments
Labels
A-completion Area: completion generator C-enhancement Category: Raise on the bar on expectations E-medium Call for participation: Experience needed to fix: Medium / intermediate

Comments

@epage
Copy link
Member

epage commented Aug 10, 2024

Two halves to this

Some completion options have a "pretty" mode, a display-only completion result

Next step is coloring of that, see

@epage epage added E-medium Call for participation: Experience needed to fix: Medium / intermediate A-completion Area: completion generator C-enhancement Category: Raise on the bar on expectations labels Aug 10, 2024
@epage
Copy link
Member Author

epage commented Aug 10, 2024

This could likely be a pretty: Option<StyledStr> and wouldn't require a breaking change.

@epage
Copy link
Member Author

epage commented Sep 4, 2024

Carapace

For bash, it includes the display item in the description
https://github.com/carapace-sh/carapace/blob/68d3237f5321f743ec0428e450957b797f3889b3/internal/shell/bash/action.go#L100-L106

For zsh, it does display:description. Unsure if that is special zsh syntax
https://github.com/carapace-sh/carapace/blob/68d3237f5321f743ec0428e450957b797f3889b3/internal/shell/zsh/action.go#L70-L74

For elvish, its communicating via json

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 E-medium Call for participation: Experience needed to fix: Medium / intermediate
Projects
None yet
Development

No branches or pull requests

1 participant