-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature: Keybind for adding all current entries to quickfix list #1196
Comments
This has been asked and answered many times, I’m AFK atm so I can’t write it for you, you need to have an fzf mapping to |
Sorry, I see that my previous comment was imprecise. I do understand how to do it, but I learned how to do it by looking at the issues. This issue was trying to ask for adding clearer documentation on how to do this, so that you don't need to look through the closed issues for the solution. |
There is always room for better docs, I’m the sole maintainer and when I have time it goes towards issues/improvements, the docs are WIP. The wiki is open edit to all, if you wish you can add a new item in the Wiki homepage with your findings. |
Not your fault, I try to be very responsive to issues so I answer from mobile at times, I sometimes miss the essence of the issue when I do that. |
I'm failing to get this to work right. Set it up as shown in the wiki: require("fzf-lua").setup({
grep = {
actions = {
["ctrl-q"] = {
fn = actions.file_edit_or_qf,
prefix = "select-all+",
},
},
},
})
When pressing |
What version of fzf are you using? Prefix requires fzf version 0.53 and newer. |
|
Obvious question but you’re using the action on grep/live grep pickers correct? What happens if you change the action to file_sel_to_qf? |
No difference. This is exactly what I'm doing: config now updated to your proposed action as:
Same behaviour as before, only one item in the quickfix |
Can you run |
|
From the command: I’m still traveling but I’ll be back tomorrow so I’ll be back to debug this if there’s a deeper issue. |
Alright, I’ll do some testing when I get back tomorrow. |
No worries. Thanks for looking into it, just let me know if you need further info ! |
@pinpox, I just tried the below, with require("fzf-lua").setup({
grep = {
actions = {
["alt-q"] = {
fn = require("fzf-lua").actions.file_edit_or_qf,
prefix = "select-all+",
},
},
},
}) Tried with both zsh and fish (longshot) and it works as expected, using
I'm not sure what else can be the reason preventing your custom function from being loaded, can you try with mini.sh?
sh -c "$(curl -s https://raw.githubusercontent.com/ibhagwan/fzf-lua/main/scripts/mini.sh)"
|
Solved! 😍 |
Great! Ty for the update @pinpox! |
Have you RTFM'd?
Feature Request
If I search for something using
:FzfLua grep_project<CR>
, I want to add all current entries to a quickfix list without first needing to tab select them. You could for instance search for TODO, and then press to get them all to appear in the quickfix list, without first needing to select them with tabI think this issue solves it: #324, but I do not think it is clear how to do this. I think that adding something to the documentation would be useful
The text was updated successfully, but these errors were encountered: