-
Notifications
You must be signed in to change notification settings - Fork 162
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
Tweak Zsh completions and allow completion on ports tree #652
base: master
Are you sure you want to change the base?
Conversation
So far, so good. It seems to work well. |
Can you explain in your commit, or split into two, the various changes beyond the ports tree change? Also your commit still says "wip". |
59c57f2
to
a196398
Compare
a196398
to
c30db5f
Compare
I updated the commit and included a description of the two types of changes in the commit log.
|
c30db5f
to
504f440
Compare
Hmm now it seems completions don't require any
|
And using |
What's the sane way to reload the completions when replacing the |
Sorry, I didn't catch that Note that if you hit a |
The |
I hope to take another go at this soon. |
4121bdc
to
a37579c
Compare
- Ensure that mutually exclusive options are not both completed. For example, in the '-a' specification for the 'bulk' action shown below, the (-f *) indicates that if '-a' has been specified, then do not complete either '-f' or a ports tree. '(-f *)-a[build the whole ports tree]' - Ensure that mandatory arguments are properly completed. For example, in the '-p' specifications show below, in the first form, the ports tree is optional and in the second form it is mandatory. -p+[specifies which ports tree to use]::tree:_poudriere_pt -p+[specifies which ports tree to use]:tree:_poudriere_pt
a37579c
to
7425927
Compare
There is one annoyance. For options that expect an argument, if the user hits a space before trying to complete, zsh completes on both the argument and a ports tree. For example, if the user enterspoudriere bulk -j
then hitsTAB
, then zsh will only complete on jails, but if the user enterspoudriere bulk -j
, then zsh will complete both the jails and ports. Other than that all seems to be working well. If you do consider this useful, it might be best to wait a few days, so I can test more. I open the PR now, in case there are any changes to discuss.