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

feat: add specialized zsh task completion #1379

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented May 13, 2024

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 wolfv changed the title add specialized zsh task completion feat: add specialized zsh task completion May 13, 2024
@pavelzw
Copy link
Contributor

pavelzw commented May 13, 2024

xref #372

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

@ruben-arts ruben-arts marked this pull request as draft May 30, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants