Skip to content

WIP: 'abduco' completion#181

Draft
unrealapex wants to merge 3 commits intomagicant:trunkfrom
unrealapex:abduco
Draft

WIP: 'abduco' completion#181
unrealapex wants to merge 3 commits intomagicant:trunkfrom
unrealapex:abduco

Conversation

@unrealapex
Copy link
Copy Markdown
Contributor

@unrealapex unrealapex commented Jul 4, 2025

Add completion for abduco, a session manager.

@unrealapex unrealapex marked this pull request as draft July 4, 2025 06:48
Comment thread share/completion/abduco Outdated
Comment on lines +25 to +28
(-A|-a|-f)
# FIXME: figure out why this isn't completing
complete -P "$PREFIX" -- $(abduco | tail -n+2 | awk '{print $NF}')
;;
Copy link
Copy Markdown
Contributor Author

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?

Comment thread share/completion/abduco Outdated
Comment thread share/completion/abduco Outdated
(-)
command -f completion//completeoptions
;;
(-A|-a|-f)
Copy link
Copy Markdown
Owner

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.

Suggested change
(-A|-a|-f)
('')

Copy link
Copy Markdown
Contributor Author

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.

Copy link
Copy Markdown
Contributor Author

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).

unrealapex and others added 2 commits July 22, 2025 01:21
Co-authored-by: WATANABE Yuki <magicant@wonderwand.net>
Co-authored-by: WATANABE Yuki <magicant@wonderwand.net>
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.

2 participants