Skip to content

feat(tui): add cosmetic vim mode tag to source viewer - #240

Merged
github-actions[bot] merged 1 commit into
mainfrom
forge/source-viewer-mode-tag
Aug 4, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
forge/source-viewer-mode-tag

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Adds a NORMAL/INSERT status tag to the source viewer header, toggled by i/Esc
  • Purely cosmetic: no key's behavior changes between modes, and SourceViewer stays fully read-only — this is PR .github/workflows: Migrate workflows to Blacksmith runners #1 of a 3-PR round-2 layout sequence (design notes in the grilling session), the smallest/lowest-risk piece
  • Esc exits INSERT on the first press (falls through to the existing GoBack navigation only on a second press, since Esc already means "go back" in the file workspace)

Test plan

  • cargo test -p forge-tui — 724 passed, including 5 new tests covering default mode, i/Esc transitions, mode reset on reopen, and the header render
  • cargo clippy -p forge-tui --all-targets — clean
  • cargo fmt --all -- --check — clean

NORMAL/INSERT status tag toggled by i/Esc in the file editor header.
Purely cosmetic — no key changes behavior and the viewer stays fully
read-only in both modes. Esc exits INSERT before falling through to
the existing GoBack navigation on a second press.
@github-actions
github-actions Bot enabled auto-merge (squash) August 4, 2026 13:12
@github-actions
github-actions Bot merged commit 52b1ce2 into main Aug 4, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
NORMAL/INSERT status tag toggled by i/Esc in the file editor header.
Purely cosmetic — no key changes behavior and the viewer stays fully
read-only in both modes. Esc exits INSERT before falling through to
the existing GoBack navigation on a second press.
mohitranka added a commit that referenced this pull request Sep 11, 2026
NORMAL/INSERT status tag toggled by i/Esc in the file editor header.
Purely cosmetic — no key changes behavior and the viewer stays fully
read-only in both modes. Esc exits INSERT before falling through to
the existing GoBack navigation on a second press.
mohitranka added a commit that referenced this pull request Sep 11, 2026
NORMAL/INSERT status tag toggled by i/Esc in the file editor header.
Purely cosmetic — no key changes behavior and the viewer stays fully
read-only in both modes. Esc exits INSERT before falling through to
the existing GoBack navigation on a second press.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant