From 69ae6d333ed7d829d092c0dd5cf533c774774ab3 Mon Sep 17 00:00:00 2001 From: SL1900 Date: Sat, 14 Sep 2024 23:43:44 +0900 Subject: [PATCH] Added hotkeys for opening Windows terminal and explorer (Windows only) --- remap.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/remap.lua b/remap.lua index 36ad17a..d137389 100644 --- a/remap.lua +++ b/remap.lua @@ -3,6 +3,11 @@ vim.keymap.set("v", "K", ":m '<-2gv=gv") vim.keymap.set("x", "p", "\"_dP") +if package.config:sub(1,1) == "\\" then + vim.keymap.set("n", "oe", ":!explorer .", { desc = "[O]pen [E]xplorer in current working directory" }) + vim.keymap.set("n", "ot", ":!wt -w 0 nt -d .", { desc = "[O]pen Windows [T]erminal in current working directory" }) +end + -- Telescope local builtin = require("telescope.builtin") if builtin then