Add default keymaps for netrw navigation
Includes keybindings for navigation, file operations, and batch operations to enhance user experience with netrw.
This commit is contained in:
parent
bc9758dbe1
commit
05154e59ef
46
README.md
46
README.md
|
|
@ -52,11 +52,57 @@ Core keymaps available globally (not plugin-specific). These provide fallbacks f
|
|||
|
||||
### `lua/netrw-config.lua`
|
||||
|
||||
#### Custom Keymaps
|
||||
|
||||
| Mode | Key | Description |
|
||||
| --- | --- | --- |
|
||||
| n | `<leader>te` | Open netrw in a new tab rooted at current file directory |
|
||||
| n | `<leader>tE` | Open netrw in a new tab rooted at project cwd |
|
||||
|
||||
#### Default Netrw Keymaps
|
||||
|
||||
##### Navigation & View
|
||||
|
||||
| Key | Description |
|
||||
| --- | --- |
|
||||
| `<CR>` | Open file/directory under cursor |
|
||||
| `-` | Go up to parent directory |
|
||||
| `gh` | Toggle hidden files visibility (dotfiles) |
|
||||
| `i` | Cycle through view types (thin/long/wide/tree) |
|
||||
| `s` | Cycle sort order (name/time/size/extension) |
|
||||
| `r` | Reverse current sort order |
|
||||
| `I` | Toggle netrw banner (help text) |
|
||||
|
||||
##### Preview & Splits
|
||||
|
||||
| Key | Description |
|
||||
| --- | --- |
|
||||
| `p` | Preview file in horizontal split (50% window size) |
|
||||
| `P` | Open file in previous window |
|
||||
| `o` | Open file in horizontal split below |
|
||||
| `v` | Open file in vertical split |
|
||||
|
||||
##### File Operations
|
||||
|
||||
| Key | Description |
|
||||
| --- | --- |
|
||||
| `%` | Create new file (prompts for name) |
|
||||
| `d` | Create new directory (prompts for name) |
|
||||
| `D` | Delete file/directory under cursor |
|
||||
| `R` | Rename/move file under cursor |
|
||||
|
||||
##### Marking & Batch Operations
|
||||
|
||||
| Key | Description |
|
||||
| --- | --- |
|
||||
| `mf` | Mark file (for batch operations) |
|
||||
| `mr` | Mark files using regex pattern |
|
||||
| `mu` | Unmark all marked files |
|
||||
| `mt` | Set mark target directory (for move/copy destination) |
|
||||
| `mc` | Copy marked files to target directory |
|
||||
| `mm` | Move marked files to target directory |
|
||||
| `qf` | Display file info |
|
||||
|
||||
## Plugin Reference
|
||||
|
||||
### LSP `lua/plugins/lsp.lua`
|
||||
|
|
|
|||
Loading…
Reference in New Issue