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";