zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.61k stars 638 forks source link

Feature: Go To Tab with a Specific Name #341

Open a-kenji opened 3 years ago

a-kenji commented 3 years ago

Currently it is possible to go to a specific tab by its number. It should be possible to also go to a tab by its name.

nicomitchell commented 3 years ago

Is it alright if I try and implement this? I was thinking pressing S in tabmode would enter a search mode and then check against the input string.

a-kenji commented 3 years ago

Sure, that would be awesome!

tuxflo commented 1 year ago

Just my two cents here: There is already a thing called go-to-tab-name (https://zellij.dev/documentation/cli-actions.html#go-to-tab-name) But this needs the exact name of the tab and sadly does not allow to set other stuff like "cwd" (when using the -c flag) What I currently try to rebuild in zellij is something like "tmux-sessionizer" https://github.com/ThePrimeagen/.dotfiles/blob/master/bin/.local/scripts/tmux-sessionizer

With this script you can fuzzy search certain directories and then open the selection in a new session (I prefer tabs though, so I built a slightly different version). If the session/tab already exists it should just jump to that tab.

ricardoseriani commented 4 months ago

Just my two cents here: There is already a thing called go-to-tab-name (https://zellij.dev/documentation/cli-actions.html#go-to-tab-name) But this needs the exact name of the tab and sadly does not allow to set other stuff like "cwd" (when using the -c flag) What I currently try to rebuild in zellij is something like "tmux-sessionizer" https://github.com/ThePrimeagen/.dotfiles/blob/master/bin/.local/scripts/tmux-sessionizer

With this script you can fuzzy search certain directories and then open the selection in a new session (I prefer tabs though, so I built a slightly different version). If the session/tab already exists it should just jump to that tab.

I think that it's going to be awesome if you can fuzzy search tab name using some kind of shortcut.