feat: add action to open a terminal

This commit is contained in:
Steven Arcangeli 2023-01-06 17:26:37 -08:00
parent 0f104854da
commit c6a2e3e08f

View file

@ -84,6 +84,16 @@ M.toggle_hidden = {
end,
}
M.open_terminal = {
desc = "Open a terminal in the current directory",
callback = function()
local dir = oil.get_current_dir()
if dir then
vim.fn.termopen(vim.o.shell, { cwd = dir })
end
end,
}
M.refresh = {
desc = "Refresh directory",
callback = function()