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

Add bash+zsh completions for rbw get and rbw get --folder #245

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Game4Move78
Copy link

@Game4Move78 Game4Move78 commented Apr 3, 2025

I'm not a rust programmer, so I just wrapped your autogenerated _rbw in a bash/zsh script that adds completions to bash/zsh for folders and item names using awk. Its a usable hack, so feel free to use it as a starting point if you like it.

If someone is willing to implement options to rbw list that filter by folder or item name, then this can replace the usage of awk. To integrate dynamic completions into clap-generated output I append the main-bash.sh and main-zsh.sh scripts at compile time, which wrap the static completions given by _rbw.

@Game4Move78 Game4Move78 force-pushed the main branch 2 times, most recently from 58dcdb1 to cf2549d Compare April 3, 2025 12:01
@Game4Move78 Game4Move78 changed the title Add zsh completions for rbw get and rbw get --folder Add bash+zsh completions for rbw get and rbw get --folder Apr 3, 2025
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.

1 participant