Skip to content

About

tmux-sessionizer UX for herdr, one static Go binary

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sessionizer

tmux-sessionizer UX for herdr, in one static Go binary. Pick a project directory, and herdr attaches to its workspace — creating the workspace first only when it does not already exist. No duplicates, no declarative layout files, no separate picker process.

Use

Bound inside herdr (prefix+o in the author's config):

[[keys.command]]
key = "prefix+o"
type = "pane"
command = "/home/prm/.config/herdr/bin/sessionizer"

Or standalone:

sessionizer                  # picker: type to filter, enter to open
sessionizer direct myproject # skip the picker, resolve by name

Build

go build -trimpath -ldflags="-s -w" -o sessionizer .

Requires herdr on PATH at runtime. Directory scan covers ~/project, ~/dotfiles, ~/.config up to depth 4, skipping .cache, node_modules, .venv, .repos; adjust depth_max and the roots in main.go for your layout.

Design

  • Attach by exact workspace label; create only on a miss. One code path, in open(), so attach-vs-create can never drift apart.
  • Traversal depth and heavy directories are bounded and named.
  • herdr CLI errors degrade to "create" rather than half-failing mid-flow.

About

tmux-sessionizer UX for herdr, one static Go binary

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages