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

Shell autocompletion #18

Closed
albakham opened this issue Jul 25, 2020 · 4 comments
Closed

Shell autocompletion #18

albakham opened this issue Jul 25, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@albakham
Copy link

It's indirectly related to rbw, but it would be really good to have autocompletion in the most used shells, at least bash and zsh.

If someone is motivated/interested in doing this, please do so.
It really is a must have in my opinion, and I unfortunately don't have (yet) the skills needed to implement this in these respective programs.

@xPMo
Copy link
Contributor

xPMo commented Feb 3, 2021

I'm going to dig into Zsh completion. EDIT: Will publish to this gist while I'm building it.

img

Initial completion done, I parse the output of rbw --help which should help make sure completion stays current with any new commands or aliases. The _tmux implementation is a big help here.

@hoshsadiq
Copy link

Probably better/easier to generate it using the used built in library (see example). Though this seems to only support bash, and zsh can also run bash completions.

@xPMo
Copy link
Contributor

xPMo commented Feb 4, 2021

Oh, cool. Clap also supports Zsh completions.

@doy doy added the enhancement New feature or request label Feb 19, 2021
@doy
Copy link
Owner

doy commented Apr 18, 2021

i've implemented this as part of version 1.2.0 (and the debian and arch packages now also ship with completion files)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants