diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-21 20:48:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-21 20:48:03 -0500 |
| commit | 68c899a69c2f36250caffd179efa780a159fc475 (patch) | |
| tree | cecb4ccb4083cd0d1454c3b601127a236e7072f5 /tests | |
| parent | b2e903826e9baf1b0a1a8c400c90625022a00dd8 (diff) | |
| download | chime-68c899a69c2f36250caffd179efa780a159fc475.tar.gz chime-68c899a69c2f36250caffd179efa780a159fc475.zip | |
refactor: extract chime--render-modeline-string from chime--update-modeline
chime--update-modeline grew to mix orchestration with the modeline-string formation logic. Extract the formation block into its own helper so the orchestrator reads as pure orchestration: build upcoming, find soonest, render, force update.
The helper handles both branches. When a soonest event is in the modeline window, format and propertize via chime--propertize-modeline-string. Otherwise, when chime-modeline-no-events-text is set, propertize that with the appropriate tooltip and click handlers (mouse-1 always, mouse-3 only when there are upcoming events to jump to).
The orchestrator drops from 45 to 25 lines.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
