Skip to content

Quickly navigate your file system and start a zellij session instantly!

License

Notifications You must be signed in to change notification settings

silicakes/zellij-sessionizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zellij-sessionizer

  • 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 using find

Demo of the original:

My Developer Workflow - How I use i3, tmux, and vim from @ThePrimeagen

Installation / Usage

POSIX shells

  1. Place the zellij-sessionizer script in your PATH
  2. Create an alias to call this script in your shells .rc config, e.g. in zsh
    bindkey -s ^f "zellij-sessionizer path1 path2 etc..\n"
  3. Update which paths you'd like to search in

Nushell

The zellij-sessionizer now support Nushell 🥳

  1. Place the zellij-sessionizer.nu script in your PATH
  • manualy with cp zellij-sessionizer.nu /some/path/in/your/PATH
  • with the Nushell package manager (COMING SOON)
  1. Call zellij-sessionizer.nu --help from anywhere to get the help of the command

advanced (?) usage

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 in env.nu that points to a place with lots of projects,

this binding will run the sessionizer simply by pressing <C-f> 👌

About

Quickly navigate your file system and start a zellij session instantly!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published