Replies: 2 comments
-
Although "mark all + choose marked" is quite a common use case, the assumption during development was that it is better to be left to atomic operations. Plus creating custom action is relatively straightforward (compared to some other customizations): either emulate pressing those two keys or use a combination of local choose_all = function()
local mappings = MiniPick.get_picker_opts().mappings
vim.api.nvim_input(mappings.mark_all .. mappings.choose_marked)
end
require('mini.pick').setup({
mappings = {
choose_all = { char = '<C-q>', func = choose_all },
},
}) |
Beta Was this translation helpful? Give feedback.
-
This is perfect--thanks. I figured it could be done easily but had no idea how to write the function. Now I can more easily make use of mini.pick to replace Telescope. |
Beta Was this translation helpful? Give feedback.
-
I see how to mark items in a mini.pick window and how to send those marked items to the quickfix list. What I want to do is map both functions to one key.
For example, instead of having to use to mark all items and then to send them to the quickfix list, I want to map to do both operations. I suspect I need to create a lua function that does that and map it, but I am a lua novice.
How do I do that?
Beta Was this translation helpful? Give feedback.
All reactions