mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-11 16:39:47 +00:00
fix(actions): set location list title (#2741)
(cherry picked from commit 8c9fd22952)
This commit is contained in:
committed by
Simon Hauser
parent
5263cb6021
commit
fbe2b6c309
@@ -812,11 +812,12 @@ local send_all_to_qf = function(prompt_bufnr, mode, target)
|
||||
local prompt = picker:_get_prompt()
|
||||
actions.close(prompt_bufnr)
|
||||
|
||||
local qf_title = string.format([[%s (%s)]], picker.prompt_title, prompt)
|
||||
if target == "loclist" then
|
||||
vim.fn.setloclist(picker.original_win_id, qf_entries, mode)
|
||||
vim.fn.setloclist(picker.original_win_id, {}, "a", { title = qf_title })
|
||||
else
|
||||
vim.fn.setqflist(qf_entries, mode)
|
||||
local qf_title = string.format([[%s (%s)]], picker.prompt_title, prompt)
|
||||
vim.fn.setqflist({}, "a", { title = qf_title })
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user