Skip to content

Commit 9a59256

Browse files
author
Github Actions
committed
[docgen] Update docs
skip-checks: true
1 parent f2b3249 commit 9a59256

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,22 +190,22 @@ require("oil").setup({
190190
-- Set to `false` to remove a keymap
191191
-- See :help oil-actions for a list of all available actions
192192
keymaps = {
193-
["g?"] = "actions.show_help",
193+
["g?"] = { "actions.show_help", mode = "n" },
194194
["<CR>"] = "actions.select",
195-
["<C-s>"] = { "actions.select", opts = { vertical = true }, desc = "Open the entry in a vertical split" },
196-
["<C-h>"] = { "actions.select", opts = { horizontal = true }, desc = "Open the entry in a horizontal split" },
197-
["<C-t>"] = { "actions.select", opts = { tab = true }, desc = "Open the entry in new tab" },
195+
["<C-s>"] = { "actions.select", opts = { vertical = true } },
196+
["<C-h>"] = { "actions.select", opts = { horizontal = true } },
197+
["<C-t>"] = { "actions.select", opts = { tab = true } },
198198
["<C-p>"] = "actions.preview",
199-
["<C-c>"] = "actions.close",
199+
["<C-c>"] = { "actions.close", mode = "n" },
200200
["<C-l>"] = "actions.refresh",
201-
["-"] = "actions.parent",
202-
["_"] = "actions.open_cwd",
203-
["`"] = "actions.cd",
204-
["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory", mode = "n" },
205-
["gs"] = "actions.change_sort",
201+
["-"] = { "actions.parent", mode = "n" },
202+
["_"] = { "actions.open_cwd", mode = "n" },
203+
["`"] = { "actions.cd", mode = "n" },
204+
["~"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
205+
["gs"] = { "actions.change_sort", mode = "n" },
206206
["gx"] = "actions.open_external",
207-
["g."] = "actions.toggle_hidden",
208-
["g\\"] = "actions.toggle_trash",
207+
["g."] = { "actions.toggle_hidden", mode = "n" },
208+
["g\\"] = { "actions.toggle_trash", mode = "n" },
209209
},
210210
-- Set to false to disable all of the above keymaps
211211
use_default_keymaps = true,

doc/oil.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ CONFIG *oil-confi
7575
-- Set to `false` to remove a keymap
7676
-- See :help oil-actions for a list of all available actions
7777
keymaps = {
78-
["g?"] = "actions.show_help",
78+
["g?"] = { "actions.show_help", mode = "n" },
7979
["<CR>"] = "actions.select",
80-
["<C-s>"] = { "actions.select", opts = { vertical = true }, desc = "Open the entry in a vertical split" },
81-
["<C-h>"] = { "actions.select", opts = { horizontal = true }, desc = "Open the entry in a horizontal split" },
82-
["<C-t>"] = { "actions.select", opts = { tab = true }, desc = "Open the entry in new tab" },
80+
["<C-s>"] = { "actions.select", opts = { vertical = true } },
81+
["<C-h>"] = { "actions.select", opts = { horizontal = true } },
82+
["<C-t>"] = { "actions.select", opts = { tab = true } },
8383
["<C-p>"] = "actions.preview",
84-
["<C-c>"] = "actions.close",
84+
["<C-c>"] = { "actions.close", mode = "n" },
8585
["<C-l>"] = "actions.refresh",
86-
["-"] = "actions.parent",
87-
["_"] = "actions.open_cwd",
88-
["`"] = "actions.cd",
89-
["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory", mode = "n" },
90-
["gs"] = "actions.change_sort",
86+
["-"] = { "actions.parent", mode = "n" },
87+
["_"] = { "actions.open_cwd", mode = "n" },
88+
["`"] = { "actions.cd", mode = "n" },
89+
["~"] = { "actions.cd", opts = { scope = "tab" }, mode = "n" },
90+
["gs"] = { "actions.change_sort", mode = "n" },
9191
["gx"] = "actions.open_external",
92-
["g."] = "actions.toggle_hidden",
93-
["g\\"] = "actions.toggle_trash",
92+
["g."] = { "actions.toggle_hidden", mode = "n" },
93+
["g\\"] = { "actions.toggle_trash", mode = "n" },
9494
},
9595
-- Set to false to disable all of the above keymaps
9696
use_default_keymaps = true,

0 commit comments

Comments
 (0)