Hero Edit Mode

🏔️ Hero Edit Mode

Objective

Hero today is read-only syntax-highlighted preview. To be a TUI workspace
rather than a TUI viewer, Hero must let the user edit the selected file. This
Milestone adds an edit mode, an edit buffer, save, dirty-state tracking, and
unsaved-changes protection. It deliberately does not introduce noosphere
features (wikilink jumps, daily-note awareness); those land in Phase 2.

Success Criteria

  • A clear way to enter/exit edit mode (key + visible indicator)
  • Edit mode supports inserting, deleting, navigating within the buffer
  • Ctrl-S writes the buffer back to the file
  • Dirty state (buffer differs from disk) is tracked and visible — recommend * prefix in pane title or accent colour on chrome
  • Switching files in LHSB while Hero is dirty produces a prompt (save / discard / cancel) — file-switch does not silently discard
  • Quit while Hero is dirty produces the same prompt
  • Edit-mode keymap shape (modal vs modeless) is explicitly decided and documented in M2-I01 before i
No due date
0% Completed
#4 opened 2026-05-18 08:27:18 -04:00 by n8k99 0 / 16