Highlight keywords, not just your own nick #113

Closed
opened 2026-09-02 23:25:46 -04:00 by Salastil · 1 comment
Owner

A message notifies if it contains your nick (runtime.rs's is_highlight) or is a DM. Every client of every protocol here lets you add words: a project name, a nickname you also answer to, your surname. Without it the choice is your nick or nothing.

Done looks like: a list of keywords in Settings, matched case-insensitively on word boundaries, feeding the same highlight and notification path - and per-account, since the words that matter differ by network.

A message notifies if it contains your nick (`runtime.rs`'s `is_highlight`) or is a DM. Every client of every protocol here lets you add words: a project name, a nickname you also answer to, your surname. Without it the choice is your nick or nothing. **Done looks like:** a list of keywords in Settings, matched case-insensitively on word boundaries, feeding the same highlight and notification path - and per-account, since the words that matter differ by network.
Salastil added the feature label 2026-09-03 13:11:37 -04:00
Author
Owner

Finished — https://git.salastil.com/Salastil/nobilis/commit/9577b11 and https://git.salastil.com/Salastil/moho/commit/e6a9f48

Two lists, both held by the daemon (new highlights.toml): a global one in Settings → General, and a per-account one on each account card, added together at match time. Matched case-insensitively on whole words, feeding the same is_highlight that drives the stored flag, the mentions inbox and notifications.

Verified live: a message carrying a keyword arrived highlighted, and one carrying it inside a longer word did not.

Finished — https://git.salastil.com/Salastil/nobilis/commit/9577b11 and https://git.salastil.com/Salastil/moho/commit/e6a9f48 Two lists, both held by the daemon (new `highlights.toml`): a global one in Settings → General, and a per-account one on each account card, added together at match time. Matched case-insensitively on whole words, feeding the same `is_highlight` that drives the stored flag, the mentions inbox and notifications. Verified live: a message carrying a keyword arrived highlighted, and one carrying it inside a longer word did not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#113