Add c-v & c-s mapping for commit pickers

This commit is contained in:
2025-02-20 17:51:22 +01:00
parent c4b558686c
commit 280500ef03
2 changed files with 24 additions and 4 deletions
+10
View File
@@ -105,6 +105,16 @@ return {
["<CR>"] = git_show,
["<C-g>"] = git_show_split,
["<C-f>"] = git_fixup,
["<C-v>"] = function(bufr)
actions.close(bufr)
local entry = action_state.get_selected_entry()
vim.cmd("Gvsplit " .. entry.value .. ":" .. entry.current_file)
end,
["<C-s>"] = function(bufr)
actions.close(bufr)
local entry = action_state.get_selected_entry()
vim.cmd("Gsplit " .. entry.value .. ":" .. entry.current_file)
end,
},
},
},