@@ -88,7 +88,7 @@ type dictationController struct { |
88 | 88 | waveBars []int |
89 | 89 | waveTick int |
90 | 90 |
|
91 | | - // voiceModeEnabled repurposes Space into hold-to-record (§13.9). |
| 91 | + // voiceModeEnabled repurposes Ctrl+Space into hold-to-record (§13.9). |
92 | 92 | voiceModeEnabled bool |
93 | 93 | // eventTypesSupported records whether the terminal confirmed key-release |
94 | 94 | // reporting (Kitty protocol); eventTypesKnown gates it until the terminal has |
@@ -173,7 +173,7 @@ func firstNonEmptyStr(a, b string) string { |
173 | 173 | func (d dictationController) active() bool { return d.phase != dictIdle } |
174 | 174 |
|
175 | 175 | // toggleDictation starts a recording when idle and stops-and-transcribes when |
176 | | -// recording. Invoked by the voice-mode Space gesture; a call during |
| 176 | +// recording. Invoked by the voice-mode Ctrl+Space gesture; a call during |
177 | 177 | // startup/transcription is ignored (the machine is mid-transition). |
178 | 178 | func (m model) toggleDictation() (model, tea.Cmd) { |
179 | 179 | if !m.dictation.available() { |
@@ -193,15 +193,15 @@ func (m model) toggleDictation() (model, tea.Cmd) { |
193 | 193 | } |
194 | 194 | } |
195 | 195 |
|
196 | | -// toggleVoiceMode flips the /voice hold-to-record gesture — the dictation |
197 | | -// trigger. While on, Space records; run /voice again to type spaces normally. |
| 196 | +// toggleVoiceMode flips the /voice hold-to-record gesture. While on, |
| 197 | +// Ctrl+Space records and ordinary Space continues to type normally. |
198 | 198 | func (m model) toggleVoiceMode() (model, tea.Cmd) { |
199 | 199 | if !m.dictation.available() { |
200 | 200 | return m.appendSystemNotice("Dictation is not configured. See docs/dictation.md to set up a local engine or a Groq/OpenAI key."), nil |
201 | 201 | } |
202 | 202 | m.dictation.voiceModeEnabled = !m.dictation.voiceModeEnabled |
203 | 203 | if m.dictation.voiceModeEnabled { |
204 | | - return m.showTransientNoticeInline("Voice mode on — hold Space to dictate; run /voice again to turn it off.", transientNoticeSuccess), nil |
| 204 | + return m.showTransientNoticeInline("Voice mode on — "+voiceCaptureUsage+". Run /voice again to turn it off.", transientNoticeSuccess), nil |
205 | 205 | } |
206 | 206 | // Turning voice off is the "done dictating" signal, so release the warm sherpa |
207 | 207 | // streaming server — otherwise a loaded model keeps idling in RAM (and holding |
@@ -374,7 +374,7 @@ func (m model) handleDictationStarted(msg dictationStartedMsg) (model, tea.Cmd) |
374 | 374 | if m.dictation.phase == dictStarting { |
375 | 375 | m.dictation.phase = dictRecording |
376 | 376 | } |
377 | | - // A voice-mode Space release that arrived mid-startup asked us to stop as soon |
| 377 | + // A voice-mode Ctrl+Space release that arrived mid-startup asked us to stop as soon |
378 | 378 | // as recording began. |
379 | 379 | if m.dictation.voiceStopPending && m.dictation.phase == dictRecording { |
380 | 380 | m.dictation.voiceStopPending = false |
@@ -480,12 +480,8 @@ func needsLeadingSpace(state composerState) bool { |
480 | 480 | func (m model) dictationStatusChip() string { |
481 | 481 | switch m.dictation.phase { |
482 | 482 | case dictStarting, dictRecording: |
483 | | - stop := "release Space to stop" |
484 | | - if !m.dictation.eventTypesSupported { |
485 | | - stop = "press Space to stop" // press-to-toggle fallback |
486 | | - } |
487 | 483 | wave := zeroTheme.amber.Render("● " + renderWaveBars(m.dictation.waveBars) + " REC") |
488 | | - return wave + zeroTheme.muted.Render(" · "+stop+", Esc to cancel") |
| 484 | + return wave + zeroTheme.muted.Render(" · "+m.voiceCaptureStatus()+", Esc to cancel") |
489 | 485 | case dictTranscribing: |
490 | 486 | return zeroTheme.accent.Render("●") + " " + zeroTheme.muted.Render("transcribing…") |
491 | 487 | } |
@@ -601,13 +597,12 @@ func (m model) handleRecTick() (model, tea.Cmd) { |
601 | 597 | return m, nil |
602 | 598 | } |
603 | 599 |
|
604 | | -// voiceModeIndicator renders the persistent "voice mode on" hint shown while |
605 | | -// idle so the user knows Space is repurposed to hold-to-record (§10). |
| 600 | +// voiceModeIndicator renders the current voice gesture or transcription state. |
606 | 601 | func (m model) voiceModeIndicator() string { |
607 | 602 | if !m.dictation.voiceModeEnabled { |
608 | 603 | return "" |
609 | 604 | } |
610 | | - return zeroTheme.accent.Render("🎙 voice") + zeroTheme.muted.Render(" · "+m.dictation.currentModelLabel()) |
| 605 | + return zeroTheme.accent.Render("🎙 voice") + zeroTheme.muted.Render(" · "+m.voiceCaptureStatus()+" · "+m.dictation.currentModelLabel()) |
611 | 606 | } |
612 | 607 |
|
613 | 608 | // dictationErrorText renders a dictation error for the transcript: a missing- |
|