From 2a1717bf72479820a66cadd2b0d31a094601afa8 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 7 May 2026 00:31:47 +0200 Subject: [PATCH] Add tug option to jjui --- modules/cli/tools/jujutsu.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/cli/tools/jujutsu.nix b/modules/cli/tools/jujutsu.nix index cd2cfe6..4e98884 100644 --- a/modules/cli/tools/jujutsu.nix +++ b/modules/cli/tools/jujutsu.nix @@ -49,7 +49,26 @@ programs.jjui = { enable = true; settings = { + actions = [ + { + name = "tug"; + desc = "Tug previous bookmark"; + lua = + #lua + '' + jj("bookmark", "move", "--from", "closest_bookmark(@)", "--to", context.change_id()) + revisions.refresh({}) + ''; + } + ]; bindings = [ + { + key = "t"; + action = "tug"; + scope = "revisions"; + desc = "Tug"; + } + # bindings bellows are just for ctrl+c as cancel { key = ["esc" "ctrl+c"]; action = "ui.cancel";