diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-08-06 09:17:43 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-08-06 09:17:43 -0500 |
| commit | 6cdf366f6c5f47410ecbe22d8678d06852dc47d9 (patch) | |
| tree | b2df3607f7ed6426604d2f49487e3ac16f3faf19 /broot-sessionizer/README.md | |
| parent | cbbfb6ca64cbf2a34fd786c10a958b3a76fdbbf2 (diff) | |
broot-sessionizer
Diffstat (limited to 'broot-sessionizer/README.md')
| -rw-r--r-- | broot-sessionizer/README.md | 28 |
1 files changed, 28 insertions, 0 deletions
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. + +<a href="https://asciinema.org/a/2qp4RkHfbNzNHm3BQsWUrrTy9" target="_blank"><img src="https://asciinema.org/a/2qp4RkHfbNzNHm3BQsWUrrTy9.svg" /></a> + +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'" +``` |
