This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[KRunner Webshortcuts] Show search results in krunner.

2

Votes
2
0
Tags: None
(comma "," separated)
cya
Registered Member
Posts
10
Karma
0
OS
It would be awesome if webshortcuts could use the api of the corresponding website to fetch and show the result of a query search on that site.
Let's say I'm typing "wp:KDE", then krunner could use the api of Wikipedia to show me articles that match my search query, just as the search field on http://wikipedia.org does.

How could this be implemented?
- If a webpage has an api, then integration code for that uses that api to fetch search results must be written.
This might be a lot of work but could be done for the most used webpages.
These api implementations could be delivered via a plugin like system.

- We could additionally/instead define one well documented standard/protocol for search request and politely ask website owners to implement it.
This enables website operators to take over the task. We may support them by providing libraries for the must common webframeworks that simplify implementing this standard for your own site. Everybody would profit from this approach, not just KDE as in the case above.
airdrik
Registered Member
Posts
1854
Karma
5
OS
I really like this idea.

I see this as working similar to modern browsers url/search bars which offer web-based suggestions based on what you've entered. Presumably there's some common code and/or standards and/or APIs which can be reused in krunner.


airdrik, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]