Skip to content

Commit c82b26e

Browse files
authored
fix: incorrect default config actions (#414)
1 parent 76bfc25 commit c82b26e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ require("oil").setup({
184184
keymaps = {
185185
["g?"] = "actions.show_help",
186186
["<CR>"] = "actions.select",
187-
["<C-s>"] = { "actions.select_split", opts = { vertical = true } },
188-
["<C-h>"] = { "actions.select_split", opts = { horizontal = true } },
189-
["<C-t>"] = { "actions.select_split", opts = { tab = true } },
187+
["<C-s>"] = { "actions.select", opts = { vertical = true } },
188+
["<C-h>"] = { "actions.select", opts = { horizontal = true } },
189+
["<C-t>"] = { "actions.select", opts = { tab = true } },
190190
["<C-p>"] = "actions.preview",
191191
["<C-c>"] = "actions.close",
192192
["<C-l>"] = "actions.refresh",

doc/oil.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ CONFIG *oil-confi
7575
keymaps = {
7676
["g?"] = "actions.show_help",
7777
["<CR>"] = "actions.select",
78-
["<C-s>"] = { "actions.select_split", opts = { vertical = true } },
79-
["<C-h>"] = { "actions.select_split", opts = { horizontal = true } },
80-
["<C-t>"] = { "actions.select_split", opts = { tab = true } },
78+
["<C-s>"] = { "actions.select", opts = { vertical = true } },
79+
["<C-h>"] = { "actions.select", opts = { horizontal = true } },
80+
["<C-t>"] = { "actions.select", opts = { tab = true } },
8181
["<C-p>"] = "actions.preview",
8282
["<C-c>"] = "actions.close",
8383
["<C-l>"] = "actions.refresh",

lua/oil/config.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ local default_config = {
5858
keymaps = {
5959
["g?"] = "actions.show_help",
6060
["<CR>"] = "actions.select",
61-
["<C-s>"] = { "actions.select_split", opts = { vertical = true } },
62-
["<C-h>"] = { "actions.select_split", opts = { horizontal = true } },
63-
["<C-t>"] = { "actions.select_split", opts = { tab = true } },
61+
["<C-s>"] = { "actions.select", opts = { vertical = true } },
62+
["<C-h>"] = { "actions.select", opts = { horizontal = true } },
63+
["<C-t>"] = { "actions.select", opts = { tab = true } },
6464
["<C-p>"] = "actions.preview",
6565
["<C-c>"] = "actions.close",
6666
["<C-l>"] = "actions.refresh",

0 commit comments

Comments
 (0)