feat: Add mapping to delete avante history via telescope.nvim (#2867)

This commit is contained in:
XuJiawei
2025-12-14 02:49:54 +08:00
committed by GitHub
parent 0336666a73
commit 08977a401f
4 changed files with 53 additions and 13 deletions

View File

@@ -69,13 +69,8 @@ function M.open(bufnr, cb)
return
end
Path.history.delete(bufnr, item_id_to_delete) -- bufnr from M.open's scope
-- The native provider handles the UI flow; we just need to refresh.
M.open(bufnr, cb) -- Re-open the selector to refresh the list
end,
on_action_cancel = function()
-- If the user cancels the open/delete prompt, re-open the history selector.
M.open(bufnr, cb)
end,
on_open = function() M.open(bufnr, cb) end,
})
current_selector:open()
end