Skip to content
Discussion options

You must be logged in to vote

You can't as it's currently implemented.

You can however implement a custom action of yours with most of the code shown here.

I believe this should work

return {
	{
		"folke/snacks.nvim",
		opts = {
			picker = {
				actions = {
					qflist_append = function(picker)
						picker:close()
						local sel = picker:selected()
						local items = #sel > 0 and sel or picker:items()
						local qf = {} ---@type vim.quickfix.entry[]
						for _, item in ipairs(items) do
							qf[#qf + 1] = {
								filename = Snacks.picker.util.path(item),
								bufnr = item.buf,
								lnum = item.pos and item.pos[1] or 1,
								col = item.pos and item.pos[2] + 1 or 1,
								end_lnum = item.end_pos and i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jacobrreed
Comment options

Answer selected by jacobrreed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants