convco icon indicating copy to clipboard operation
convco copied to clipboard

Shell auto-completion

Open kamack38 opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Add shell auto-completion using clap_complete

kamack38 avatar Jul 20 '24 10:07 kamack38

The code completions are available here: https://github.com/convco/convco/releases/tag/v0.5.1

Depending on how you install convco code completions will be available e.g. brew install convco will also install the completions

hdevalke avatar Jul 20 '24 19:07 hdevalke

I've installed it via cargo install, so I think it doesn't provide completions. Wouldn't it be possible to add a completion command to the CLI that would allow specifying a shell I want completions installed for?

kamack38 avatar Jul 21 '24 08:07 kamack38

It could be added under a feature completions. and be implemented using the subcommand completions with--shell as option if it could not be autodetected by parsing the SHELL env variable.

hdevalke avatar Nov 26 '24 21:11 hdevalke