toggle netrw previews with p

This commit is contained in:
Ray Elliott 2026-10-28 19:02:43 +00:00
commit f35ad357bd
4 changed files with 16 additions and 7 deletions

View file

@ -99,7 +99,7 @@ Core keymaps available globally (not plugin-specific). These provide fallbacks f
| Key | Description |
| --- | --- |
| `p` | Preview the selected file or directory below and enable live cursor updates |
| `p` | Toggle the selected file/directory preview and live cursor updates |
| `j` / `k` | Update an existing preview to the newly selected entry |
| `<M-j>` / `<M-k>` | Scroll the preview down/up without leaving netrw; accepts a count |
| `:pclose` / `<C-w>z` | Close the preview and stop live updates |
@ -120,10 +120,10 @@ Preview-only file buffers remain loaded but unlisted until Neovim exits, avoidin
the parser detachment that triggers this Neovim 0.12 race.
Opening a file with `<CR>`, `o`, `v`, or `t`, or otherwise leaving netrw, closes
the preview. Closing it manually also disables live updates until `p` is pressed
again. Enhanced directory summaries apply to local paths (including local paths
when Neovim runs over SSH); netrw URI browsing retains its native preview
behavior.
the preview. Closing it manually or pressing `p` again disables live updates
until `p` is pressed again. Enhanced directory summaries apply to local paths
(including local paths when Neovim runs over SSH); netrw URI browsing retains
its native preview behavior.
##### File Operations