fix oil shortcuts

This commit is contained in:
2026-11-19 23:12:38 +01:00
parent d73edb9f42
commit 192dc306e0
2 changed files with 4 additions and 4 deletions
+2 -3
View File
@@ -58,10 +58,9 @@ Git shortcuts:
- `[h`, `]h`, `[H`, `]H` jump to hunks - `[h`, `]h`, `[H`, `]H` jump to hunks
- `<leader>th` — toggle the expanded hunk view - `<leader>th` — toggle the expanded hunk view
Oil usage: Oil shortcuts:
- `-`, `<BS>` goes to the parent directory - `gp` opens preview panel
- `<C-p>` previews the selected entry
Toggle shortcuts: Toggle shortcuts:
@@ -30,7 +30,8 @@ require("oil").setup({
["gR"] = "actions.refresh", -- replaces default <C-l> behavior ["gR"] = "actions.refresh", -- replaces default <C-l> behavior
["<F5>"] = "actions.refresh", ["<F5>"] = "actions.refresh",
["<C-s>"] = false, ["<C-s>"] = false,
["<C-p>"] = { "actions.preview", opts = { vertical = true, split = "belowright" } }, ["<C-p>"] = false,
["gp"] = { "actions.preview", opts = { vertical = true, split = "belowright" } },
["<BS>"] = { "actions.parent", mode = "n" }, ["<BS>"] = { "actions.parent", mode = "n" },
}, },
view_options = { view_options = {