inline-editor
Installation
SKILL.md
Inline Editor Implementation
Overview
The inline editor (tmux_inline_edit) lets users edit files directly within the file browser preview pane using their preferred terminal editor (vim, nvim, nano, etc.) without leaving the TUI. The file tree remains visible during editing.
Core Principle: This is NOT a terminal emulator. Tmux manages the PTY backend; Sidecar acts as an input/output relay, similar to the workspace plugin's interactive mode.
Architecture
Components
- Entry Layer (
internal/plugins/filebrowser/inline_edit.go): Creates tmux sessions, manages editor lifecycle - Rendering Layer (
internal/plugins/filebrowser/view.go,inline_edit.go): Renders editor content within preview pane - Input Layer (
internal/plugins/filebrowser/plugin.go,mouse.go): Routes keys/clicks to editor or confirmation dialog - TTY Model (
internal/tty/tty.go): Handles tmux capture, cursor overlay, and input forwarding