Editor Preview - Quick Reference
Documents keyboard shortcuts, workflow tips, and troubleshooting for a real-time editor preview pane in a terminal-based IDE.
What this file does
Documents keyboard shortcuts, workflow tips, and troubleshooting for a real-time editor preview pane in a terminal-based IDE.
When to use it
- Learning the navigation and refresh keys for the preview window
- Setting up a multi-user collaboration environment with cursor tracking
- Debugging why the preview is not updating after saving in Neovim
- Switching between chat, projects, tasks, and preview windows
Assumes this stack
Editor Preview - Quick Reference
Opening the Editor Preview
- In chat, type:
/edit <filename> - Neovim opens automatically in Windows Terminal
- Press
Alt+5to switch to the Editor Preview window
Navigation Controls
Line-by-Line Scrolling
jorā- Scroll down one linekorā- Scroll up one line
Page Scrolling
Ctrl+D- Scroll down half page (Vim-style)Ctrl+U- Scroll up half page (Vim-style)PgDn- Scroll down full pagePgUp- Scroll up full page
Jump Navigation
Homeorg- Jump to top of fileEndorShift+G- Jump to bottom of file
Quick Actions
Alt+N- Open file in Neovim (if not already open)RorF5- Force refresh/reload from disk?- Show help message
Status Bar Information
š PREVIEW MODE | š main.go | 450 lines | Line 123/450 (27%) | Alt+N: Open Neovim
- Preview Mode: Indicates read-only preview (editing happens in Neovim)
- Filename: Current file being previewed
- Line Count: Total lines in file
- Position: Current line / Total lines (Scroll percentage)
- Quick Hint: Reminder to use Alt+N for editing
Workflow Tips
Real-Time Editing
- Open file with
/edit filename.go - Switch to Neovim window (opens automatically)
- Make edits in Neovim
- Save with
:w(or:wq) - Switch to TUI with
Alt+6 - See changes appear within 500ms automatically
Reviewing Long Files
- Use
j/kfor careful line-by-line review - Use
Ctrl+D/Ctrl+Ufor quick scanning - Use
PgDn/PgUpfor section-by-section navigation - Use
Home/Endto check file boundaries - Watch scroll percentage to track progress
Multi-User Collaboration
- See colored cursors for other users
- User list shown at top:
š„ Editing: alice, bob - Each user gets unique cursor color
- Cursors update in real-time
Performance Notes
- File changes detected efficiently (checks modification time, not full content)
- Updates only when file actually changes
- Typical latency: <500ms from Neovim save to preview update
- Works well with files up to several thousand lines
Troubleshooting
Preview Not Updating?
- Press
RorF5to force refresh - Check if file is actually saved in Neovim (
:w) - Verify file path is correct
Can't See Full File?
- Use scroll keys (
j/k,PgDn/PgUp) - Check scroll position in status bar
- Press
EndorShift+Gto jump to bottom
Neovim Won't Open?
- Check if Neovim is installed
- Verify
nvimis in PATH - Try opening manually:
nvim <filename>
Window Switching
Alt+1- ChatAlt+2- ProjectsAlt+3- TasksAlt+4- Logs (where editor command outputs go)Alt+5- ReviewAlt+6- Editor Preview (this window)Alt+7- Notes
Related Commands
/edit <file>- Open file in Neovim + show preview/review start <branch>- Start code review/snippet save <name>- Save current code snippet
Design Philosophy
The Editor Preview is not for editing - it's a real-time window into what's happening in Neovim. Think of it as:
- šŗ A live video feed of your file
- š A preview pane while editing elsewhere
- š„ A collaboration monitor showing others' cursors
- š A reference window while coding
For editing: Use Neovim (Alt+N to open) For viewing: Use Editor Preview (Alt+6)
Pro Tip: Keep Neovim and TUI side-by-side on different monitors or in split terminals for the ultimate coding experience!
What's inside
6 sections: opening instructions, navigation controls, status bar info, workflow tips, troubleshooting, and window switching table.
Change this for your project
- Replace
Alt+1throughAlt+7window switch shortcuts if your terminal uses different keybindings - Replace
/edit,/review start,/snippet savecommand names if your tool uses different slash commands - Replace
Alt+Nfor opening Neovim if your editor launcher uses a different key
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Worth borrowing
- Status bar showing preview mode, filename, line count, and scroll percentage gives users immediate context without extra clicks
- Separating editing (Neovim) from viewing (preview pane) reduces accidental modifications during review
Related Documents
Incident Response Runbooks - Deal Scout
Defines step-by-step procedures for 9 incident types plus a rollback and escalation policy for a Docker-based deal-scraping service.
Document Preview & Download Feature - Complete Guide
Adds document preview and download endpoints that retrieve files from MinIO and serve them through the application with caching and security.
On-Call Policy
Defines a weekly on-call rotation, escalation matrix, paging procedures, and shift handoff process for engineering teams.
SRO-001 On-Call & Incident Response
Defines a complete on-call schedule, incident severity levels, response procedures, and post-incident analysis workflow for SRE teams.