From 05154e59ef654ef34c306759724ff0c510bbf1f8 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 12 Jan 2026 14:52:59 +0000 Subject: [PATCH] Add default keymaps for netrw navigation Includes keybindings for navigation, file operations, and batch operations to enhance user experience with netrw. --- README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/README.md b/README.md index 82dd858..58239a2 100644 --- a/README.md +++ b/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 | `te` | Open netrw in a new tab rooted at current file directory | | n | `tE` | Open netrw in a new tab rooted at project cwd | +#### Default Netrw Keymaps + +##### Navigation & View + +| Key | Description | +| --- | --- | +| `` | 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`