mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
Merge pull request #92 from trewjames/terminal
feat(term): add clear all functionality for terms
This commit is contained in:
commit
d8610fdc12
@ -72,4 +72,12 @@ M.sendCommand = function(idx, cmd, ...)
|
||||
end
|
||||
end
|
||||
|
||||
M.clear_all = function()
|
||||
log.trace("clear_all(): Clearing all terminals.")
|
||||
for _, term in ipairs(terminals) do
|
||||
vim.api.nvim_buf_delete(term.buf_id, { force = true })
|
||||
end
|
||||
terminals = {}
|
||||
end
|
||||
|
||||
return M
|
||||
|
Loading…
x
Reference in New Issue
Block a user