Skip to content

Improve macOS dictation and IME marked-text overlays#561

Open
SilverMarcs wants to merge 3 commits into
migueldeicaza:mainfrom
SilverMarcs:contrib-ime-improvements
Open

Improve macOS dictation and IME marked-text overlays#561
SilverMarcs wants to merge 3 commits into
migueldeicaza:mainfrom
SilverMarcs:contrib-ime-improvements

Conversation

@SilverMarcs

Copy link
Copy Markdown
Contributor

Implements wrapped and exclusion-path bounded NSTextView rendering for dictation overlays (DictationOverlayTextView). This wraps long marked text input and paints background fills precisely under active text fragments per line-fragment to avoid clipping or overlapping prompt elements.

SilverMarcs and others added 3 commits May 30, 2026 12:14
Account for NSTextField internal cell margins when measuring text
bounds so the overlay height correctly reflects word-wrapping.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@migueldeicaza

Copy link
Copy Markdown
Owner

This looks fabulous, how can I test this and take it for a spin?

@SilverMarcs

Copy link
Copy Markdown
Contributor Author

This looks fabulous, how can I test this and take it for a spin?

You can just trigger the system wide dictation (f5 key) on Mac keyboards) and on a less wide window, the preview should overflow a lot better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants