quicksilver / Quicksilver

Quicksilver Project Source
http://qsapp.com
Apache License 2.0
2.73k stars 285 forks source link

Web searches should populate results view in realtime #1145

Open pjrobertson opened 12 years ago

pjrobertson commented 12 years ago

It would be nice if the Web Search Plugin populated results in the search view in realtime, like Google does.

I guess this could only really work for "Search" > "Search For…" > "text" as opposed to the other way round. So as you type, the plugin would fetch results from the search provider and show the hits in the results view.

The disabled action in the Web Search plugin called 'Show results for search…' kind of already does this. Not sure how we'd clean up the results to not show the pointless links (like the links to 'account' or 'homepage' etc. In practice, it may not actually work

skurfer commented 12 years ago

Would you want it to show the results, or the suggestions?

As for “Show Results for Search…”, why do you say disabled? I use it from time to time. We should really make the URL extractor preserve order though. :-)

pjrobertson commented 12 years ago

Here's why. It appears to be disabled by default.

Since most websites don't offer a suggestions site (or do, but it's probably private and difficult to implement on a per-site basis) I'd think we'd just do something like this.

As you type Google > Search For… > hello the plugin would search the following:

Of course, we'd probably add some kind of time so it'd only search if you haven't typed for say 0.5 seconds.

pjrobertson commented 12 years ago

Not sure if we can get even cleverer, but could somehow only show the actual results when using “Show Results for Search…” and this hypothetical feature. Short of hard-coding every known site with which HTML elements we need to look at (and scrape) I can't think of an easy solution.

Btw Rob, RE my previous comment, do you want to enable the action? Seems to work fine here

skurfer commented 12 years ago

I imagine most of the search engines have an API that would let us reliably get bare results, but how would we incorporate that? How would a user define a custom search?

And yes, we should enable the action by default. Do you have a branch you want to stick it in? If not, I can do it when I revert those resource manager commits.

pjrobertson commented 12 years ago

And yes, we should enable the action by default. Do you have a branch you want to stick it in? If not, I can so it when I revert those resource manager commits

It's in the web search plugin… and I've just merged your pull :/ I'll change it to true then push straight to master. One tinker in a .plist can't be too bad can it…. ;)

On 5 October 2012 15:23, Rob McBroom notifications@github.com wrote:

I imagine most of the search engines have an API that would let us reliably get bare results, but how would we incorporate that? How would a user define a custom search?

And yes, we should enable the action by default. Do you have a branch you want to stick it in? If not, I can so it when I revert those resource manager commits.

— Reply to this email directly or view it on GitHubhttps://github.com/quicksilver/Quicksilver/issues/1145#issuecomment-9177127.

skurfer commented 12 years ago

It's in the web search plugin…

Oh, yeah. Duh! :-)

sinewave commented 11 years ago

This sounds like an awesome feature that I have sorely missed when I moved over to the Mac. I actually created a simple js plugin for a program called FARR which did a similar thing: http://www.donationcoder.com/forum/index.php?PHPSESSID=mf2629bb37fivi90j55q9gscp7&topic=14157.msg121728#msg121728

It basically used google Apis to return search results in real time. You could perform web, map, image, book, and video searches. I had planned to start incorporating other search Apis but didn't have time.

One idea I had, which would be amazing in QS, was to create a generic API plugin that allowed the user to interact with an API and return results in real time as suggested above. A lot of cool Apis could be used without authentication and the addition of OAuth would go a long way to interacting with a ton of Apis. The possibilities would be amazing, searching google, twitter, Netflix, etc.!!

Really looking forward to seeing how this turns out.

stale[bot] commented 2 years ago

This issue hasn't been updated in over 2 years. It has been marked as 'stale' and will be closed in 30 days. Please check whether this is still an issue with the latest version of Quicksilver. If so, update or comment on this issue to keep it open.