mirror of
https://github.com/zoriya/jj.nvim.git
synced 2026-08-05 10:46:08 +00:00
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:
+2
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user