Add global, customizable keyboard shortcuts to open/close Notebar - #3
Open
roTokyo wants to merge 2 commits into
Open
Add global, customizable keyboard shortcuts to open/close Notebar#3roTokyo wants to merge 2 commits into
roTokyo wants to merge 2 commits into
Conversation
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.
Hi Jay, thanks for building Notebar — it's exactly the kind of small, focused tool I wanted for quick notes!
I wanted the app to be fully keyboard-driven (open/close without reaching for the trackpad), and with the help of an AI assistant (Claude, by Anthropic) I was able to implement the changes myself, even though I don't have a programming background. This PR adds:
A global keyboard shortcut (default ⌃⌥⌘N) to toggle Notebar open/closed from anywhere, using the Carbon hotkey API (no special permissions needed)
The shortcut is customizable from Notebar's own menu ("Set Shortcut...")
Esc closes Notebar instantly while it's open
Opening Notebar now correctly focuses the text field, instead of another control
Closing Notebar hands keyboard focus back to whichever app was active before
Feel free to take, adapt, or ignore any part of this — I mostly wanted to share it in case it's useful to you or other Notebar users too.
One note: you may see some unrelated changes in project.pbxproj related to code signing (Team / Bundle Identifier) — those are just my local development settings and aren't meant to be merged.