-
Hello, As the title suggests I want to send the results of live grep to the quickfix list and I've searched the issues and discussions but I see few solutions which work BUT only with actions but I want to use the keymap type where the option is defined. Has something changed on the plugin side? I think the mapping used to work previously(or it never worked 🤔 ) but following is my config file: return {
"ibhagwan/fzf-lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
local actions = require("fzf-lua").actions
require("fzf-lua").setup({
"ivy",
actions = {
files = {
["enter"] = actions.file_edit,
["ctrl-x"] = actions.file_split,
["ctrl-s"] = actions.file_vsplit,
},
},
fzf_opts = { ["--cycle"] = true },
winopts = { preview = { hidden = true, title = false } },
buffers = { show_unloaded = false, sort_lastused = true, actions = false },
keymap = { builtin = { ["<c-o>"] = "toggle-preview" }, fzf = { ["ctrl-q"] = "select-all+accept" } },
})
end,
} Just to be sure its not n fzf issue I've installed the current latest build and I see the same result in neovim's terminal fzf --version
0.65 (devel) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
It doesn’t work because Alternatively (and more consistent IMO) is to use (remove ctrl-q from keymap.fzf): actions = {
files = {
["enter"] = actions.file_edit,
["ctrl-x"] = actions.file_split,
["ctrl-s"] = actions.file_vsplit,
["ctrl-q"] = { fn = actions.file_sel_to_qf, prefix = "select-all" },
},
}, |
Beta Was this translation helpful? Give feedback.
It doesn’t work because
accept
uses the default enter action which in your case isfile_edit
, if you change it toedit_or_qf
it will work.Alternatively (and more consistent IMO) is to use (remove ctrl-q from keymap.fzf):