str4d / rage

A simple, secure and modern file encryption tool (and Rust library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org/v1
Apache License 2.0
2.69k stars 104 forks source link

UX: Better shell completions #512

Closed BoostCookie closed 3 months ago

BoostCookie commented 3 months ago

What were you trying to do

After entering rage -i ./ and pressing <TAB> I expect the zsh completions to show me files in ./

What happened

No files shown as completion candidates.

How to fix

This should be really easy to fix as you are already using clap_complete. It just needs the context of when to expect a file and then the correct completions will get created.