feat: add action to open a terminal
This commit is contained in:
parent
0f104854da
commit
c6a2e3e08f
1 changed files with 10 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue