-
Notifications
You must be signed in to change notification settings - Fork 43
WIP: 'abduco' completion #181
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
base: trunk
Are you sure you want to change the base?
Conversation
share/completion/abduco
Outdated
| (-A|-a|-f) | ||
| # FIXME: figure out why this isn't completing | ||
| complete -P "$PREFIX" -- $(abduco | tail -n+2 | awk '{print $NF}') | ||
| ;; |
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.
What would be the correct way to write this completion?
share/completion/abduco
Outdated
| (-) | ||
| command -f completion//completeoptions | ||
| ;; | ||
| (-A|-a|-f) |
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.
If my understanding is correct, session names are specified as the first operand, not as an argument to an option. When completing an operand, $ARGOPT is empty.
| (-A|-a|-f) | |
| ('') |
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.
Session names are only given as arguments to those three arguments.
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.
You are right. Every abduco command requires session names given as the first operand unless abduco is given no options or using the -v(print version).
Co-authored-by: WATANABE Yuki <[email protected]>
Co-authored-by: WATANABE Yuki <[email protected]>
Add completion for
abduco, a session manager.