feat(picker): add qflist_all action to send all even when already sel… (#600)

Adds a new action `qflist_all` that send all items to quickfix even when
there are already selected ones. This complements the "selected or all"
behaviour of `qflist`.
This commit is contained in:
Kovács Ádám 2025-01-18 10:42:59 +01:00 committed by GitHub
parent 193386b6e7
commit c7354d8348
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,6 +178,12 @@ function M.qflist(picker)
setqflist(items)
end
--- Send all items to the quickfix list.
function M.qflist_all(picker)
picker:close()
setqflist(picker:items())
end
--- Send selected or all items to the location list.
function M.loclist(picker)
picker:close()