feat: customisable voice phrase pools#27
Merged
Conversation
Voice notifications can now be curated per user. Open Settings →
"Edit phrases…" to:
- Toggle individual shipped defaults on/off (Space when selected,
or click the checkmark)
- Add custom phrases with a live preview using "stack-nudge" as the
sample repo name
- Remove custom phrases (⌫ when selected, or click ✕)
State persists to ~/.stack-nudge/phrases.user.json with shape:
{ "en": { "response": { "custom": [...], "disabled": [...] },
"notification": { "custom": [...], "disabled": [...] } } }
notify.sh reads this file at fire time, filters disabled defaults out
of the shipped pool, and appends custom phrases — final list per pool
is `defaults\disabled ∪ custom`. Quiet fall-back to the unmodified
defaults if jq is missing or the JSON is malformed.
UI bits:
- New PanelMode.phrases sub-view, accessed via a "Edit phrases…" row
in Settings (rowCount=13). Esc returns to Settings.
- ↑/↓ navigates every row (defaults + custom) with auto-scroll into
view via ScrollViewReader, matching Settings' behaviour.
- TextField input clears row selection on first keystroke so ⌫ can
edit text without removing rows.
- New Space and S keycodes; existing Space activation in Settings
still works (handled separately).
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Voice notifications can now be curated per user. Open Settings → Edit phrases… to mute individual shipped defaults, add your own, and see a live preview using
stack-nudgeas the sample repo name.How it works
response(stop events) andnotification(permission events)phrases/<lang>.shas today — they're the canon~/.stack-nudge/phrases.user.json:json { "en": { "response": { "custom": ["%s shipped at last"], "disabled": ["task complete in %s"] }, "notification": { "custom": [], "disabled": [] } } }notify.shreads this file at fire time, filters disabled defaults out, and appends customs — final pool per event isdefaults \\ disabled ∪ custom. Falls back to raw defaults ifjqis missing.UI
New
PanelMode.phrasessub-view replaces the tab strip when open. Reached via a new "Edit phrases…" action row in Settings.↑ ↓Space⌫⏎EscMouse equivalents: click the checkmark to toggle a default, click ✕ to remove a custom, click anywhere else on a row to select.
Test plan
🤖 Generated with Claude Code