From 6cdf366f6c5f47410ecbe22d8678d06852dc47d9 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Wed, 6 Aug 2025 09:17:43 -0500 Subject: broot-sessionizer --- broot-sessionizer/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 broot-sessionizer/README.md (limited to 'broot-sessionizer/README.md') diff --git a/broot-sessionizer/README.md b/broot-sessionizer/README.md new file mode 100644 index 0000000..48781a1 --- /dev/null +++ b/broot-sessionizer/README.md @@ -0,0 +1,28 @@ +# `broot-sessionizer` +A replacement for [`tmux-sessionizer`](https://github.com/theprimeagen/tmux-sessionizer) that uses the broot instead of fzf, and runs in the minibuffer. + + + +For those unfamiliar, here is the basic sessionizer workflow: +- You have one tmux session for every project that you're working on. +- The script presents you with a menu to select one of your projects from + - If a tmux session for that project already exists, switch to it + - Otherwise, create the session and switch to it + +Differences from tmux-sessionizer: +- lets you pick any directory in the filesystem, instead of from a set list of projects. +- sets @default-path in the session to the path the user selects (useful for scripting) + +## Setup +If you haven't already, clone this repo to a know location, such as `~/.config/tmux/m`. +```sh +cd ~/.config/tmux +git clone https://bluedragon1221/tmux-minibuffer m +``` + +Next, on the line that says `external =` in `broot_cfg.sh`, replace `~/.config/tmux/sessionizer.sh` with the correct path to `sessionizer.sh`. + +Now we can add our keybinding to launch it: +```sh +bind-key -n C-f run-shell "${scriptsDir}/minibuffer.sh -d '$HOME' '~/.config/tmux/m/broot-sessionizer/launch.sh'" +``` -- cgit v1.3.1