Show a nested picker with grep picker input history as source #2374
|
Originally posted at #1967 but that got closed as stale. I often want to populate the snacks grep picker with input that I've previously searched for in the grep picker. With Is there a way to spawn a nested picker with previous grep picker input history as the source, which when selected, would populate the input for a |
Replies: 2 comments 8 replies
|
Sorry, this is kinda unrelated to what you're asking, but how do you make Looked at your config tried tried doing the same, but didn't work for some reason. I wonder if I have to install something. {
"folke/snacks.nvim",
opts = function(_, opts)
local sources = opts.picker.sources or {}
local matcher = opts.picker.matcher or {}
local win = opts.picker.win or {}
for _, name in ipairs(const.SNACKS.picker.sources) do
sources[name] = const.SNACKS.picker.source_config
end
matcher.history_bonus = true
matcher.frecency = true
matcher.cwd_bonus = true
matcher.sort_empty = true
win = {
input = {
keys = {
["<a-Up>"] = { "history_forward", mode = { "i", "n" } },
["<a-Down>"] = { "history_back", mode = { "i", "n" } },
},
},
}
opts.picker.sources = sources
opts.picker.matcher = matcher
opts.win = win
return opts
end,Tried with shift as too, in case alt/opt doesn't work in macOS. |

You're so desperate for that feature: