Skip to content

Commit 1e6bcea

Browse files
Replace dolphin with open for cross-platform compatibility (#14)
* Initial plan * Replace dolphin with open in normal-keymaps.lua Co-authored-by: conneroisu <[email protected]> * Fix spacing and update description after code review Co-authored-by: conneroisu <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: conneroisu <[email protected]>
1 parent 2c227b0 commit 1e6bcea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/keymaps/normal-keymaps.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ vim.keymap.set("n", "<C-e>", function()
1212
local cwd = vim.fn.expand("%:p:h")
1313
local path = vim.fn.expand("%:p")
1414
if string.match(cwd, "oil") then
15-
vim.cmd("!dolphin " .. " . ")
15+
vim.cmd("!open " .. " . ")
1616
else
17-
vim.cmd("!dolphin --select" .. " " .. path)
17+
vim.cmd("!open " .. path)
1818
end
1919
end, {
20-
desc = "Open the current working directory in the file explorer for windows"
20+
desc = "Open the current working directory in the file explorer"
2121
})
2222

2323
vim.api.nvim_set_keymap("n", "<A-j>", "<cmd>m .+1<cr>==", {

0 commit comments

Comments
 (0)