Add quick paste shortcuts for clippings 1-5 (Ctrl+Opt+1 through Ctrl+Opt+5)#116
Open
Andrew-Barton wants to merge 3 commits intosnark:masterfrom
Open
Add quick paste shortcuts for clippings 1-5 (Ctrl+Opt+1 through Ctrl+Opt+5)#116Andrew-Barton wants to merge 3 commits intosnark:masterfrom
Andrew-Barton wants to merge 3 commits intosnark:masterfrom
Conversation
- Restored pasteAtPosition() function in Interactions.swift - Restored quickPasteEnabled setting in Settings.swift - Restored quick paste checkbox UI in HotkeyPreferenceViewController.swift - Restored deprecation fixes in StatusItem.swift These files were lost during the rebase but are required for the quick paste feature to work.
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.
Description
This PR implements quick paste shortcuts that allow users to directly paste clippings from positions 1-5 in the stack using modifier key combinations with number keys (1-5).
Fixes #91
Changes
quickPasteHotkeysarray inAppDelegateto store hotkey instances for positions 1-5setQuickPasteHotkeys()method that registers hotkeys using the main hotkey's modifiers (Ctrl+Opt by default) combined with number keys 1-5pasteAtPosition()method inInteractionsthat directly pastes from a specific stack position without hiding the appHotkeyPreferenceViewControllerto enable/disable the featureHow It Works
When enabled, users can:
The shortcuts use the same modifier keys as the main Jumpcut hotkey (default: Ctrl+Opt), ensuring consistency with existing keyboard shortcuts.
User Experience
Testing
Notes
This implementation addresses the workflow described in issue #91, where users frequently need to paste multiple clippings in sequence (e.g., AI-generated headings followed by terminal errors). The shortcuts provide direct access to the first 5 clippings without needing to open the bezel or menu.