-
Inspired by the
tmux-sessionizer
of @ThePrimeagen - just for Zellij -
Allows you to use
fzf
to navigate into a desired folder and either start or attach into a Zellij session -
If you run it from inside Zellij, it will open the newly selected folder in a new pane
-
Will use
fd
if installed, otherwise - will defer to usingfind
My Developer Workflow - How I use i3, tmux, and vim from @ThePrimeagen
- Place the
zellij-sessionizer
script in yourPATH
- Create an alias to call this script in your shells
.rc
config, e.g. inzsh
bindkey -s ^f "zellij-sessionizer path1 path2 etc..\n"
- Update which paths you'd like to search in
The zellij-sessionizer
now support Nushell 🥳
- Place the
zellij-sessionizer.nu
script in yourPATH
- manualy with
cp zellij-sessionizer.nu /some/path/in/your/PATH
- with the Nushell package manager (COMING SOON)
- Call
zellij-sessionizer.nu --help
from anywhere to get the help of the command
in my config.nu
file, i've added the following binding under $env.config.keybindings
:
{
name: zellij_sessionizer
modifier: control
keycode: char_f
mode: [emacs, vi_insert, vi_normal]
event: {
send: executehostcommand
cmd: "zellij-sessionizer.nu $env.GIT_REPOS_HOME"
}
}
given that
zellij-sessionizer.nu
is in your$env.PATH
,$env.GIT_REPOS_HOME
is some variable defined inenv.nu
that points to a place with lots of projects,
this binding will run the sessionizer simply by pressing <C-f>
👌