ihabunek / toot

toot - Mastodon CLI & TUI
GNU General Public License v3.0
1.16k stars 112 forks source link

bash tab completion for commands #421

Open strk opened 11 months ago

strk commented 11 months ago

Would be nice to toot not<TAB> to get notifications :)

danschwarz commented 11 months ago

This is probably a shell thing. I have migrated from bash to zsh, and zsh has a very nice customizable system for completions. Tried the simplest possible solution and it didn't work, so a custom completion script for toot is likely what's needed.

I realize this doesn't help you on bash. But it might motivate you to switch?

ihabunek commented 11 months ago

I plan to rewrite toot to use Click which supports completions for bash/zsh/fish. So this will be done at some point. https://click.palletsprojects.com/en/8.1.x/shell-completion/