mirror of
https://github.com/zoriya/jj.nvim.git
synced 2026-08-15 23:53:18 +00:00
feat(cmd): Add jj commit as a native command
This commit is contained in:
+8
-1
@@ -343,9 +343,16 @@ end
|
||||
|
||||
--- Handle describing a log line
|
||||
function M.handle_log_describe()
|
||||
-- Store the cursor pos for when we exit the describe
|
||||
terminal.store_cursor_position()
|
||||
local revset = get_revset()
|
||||
if revset then
|
||||
require("jj.cmd").describe(nil, revset)
|
||||
require("jj.cmd").describe(nil, revset, nil, function()
|
||||
-- Execute log
|
||||
M.log()
|
||||
-- Restore previous cursor pos
|
||||
terminal.restore_cursor_position()
|
||||
end)
|
||||
else
|
||||
utils.notify("No valid revision found in the log line", vim.log.levels.ERROR)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user