-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Request (completions): also complete sessions' names for 'attach' subcommand #1030
Comments
@folliehiyuki, |
The sed command is just a hacky way to suppress the output when there is no active session (so that zellij only completes Without sed, I'd suggest we move the I can't come up with any better idea right now sadly. |
@folliehiyuki,
That is actually something I wrote on my whiteboard today, since I played around with the |
And infrastructure to make it possible to add more dynamic completions for different shells in the future. eg: ``` zellij attach [completes-active-sessions] zellij kill-session [completes-active-sessions] ``` fixes: zellij-org#1030
And infrastructure to make it possible to add more dynamic completions for different shells in the future. eg: ``` zellij attach [completes-active-sessions] zellij kill-session [completes-active-sessions] ``` fixes: #1030
@folliehiyuki, |
@a-kenji I left some minor comments in the commit: e2ce261#r68041355 and e2ce261#r68041394 |
@folliehiyuki, |
I think the same thing can be achieved with zsh since it can also take a command as argument list. I'm not familiar with zsh though. Bash probably doesn't support this kind of completion. |
@a-kenji should this be opened as a separate issue for zsh? |
This is pretty easy to do on the shell side. For example, in
fish
:zellij
generates completions from subcommands instead of providing the completion files and I don't know Rust :( so I'll leave this feature request here.The text was updated successfully, but these errors were encountered: