How to select all items from live_grep to quickfix ? #1211
-
Follow up the discussion in #1126 ,
How can I select all file in the result from There is a profile telesceope in : But it looks like there is no option for grep
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Add this mapping to the default
The profile is just a set of options sent to |
Beta Was this translation helpful? Give feedback.
-
Also see the discussion in #1109 for how to use a custom function in conjunction with |
Beta Was this translation helpful? Give feedback.
-
You can even do that in a command one-liner, try: -- Can’t have an action set to ctrl-q or options will conflict
:FzfLua live_grep keymap.fzf.ctrl-q=select-all+accept actions.ctrl-q=false |
Beta Was this translation helpful? Give feedback.
-
FYI, once fzf Using -- This will work assuming `alt-q` is already defined in `actions`
:FzfLua live_grep keymap.fzf.alt-q=select-all It is also possible to define this within the action itself (can be any action including custom): :lua require("fzf-lua").files({
actions ={
-- "+accept" isn't required since `accept` is implied with actions
["ctrl-q"] = { fn = require"fzf-lua".actions.file_sel_to_qf, prefix = "select-all" }
}
}) Obviously the above cab be specified during require("fzf-lua").setup({
files = {
actions = { ["ctrl-q"] = { fn = require"fzf-lua".actions.file_sel_to_qf, prefix = "select-all" } }
}
}) |
Beta Was this translation helpful? Give feedback.
Also see the discussion in #1109 for how to use a custom function in conjunction with
select-all
.