diff options
| author | runiq <patrice.peterson@mailbox.org> | 2021-05-31 03:45:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-30 21:45:57 -0400 |
| commit | 517f4b204bbb9d9e0262648f3cbf5820ea14c8f0 (patch) | |
| tree | c0a239026bd3d98b8c85633541b7589c673e2080 /lua | |
| parent | d2b3b080777099d89f396fe949d30e6eceeb4370 (diff) | |
Add documentation for quickfix actions (#869)
* Add documentation for quickfix actions
* [docgen] Update doc/telescope.txt
skip-checks: true
Co-authored-by: Github Actions <actions@github>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index f78eb01..b8b1957 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -516,18 +516,22 @@ local send_all_to_qf = function(prompt_bufnr, mode) vim.fn.setqflist(qf_entries, mode) end +--- Sends the selected entries to the quickfix list, replacing the previous entries. actions.send_selected_to_qflist = function(prompt_bufnr) send_selected_to_qf(prompt_bufnr, 'r') end +--- Adds the selected entries to the quickfix list, keeping the previous entries. actions.add_selected_to_qflist = function(prompt_bufnr) send_selected_to_qf(prompt_bufnr, 'a') end +--- Sends all entries to the quickfix list, replacing the previous entries. actions.send_to_qflist = function(prompt_bufnr) send_all_to_qf(prompt_bufnr, 'r') end +--- Adds all entries to the quickfix list, keeping the previous entries. actions.add_to_qflist = function(prompt_bufnr) send_all_to_qf(prompt_bufnr, 'a') end @@ -541,10 +545,14 @@ local smart_send = function(prompt_bufnr, mode) end end +--- Sends the selected entries to the quickfix list, replacing the previous entries. +--- If no entry was selected, sends all entries. actions.smart_send_to_qflist = function(prompt_bufnr) smart_send(prompt_bufnr, 'r') end +--- Adds the selected entries to the quickfix list, keeping the previous entries. +--- If no entry was selected, adds all entries. actions.smart_add_to_qflist = function(prompt_bufnr) smart_send(prompt_bufnr, 'a') end |
