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

@ -610,7 +610,7 @@ Installed layout:
Target workflow:
```text
p on file/directory open preview and begin live updates
p on file/directory toggle preview and live updates
j / k replace preview with the selected entry
<CR>, o, v, t open the file and close the preview
:pclose / <C-w>z close the preview and stop live updates
@ -672,6 +672,7 @@ file 3.2K 2026-10-27 12:55 telescope.lua
- [x] Suppress remaining Vim syntax and indent-guide decoration in file previews, restoring prior state on edit
- [x] Add count-aware `<M-j>` / `<M-k>` preview scrolling without moving focus from netrw
- [x] Make preview scrolling silently clamp at file/window boundaries
- [x] Make `p` toggle an existing preview closed as well as opening it
- [ ] Test the workflow in an actual SSH session
- [ ] Confirm stock netrw remains understandable when this configuration is unavailable