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

multiple search in one web shortcut

Tags: None
(comma "," separated)
bernardinowilliams
Registered Member
Posts
28
Karma
0
OS

multiple search in one web shortcut

Mon May 20, 2013 3:20 pm
I frequently want to search a fixed series of digital libraries for a certain book. I currently have several custom Web Shortcuts created for that and would like to merge them. That way I would just launch krunner, type sth. like diglib + vlastos and that would launch all the searches in different tabs in my browser. However, at least with chromium, which is what I am using nowadays, the blank space that separates the addresses is interpreted by chromium as a
%5C%20
which makes a search for "Brochard" in
http://en.bookfi.org/s/?q=\{@}&t=0\ http://bookos.org/s/?q=\{@}&t=0
as
http://en.bookfi.org/s/?q=Brochard&t=0%5C%20http://bookos.org/s/?q=Brochard&t=0

Is there any sintactical solution to this?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately this is something which the web shortcuts system was not designed to handle.
The space expanding to %20 is expected in this case, as the web shortcuts system believes it is a single, large url - which it then passes to Chromium.

I've checked the code of the Web Shortcuts runner, and it definitely has this limitation.
Unfortunately, no workaround will be possible here.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bernardinowilliams
Registered Member
Posts
28
Karma
0
OS
Damn! That's one blunt, definite, disappointing answer.
It will become my life's goal from today to solve the issue. I will first learn something about computers first, though. ;D
Thanks anyway.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Sorry if that was a little blunt.

It has occurred to me that there is a workaround - but it is outside the web shortcuts system. You could write a script which would invoke your browser and fill in the needed parts of each url in turn, and then use the "Command Line" runner to use it.

This would give you the single invocation you are after, although it would be fairly custom.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
bernardinowilliams
Registered Member
Posts
28
Karma
0
OS
dont' be sorry. you saved me hours of searching for a possible solution from within krunner.
the script idea is what I had in mind. I will have to learn quite a bit though.
Thanks once again.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]