fix(picker.actions): pass edit commands to jump. Closes #859

This commit is contained in:
Folke Lemaitre 2025-02-01 19:13:19 +01:00
parent 18cdf766ef
commit df0e3e3d86
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -561,7 +561,7 @@ M.actions = {
local state = M.get_state(picker)
vim.fn.chdir(state:dir())
end,
confirm = function(picker)
confirm = function(picker, item, action)
local state = M.get_state(picker)
local item = picker:current()
if not item then
@ -574,7 +574,7 @@ M.actions = {
end
state:toggle(item)
else
picker:action("jump")
Snacks.picker.actions.jump(picker, item, action)
end
end,
}