quicksilver / quicksilver/Quicksilver
Allow plug-ins to define children based on URL
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 2.9k
- Forks
- 291
- PR merge metrics
- No merged PRs in 30d
Description
This might already be possible, but if it is, I can’t think of an example.
Currently, plug-ins have the ability to define children for something based on bundle ID. For example, the Safari module adds this under QSRegistration:
<key>QSBundleChildHandlers</key>
<dict>
<key>com.apple.Safari</key>
<string>QSSafariObjectHandler</string>
</dict>
The current behavior when right-arrowing into a URL leaves something to be desired. I would like to see something like this be possible in the plist:
<key>QSURLChildHandlers</key>
<dict>
<key>http://qsapp.com/</key>
<string>QSqsappcomObjectHandler</string>
</dict>
This would allow plug-ins to be written that understand a site’s structure or use its API directly, etc.
URLs that have no handler registered would fall back to the current behavior (which needs work, but that’s another topic). Perhaps ⌥→ should allow the user to bypass the special handler and use the default as well.
I haven’t completely thought this out. For example, what if a handler would work well for a large number of URLs. Like a parser that understood Apache directory listings and could remove all the “sort by” links from the results list and just show the file and folder links.
Also, I think this can be “faked” currently by adding some bogus object to the catalog and assigning it children.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the QSRegistration handling of QSBundleChildHandlers and the Safari module's QSSafariObjectHandler registration. Trace how right-arrowing into URLs currently selects children, then resolve URL matching, fallback behavior, and optional bypass semantics. Done requires an agreed design before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100