fix(log): if a default prefix has been set take it into account when

creating a bookmark from the logfile
This commit is contained in:
NicolasGB
2025-12-30 12:22:47 +01:00
parent a7b9de68cb
commit 746f78b60f
+2 -1
View File
@@ -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()