improve navigation

This commit is contained in:
2026-06-25 15:55:17 +02:00
parent 7c9890b281
commit 436cd3ebae
2 changed files with 10 additions and 0 deletions

View File

@@ -43,7 +43,12 @@ Oil usage:
- `<leader>dl` opens the parent directory of the current file
- `<CR>` opens a file or enters a directory
- `-` goes to the parent directory
- `<BS>` also goes to the parent directory
- `<A-h>` also goes to the parent directory
- `<A-l>` opens the selected file or enters the selected directory
- `<C-p>` previews the selected entry in a right-hand vertical split
- edit the Oil buffer, then `:w` to apply file operations
- hidden files are shown, but `.git` stays hidden
Open `netrw` explicitly with:

View File

@@ -11,6 +11,11 @@ require("oil").setup({
["<C-j>"] = false,
["<C-k>"] = false,
["<C-l>"] = false,
["<C-s>"] = false,
["<C-p>"] = { "actions.preview", opts = { vertical = true, split = "belowright" } },
["<BS>"] = { "actions.parent", mode = "n" },
["<A-h>"] = { "actions.parent", mode = "n" },
["<A-l>"] = "actions.select",
},
view_options = {
show_hidden = true,