Add re-paste last transcription hotkey#135
Draft
topmonroe9 wants to merge 2 commits intosavbell:mainfrom
Draft
Conversation
When transcribed text doesn't paste correctly (wrong window focused, clipboard failure, etc.), users currently must re-record. This adds a configurable hotkey to re-insert the last transcription on demand. - Add `repaste_key` config option (default: ctrl+shift+v) - Refactor KeyListener from single chord to named chords dict - Store last transcription result for re-use - Release held modifier keys before typing to prevent interference - Settings UI auto-generates from schema, no UI changes needed Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add time.sleep(0.05) after releasing modifiers in on_repaste to ensure OS processes synthetic key-up events before typing begins - Clear stale chords in load_key_chords() so disabled repaste_key is properly removed on config reload Co-Authored-By: Claude Opus 4.6 <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
When transcribed text doesn't paste correctly — the user may have switched windows, the target app may not have been focused, or clipboard paste may have failed — there's currently no way to re-insert the last transcription without recording again.
This adds a configurable
repaste_keyhotkey (default:ctrl+shift+v) that re-inserts the last transcribed text on demand.repaste_keyinrecording_options— auto-appears in settings UIKeyListenerfrom single chord to named chords dict, enabling multiple independent hotkeysrepaste_keyempty in settings to disableFiles changed
src/config_schema.yamlrepaste_keyoptionsrc/key_listener.pysrc/input_simulation.pyrelease_held_modifiers()src/main.pyon_repaste(), update callback APITest plan
ctrl+shift+vafter transcription — last text re-insertedrepaste_keyfield🤖 Generated with Claude Code