aboutsummaryrefslogtreecommitdiffstats
path: root/lua/menus/oil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/menus/oil.lua')
-rw-r--r--lua/menus/oil.lua101
1 files changed, 101 insertions, 0 deletions
diff --git a/lua/menus/oil.lua b/lua/menus/oil.lua
new file mode 100644
index 0000000..5c7594c
--- /dev/null
+++ b/lua/menus/oil.lua
@@ -0,0 +1,101 @@
+return {
+ {
+ name = "Abrir Oil en cwd",
+ cmd = function()
+ vim.cmd.Oil()
+ end,
+ rtxt = ":Oil",
+ },
+
+ {
+ name = "Abrir Oil flotante",
+ cmd = function()
+ local oil = require("oil")
+ oil.open_float()
+ end,
+ rtxt = "float",
+ },
+
+ { name = "separator" },
+
+ {
+ name = "Refrescar",
+ cmd = function()
+ require("oil.actions").refresh.callback()
+ end,
+ rtxt = "gr",
+ },
+
+ {
+ name = "Padre (-)",
+ cmd = function()
+ require("oil.actions").parent.callback()
+ end,
+ rtxt = "-",
+ },
+
+ {
+ name = "Toggle ocultos",
+ cmd = function()
+ require("oil.actions").toggle_hidden.callback()
+ end,
+ rtxt = "g.",
+ },
+
+ { name = "separator" },
+
+ {
+ name = "Nueva carpeta",
+ cmd = function()
+ require("oil.actions").create.callback()
+ end,
+ rtxt = "+d",
+ },
+ {
+ name = "Renombrar",
+ cmd = function()
+ require("oil.actions").rename.callback()
+ end,
+ rtxt = "rn",
+ },
+ {
+ name = "Eliminar",
+ cmd = function()
+ require("oil.actions").delete.callback()
+ end,
+ rtxt = "dd",
+ },
+
+ { name = "separator" },
+
+ {
+ name = "Abrir en split",
+ cmd = function()
+ require("oil.actions").select_split.callback()
+ end,
+ rtxt = "<C-h>",
+ },
+ {
+ name = "Abrir en vsplit",
+ cmd = function()
+ require("oil.actions").select_vsplit.callback()
+ end,
+ rtxt = "<C-s>",
+ },
+ {
+ name = "Abrir en tab",
+ cmd = function()
+ require("oil.actions").select_tab.callback()
+ end,
+ rtxt = "<C-t>",
+ },
+
+ { name = "separator" },
+
+ {
+ name = "Terminal aquí",
+ cmd = function()
+ require("oil.actions").open_terminal.callback()
+ end,
+ },
+}