Repository navigation
feat(raycast): an extension so Raycast can own the hotkeys - #24
Merged
Merged
Conversation
Ten no-view commands, each opening the heed:// URL the last release added: the two ring steps, the four directions, a window by number, and the three switch verbs. Nothing is installed alongside it and no binary is called, so there is no path to get wrong and nothing to keep in step but the vocabulary. It lives in the repo rather than beside it because the vocabulary is Heed's: a command added to one is a command added to the other, and a store PR copies the directory out when it is ready. The release workflow now ignores raycast/, since the extension ships through the Raycast store and changing it leaves the app binary untouched.
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.
Ten Raycast commands, each opening one of the
heed://URLs v0.9.0 added: the two ring steps, thefour directions, a window by number, and toggle, on and off.
raycast/src/heed.tsis the wholemechanism; the rest is one thin file per command, because Raycast maps a command name to
src/<name>.tsand ten separately searchable and separately bindable commands need ten of them.The point is to give the hotkeys back. Heed registers its shortcuts exclusively, so every
combination it claims is gone from every other app. With this, Raycast owns the combination and
Heed claims nothing: bind a Raycast hotkey, then
defaults write io.github.rbstp.heed focusNextHotkey ''. Nothing is installed alongside the extension and no binary is called, so theonly thing the two ends share is the vocabulary, which is why the extension lives in this repo
rather than beside it. A store PR copies the directory out when it is ready.
raycast/**joins.github/**and the README in the release workflow'spaths-ignore, since theextension ships through the Raycast store and changing it leaves the app binary untouched. The
Development section of the README says so now.
Verified by driving the real palette:
Turn on Focus Follows Mouse,Turn off,Toggle,Focus Next WindowandFocus Window Aboveeach reached Heed and did the right thing, with thepointer warping after.
ray lintandray buildare clean.Focus Window by Numberis the onecommand I could not drive from a script, since its dropdown needs real interaction; its only input
is a fixed 1 to 9 that
heed://focus/3already handles.Two things a reviewer should know rather than discover. The channel is one way, so a command reports
what it asked for and not what came of it, and the HUD is worded that way. And a command sent to a
Heed that is not running launches it, but that first command can do nothing while Heed works out
which window had focus; giving it a source in that case is a change to the agent, not to the
extension, so it is left for its own PR.