You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used it before, but I didn't understand quite well how to use it. I managed to get completions for commands but I lost the ability to get completions for files in the current directory. If I could make it complete for groups and files depending on what the command needs that'd be great.
So went into researching why I couldn't understand how to get proper completions and apparently besides the basic stuff clap_complete does not yet support dynamic completions, so making autocompletion work as intended would take much more effort from my end to maintain it for all the different shells it supports.
See the issue: clap-rs/clap#1232
I'm considering waiting it out until clap complete is ready. If someone is willing to submit a PR with completion scripts for their preferred shells they'd be welcome as well.
the dynamic completion stuff looks promising but it's still behind an unstable feature flag, I wonder if it would be worth experimenting now or just waiting out for stabilization.
You could use clap complete to generate shell completions.
The text was updated successfully, but these errors were encountered: