-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add zef completion #8114
Add zef completion #8114
Conversation
share/completions/zef.fish
Outdated
complete -c zef -n __fish_is_first_token -s h -l help -f -d 'Display help text' | ||
complete -c zef -n __fish_is_first_token -l version -f -d 'Detailed version information' | ||
complete -c zef -n 'not __fish_is_first_token' -l config-path -d 'Load a specific Zef config file' | ||
complete -c zef -n '__fish_seen_argument -l config-path' -x -k -a '(__fish_complete_suffix)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which suffix?
If you just want file completions, use -F
/--force-files
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that first, but it doesn't seem to work. Maybe because of complete -c zef -f
. I tried different different combinations, and this was the only thing that worked for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I tried -F
again with -r
on --config-path
and it seemed to work, this time! Will try it on other similar options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, it worked on all, but one:
complete -c zef -n '__fish_seen_subcommand_from install test build' -k -a '(__fish_complete_suffix)'
I don't know if there is another way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
complete -c zef -n '__fish_seen_subcommand_from install test build' -F
not work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. At least, not for me.
[zef](https://github.com/ugexe/zef) is a module manager for [Raku](https://raku.org/) programming language.
Merged, thanks! |
zef is a module manager for Raku programming language.