other pickers inherit files
picker actions
#1945
-
I don't know what i am doing at this point I added a custom action to ...
actions = {
files = {
true,
["ctrl-y"] = {
fn = function(selected)
if #selected > 0 then
local path = vim.split(selected[1], " ")[2]
vim.fn.setreg([[+]], path)
end
end,
header = "Copy Path",
exec_silent = true,
},
},
},
... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Global actions.files is file all file like entries, if you want this only for the files picker move the table under files:
require("fzf-lua").setup({ files = { actions = { … } } }) |
Beta Was this translation helpful? Give feedback.
Global actions.files is file all file like entries, if you want this only for the files picker move the table under files: