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

umputun / revdiff / 41986478588
92%

Build:
DEFAULT BRANCH: master
Ran 05 Nov 2026 07:21AM UTC
Jobs 1
Files 81
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 Nov 2026 07:19AM UTC coverage: 91.068% (+0.02%) from 91.045%
41986478588

push

github

web-flow
feat(ui): add toggle_mouse action to suspend mouse tracking at runtime (#435)

* feat(ui): add toggle_mouse action to suspend mouse tracking at runtime

mouse tracking captures plain drag, so terminal-native text selection is
unavailable while it is on; --no-mouse is startup-only and gives up wheel
and click handling entirely. toggle_mouse (default m) flips tracking at
runtime: suspending hands the mouse back to the terminal for drag
selection, a second press restores wheel and click.

the tracking state moves to a mutable model field so the editor and
output-flush suspend paths restore the current mode rather than the
startup flag. works in both directions, including enabling from a
--no-mouse start.

* refactor(ui): make toggle_mouse opt-in with status indicator and current-state restore

- no default binding: plain terminals select through their own modifiers;
  users map the action explicitly (test asserts it stays unbound)
- status-bar indicator shown only when the action is bound, lit while
  tracking is suspended
- completion handlers (editor, source editor, post-flush) read the current
  tracking state instead of a restoreMouse flag carried through completion
  messages, so the new tests drive the real toggle from both startup states
  instead of hand-built messages; cfg.mouseTracking is gone
- README documents the action with a map example

* refactor(ui): keep restoreMouse plumbing, snapshot toggle state via msg constructors

the original completion plumbing and tests stay verbatim: restoreMouse
remains on editorFinishedMsg / sourceEditorFinishedMsg / postFlushFinishedMsg
and the handlers keep reading it. the exec closures now build their messages
through small constructors that snapshot the current tracking state, so the
toggle-flow tests pin the wiring without hand-built messages and without
touching existing behavior.

* Revert "refactor(ui): keep restoreMouse plumbing, snapshot toggle state via msg constructors"

This reverts commit 22c4... (continued)

24 of 34 new or added lines in 5 files covered. (70.59%)

4 existing lines in 1 file now uncovered.

12224 of 13423 relevant lines covered (91.07%)

3469.52 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
85.65
0.46% app/ui/editor.go
3
90.16
1.64% app/ui/output.go

Coverage Regressions

Lines Coverage ∆ File
4
85.65
0.46% app/ui/editor.go
Jobs
ID Job ID Ran Files Coverage
1 41986478588.1 05 Nov 2026 07:21AM UTC 81
91.07
GitHub Action Run
Source Files on build 41986478588
  • Tree
  • List 81
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a1ad12ab on github
  • Prev Build on master (#41785159043)
  • Next Build on master (#41987212408)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc