A Herdr plugin to create and remove Jujutsu (jj) workspaces with one keypress — as a new Herdr workspace or a new tab. A small Rust binary; requires jj at runtime and cargo to build.
-
Install the plugin (Herdr builds it with
cargoat install time):herdr plugin install NathanFlurry/herdr-plugin-jj-workspace
For local development,
plugin linkdoes not build — build first:cargo build --release herdr plugin link . -
Bind keys in your Herdr keybindings config (
prefixis your leader, defaultctrl+b). These are unbound in stock Herdr:[[keys.command]] key = "prefix+a" type = "plugin_action" command = "nathanflurry.jj-workspace.new-tab" description = "new jj workspace (in tab)" [[keys.command]] key = "prefix+shift+a" type = "plugin_action" command = "nathanflurry.jj-workspace.new" description = "new jj workspace" [[keys.command]] key = "prefix+d" type = "plugin_action" command = "nathanflurry.jj-workspace.remove" description = "remove jj workspace"
prefix+a— create a workspace (prompts for a name), open in a new tabprefix+shift+a— same, but open as a new workspaceprefix+d— destroy the current workspace
Replaces the manual new tab → jj workspace add → cd dance.
MIT — see LICENSE.