This repository was archived by the owner on Oct 17, 2026. It is now read-only.
Repository navigation
feat(panel): select on hover and drag results out - #6
Merged
Merged
Conversation
Pointing at a row did nothing and there was no way to hand a result to another app. Hover now selects, but only after the pointer has actually moved: rows change under a still pointer while typing, and taking the selection then would make Return open whatever landed under it.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The pointer could only click. Moving over a row didn't select it, as it does in every menu and in Spotlight, and there was no way to hand a result to another app.
Approach
CommandPanel.sendEventsees.mouseMovedbefore the rows' hover tracking and setsSearchModel.pointerMoved. Typing, arrow keys, and opening the panel clear it. A row'sonContinuousHovertakes the selection only while it's set, so results that shift under a still pointer never move the selection and Return still opens the top result.NSURLthroughonDrag, so they drop into the Dock, Finder, or a document like a Finder item.Verified live
With real events (
CGEvent), pointer parked over row 4 before opening:Dragged the Safari row into the search field: it inserted
file:///Applications/Safari.app.Look at sceptically
Checklist
scripts/task checkpasses locally