-
Notifications
You must be signed in to change notification settings - Fork 24
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
zsh completions #203
Comments
That's one of those things on my list I'll probably never get to.
I'm not familiar with shell completion systems, but I was thinking about a
two-stepped approach:
1. Add a command that generates completion specs for a particular shell that
contains all the commands and their static arguments.
2. Add another command that dynamically generates completion candidates
(e.g. torrent names) that can be used in step 1.
We can probably re-use the completion system that was added for the TUI. But
this is the first time I dabbled with completion and I'm not very confident
about it. It can be very slow in the TUI.
Using a stig subcommand in the shell completion also makes it very slow because
the shell must spawn a new stig process for every completion. This issue could
be solved by running stig in some kind of daemon mode.
|
Tab completion for torrent names in the shell sounds overkill and like you say has performance issues. I was just thinking of generating at build time static completion files that the user or a package manager can install. |
Sure, better than nothing and much less work.
But I'm not sure completion files should be generated automatically. Users might
not need or want them. Do we know for sure where to put them?
|
I actually made my own zsh completions for this. They are as complete as I want them to be as of now. Took quite a while to do, but here they are in my dotfiles repo. By the way, this has torrent name completion and such. It works best with |
The
zsh
shell offers powerful completion features for programs that supply completion specifications. E.g.git
.Given that
stig
can auto-generate its documentation, it should be possible to also auto-generatezsh
completion files.The text was updated successfully, but these errors were encountered: