From 746f78b60fc87050aa75a40f9a528f042a122929 Mon Sep 17 00:00:00 2001 From: NicolasGB Date: Tue, 30 Dec 2025 11:13:04 +0100 Subject: [PATCH] fix(log): if a default prefix has been set take it into account when creating a bookmark from the logfile --- lua/jj/cmd/log.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/jj/cmd/log.lua b/lua/jj/cmd/log.lua index b3815b6..84803bf 100644 --- a/lua/jj/cmd/log.lua +++ b/lua/jj/cmd/log.lua @@ -356,8 +356,9 @@ local function handle_log_bookmark() }, function(choice) if choice then if choice == "[Create new]" then + local prefix = require("jj.cmd").config.bookmark.prefix or "" -- Prompt for new bookmark name - vim.ui.input({ prompt = "Enter new bookmark name: " }, function(input) + vim.ui.input({ prompt = "Enter new bookmark name: ", default = prefix }, function(input) if input and input ~= "" then local cmd = string.format("jj bookmark create %s -r %s", input, revset) runner.execute_command_async(cmd, function()