feat(builtin.buffers): enhance and bind delete_buffer action (#3145)

* feat(builtin.buffers): enhance and bind `delete_buffer` action

* change default bind and add docs

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
This commit is contained in:
James Trew
2024-06-15 14:24:18 +00:00
committed by GitHub
co-authored by Github Actions
parent 77cab9ad63
commit 979bfa2c44
5 changed files with 21 additions and 0 deletions
+3
View File
@@ -972,6 +972,9 @@ internal.buffers = function(opts)
previewer = conf.grep_previewer(opts),
sorter = conf.generic_sorter(opts),
default_selection_index = default_selection_idx,
attach_mappings = function(_, map)
map({ "i", "n" }, "<M-d>", actions.delete_buffer)
end,
})
:find()
end