-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Faster way or conveniences for attaching to session by name #1169
Comments
Hey! Thank you for taking the time for opening this issue.
There is sadly not, but we could append functions to the completions.
That would be awesome, I think connecting to your last point, maybe we could even support fzf/skim and family choosers similarly.
So, that is another possibly good idea. Just for the first letter, and maybe restrict the possibility of automatically generating the same first letter, in order to make this functionality more useful.
In my window manager I have bound something similar to this
But you can also remove the terminal and use it from an already
and switch it with skim:
|
This make attaching to sessions more convenient since only the first character(s) of the session name must be typed. If this prefix matches multiple sessions and is therefore ambiguous, zellij will complain and show all sessions names starting with these characters. If any session name matches the given string exact, it is attached immediately, therefore it is always possible to attach to every session, even if the set of session names is not prefix-free.
This make attaching to sessions more convenient since only the first character(s) of the session name must be typed. If this prefix matches multiple sessions and is therefore ambiguous, zellij will complain and show all sessions names starting with these characters. If any session name matches the given string exact, it is attached immediately, therefore it is always possible to attach to every session, even if the set of session names is not prefix-free.
* feat: Attach sessions by unique name prefix (#1169) This makes attaching to sessions more convenient since only the first character(s) of the session name must be typed. If this prefix matches multiple sessions and is therefore ambiguous, zellij will complain and show all sessions names starting with these characters. If any session name matches the given string exact, it is attached immediately, therefore it is always possible to attach to every session, even if the set of session names is not prefix-free. * Add feature to changelog * Try to fix flaky e2e test
This is now implemented! |
Hi,
It looks like clap does not yet support runtime-provided completion support (clap-rs/clap#1232), hence I'm not sure there's an easy path to providing completion for session names.
However, attaching to a session implies that someone is loading the entire zellij UI interactive inactively anyway.
What if
zellij attach
orzellij attach -m
offered an interactive menu for the user to select a session?Alternatively, would it be possible to allow
zellij attach f
to match a session namedfoobar-awesome
, assuming there are no other sessions starting withf
?I guess one last no-zellij-change-needed option would be to setup some sort of shell keybind so that I could pipe
zellij list-sessions
intoskim
or something? Does someone else have something they like for this?The text was updated successfully, but these errors were encountered: