diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-07 06:43:17 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-07 06:43:17 -0500 |
| commit | e2208276021def42dadd5e422aa96e9004040dd9 (patch) | |
| tree | 1352c74e299276dce750a3e6beddf87118899b3f /tests/test-pearl-sync.el | |
| parent | c740e270721581120cc6e9317ab70dba40156820 (diff) | |
| download | pearl-e2208276021def42dadd5e422aa96e9004040dd9.tar.gz pearl-e2208276021def42dadd5e422aa96e9004040dd9.zip | |
feat(render): highlight unsaved comments and update the cues live
Completes the modified-ticket indicator (docs/modified-ticket-indicator-spec.org) on top of the field highlight and count.
A changed comment now gets its own highlight by ownership: your own comment (pushable) takes pearl-modified-highlight and bubbles up to the ticket heading; a non-own comment, which save skips, takes the muted pearl-modified-local; a comment seen before the viewer resolves takes the neutral pearl-modified-unknown until classification lands. The viewer is resolved only when a comment is actually dirty, so opening or editing a clean or field-only buffer makes no network call.
The cues update live: a buffer-local after-change hook debounces a redecorate on an idle timer (pearl-modified-idle-delay), so an edit shows within a fraction of a second instead of waiting for a save or refresh. The timer is cancelled when pearl-mode turns off or the buffer is killed. One pearl--redecorate-modified now drives the field highlights, the comment classification, and the count from a single scan, called on mode enable, fetch/refresh, and the idle tick.
Diffstat (limited to 'tests/test-pearl-sync.el')
0 files changed, 0 insertions, 0 deletions
