Repository navigation
feat: address-bar style header + mode badge in status (#10) - #32
Merged
Merged
Conversation
Closes #10. The current source path used to live in the bottom status bar — and disappeared whenever a transient state (search, yank, pending count, status message) needed the row. Promote it to a dedicated address-bar style header at the top of the window so it's always visible: - Left: history affordance (◀ back / ▶ forward, dimmed when unavailable) followed by the path or URL. Long values left-truncate with a leading `…` so the tail (the filename) is what stays on screen. - Right: scroll-position chip — `top` / `<n>%` / `bot`, or `all` when the document fits. Matches what less/helix surface. Status bar gets a mode badge as compensation. `NORMAL` / `YANK` / `TOC` / `HELP` / `SEARCH` / `DIR` now appear at the left so users have a textual confirmation of the active mode (especially useful for the NORMAL state, which previously had no overt indicator). Out of scope: filetype / encoding / VCS / LSP-style elements that don't apply to a read-only markdown viewer (per the design notes on #10). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #10.
Design
Researched neighboring TUIs before deciding what to render (neovim+lualine, helix, less, glow, frogmouth). Filtered out elements that don't apply to a read-only markdown viewer (filetype is always md, no encoding/line-ending edits, no VCS / LSP / diagnostics, no buffers/tabs). Kept the browser metaphor that #10 originally called out.
Result
Two rows of chrome, both reverse-video to match each other:
```
◀ ▶ examples/showcase.md 42%
──────────────────────────── body ────────────────────────────
NORMAL [10/250] ?:help /:find o:toc d:dir Tab:link ...
```
Test plan
Out of scope (deferred unless asked)
🤖 Generated with Claude Code