mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
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:
parent
193386b6e7
commit
c7354d8348
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue