• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 23992443892
90%

Build:
DEFAULT BRANCH: master
Ran 05 Apr 2026 02:23AM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Apr 2026 02:22AM UTC coverage: 92.796% (+0.4%) from 92.438%
23992443892

push

github

web-flow
Add markdown TOC navigation for single-file mode (#16)

* add plan: markdown-toc-navigation

* feat: add mdTOC component with parsing and data structures

Implement tocEntry/mdTOC structs and parseTOC function that extracts
markdown headers from diff lines, excluding headers inside fenced code
blocks. Add isFullContext and isMarkdownFile helper methods on Model.

* feat: add mdTOC cursor movement, scrolling, and active section tracking

* feat: add mdTOC rendering with indentation, cursor highlight, and active section tracking

* feat: integrate mdTOC into Model with detection, resize, and width handling

* feat: render mdTOC pane in View for markdown single-file mode

* feat: add mdTOC focus switching and key handling for markdown navigation

Enable Tab/h/l pane switching between TOC and diff in single-file markdown mode,
route j/k/pgdn/pgup/home/end to TOC cursor movement, Enter jumps to selected
header with viewport centering, and diff scrolling auto-tracks active TOC section.

* feat: add help overlay TOC section and verify edge cases for markdown navigation

* feat: verify acceptance criteria for markdown TOC navigation

* feat: update documentation for markdown TOC navigation feature

* feat: improve markdown TOC navigation with auto-jump, n/p keys, and viewport fixes

Add auto-jump on TOC cursor movement, n/p chapter navigation from diff pane,
filename as synthetic top entry, unified highlight style, top-aligned viewport
on jump, cursor sync on pane switch, and viewport tracking for active section.
Extract syncDiffToTOCCursor/syncTOCCursorToActive/topAlignViewportOnCursor
helpers to reduce duplication. Update help overlay and docs with n/p keys.

* fix: address Copilot review findings for markdown TOC navigation

- Return early on l/right in TOC pane to avoid unnecessary viewport re-jump
- Clear cursorOnAnnotation in syncDiffToTOCCursor and Enter-jump paths
- Restore single-file layout (treeWidth=0) when mdTOC is cleared in handleFileLoaded

273 of 283 new or added lines in 5 files covered. (96.47%)

3040 of 3276 relevant lines covered (92.8%)

503.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
95.95
ui/mdtoc.go
4
98.34
-0.14% ui/model.go
Jobs
ID Job ID Ran Files Coverage
1 23992443892.1 05 Apr 2026 02:23AM UTC 14
92.8
GitHub Action Run
Source Files on build 23992443892
  • Tree
  • List 14
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ba62f1a9 on github
  • Prev Build on master (#23986372962)
  • Next Build on master (#23992630790)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc