improve navigation
This commit is contained in:
@@ -43,7 +43,12 @@ Oil usage:
|
|||||||
- `<leader>dl` opens the parent directory of the current file
|
- `<leader>dl` opens the parent directory of the current file
|
||||||
- `<CR>` opens a file or enters a directory
|
- `<CR>` opens a file or enters a directory
|
||||||
- `-` goes to the parent 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
|
- edit the Oil buffer, then `:w` to apply file operations
|
||||||
|
- hidden files are shown, but `.git` stays hidden
|
||||||
|
|
||||||
Open `netrw` explicitly with:
|
Open `netrw` explicitly with:
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ require("oil").setup({
|
|||||||
["<C-j>"] = false,
|
["<C-j>"] = false,
|
||||||
["<C-k>"] = false,
|
["<C-k>"] = false,
|
||||||
["<C-l>"] = 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 = {
|
view_options = {
|
||||||
show_hidden = true,
|
show_hidden = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user