Repository navigation
Conversation
Insertion refused, and only copied to the clipboard, whenever the field text, cursor or focused element changed during transcription, or when an app did not expose cursor details. Web and Electron editors rebuild elements, so pastes failed intermittently. Now the transcript is pasted at the cursor of the app that was in front, provided it is still in front, focused on an editable, non-password control. Activation and paste confirmation poll instead of fixed sleeps, held shortcut modifiers are released first, and contenteditable and custom text views count as editable.
Remove hesitations (um, uh, erm, hmm), stutters and stray spacing; turn a standalone "new line" or "new paragraph" into line breaks; and at paste time match leading/trailing spaces, mid-sentence lowercase and a premature full stop to the surrounding text. Wording is not rewritten. On by default with a General setting to turn it off.
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.
Problem
Dictations sometimes did not paste. Insertion refused, and only copied the text to the clipboard, when any of these happened during transcription:
The README also told users to "keep the selected field and cursor unchanged", which is easy to break without noticing. Raw Whisper output also kept hesitations ("um", "uh"), stutters and stray spacing, and ignored the text around the cursor.
Change
Paste at the current cursor (
TextInsertion.swift,ClearFlowCore/Insertion.swift)AXEditableAncestor) and custom text views (settable value plus a selection range) count as editable. Sliders and buttons do not.Rule-based cleanup (
ClearFlowCore/TranscriptCleanup.swift, on by default, Settings → General)Validation
scripts/test-native.sh,scripts/test-shortcut-registration.sh,scripts/build-app.shandscripts/check-distribution.pyall pass locally.Risks