pixi icon indicating copy to clipboard operation
pixi copied to clipboard

feat: add specialized zsh task completion

Open wolfv opened this issue 1 year ago • 1 comments

This adds some completion for arguments after the task. For example

pixi run git chec<TAB>
# completes to `checkout`
pixi run foo ./my-fi<TAB>
# completes to a filename (e.g. `./my-file.txt`)

Only works with zsh for now but I think we can have a similar approach on bash.

Does not (yet) complete the binaries found in the pixi env (e.g. $PIXI_ENV/bin/<binary-name> could also be a nice completion opportunity.

Does not take into account flags like -e ENV.

wolfv avatar May 13 '24 14:05 wolfv

xref #372

do you think such an approach would work for fish as well?

pavelzw avatar May 13 '24 21:05 pavelzw

Closing this as stale

ruben-arts avatar Aug 12 '24 06:08 ruben-arts