Skip to content

NathanFlurry/herdr-plugin-jj-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jj workspaces

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

  1. Install the plugin (Herdr builds it with cargo at install time):

    herdr plugin install NathanFlurry/herdr-plugin-jj-workspace

    For local development, plugin link does not build — build first:

    cargo build --release
    herdr plugin link .
  2. Bind keys in your Herdr keybindings config (prefix is your leader, default ctrl+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"

Quickstart

  • prefix+a — create a workspace (prompts for a name), open in a new tab
  • prefix+shift+a — same, but open as a new workspace
  • prefix+d — destroy the current workspace

Replaces the manual new tab → jj workspace add → cd dance.

License

MIT — see LICENSE.

About

Create and remove Jujutsu (jj) workspaces as Herdr workspaces

Topics

Resources

License

Stars

28 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages