A semantic stack slicer for Jujutsu. crates.io/crates/jj-slice

TUI keybinds #1

Open isaaccorbrey.com
Open opened by isaaccorbrey.com

jj-slice will let the user operate on the boundaries between changes. I'm trying to match some semantics from typical JJ tooling while also integrating some niceties from Helix:

  • j/k: move up/down one position
  • J/K: move to the next nearest boundary up/down
  • Ctrl+j/k: on a boundary, drag it up/down one position
  • gg/ge: go to the first/last position in the range
  • gw<short ID>: go to the position before (after?) the given change ID (configurable?)
  • space: toggle boundary at position
  • enter: toggle boundary at position and move down one position
  • b: set explicit bookmark for chunk
  • a: toggle all positions consistently
  • c: confirm selection
  • q: quit
  • ?: show help

Perhaps gw should select the actual change you're on, and not allow any boundary-wise operations until you j/k to the next/prev boundary?

Sign up or Sign in to add to the discussion.