Bug 338580 - Add option to send selected text directly to external program from context menu
Summary: Add option to send selected text directly to external program from context menu
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.19.2
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 15:29 UTC by Robin Marlow
Modified: 2014-08-27 09:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Marlow 2014-08-26 15:29:28 UTC
Hi,
I use okular for reading academic pdfs & often want to follow the references.  Unfortunately these mainly don't have html links just the journal reference
e.g. ("De Wals P, Gilquin C, de Maeyer S, Bouckaent A, Noel A, Lechal MF et al Longitudinal study of asymptomatic meningococcal carriage in two Belgian populations of school children. J Infect 1983;6:147-56.")

Currently I select this text,  copy to clipboard then go to browser and paste into pubmed & up it pops.  Would it be possible to add an option to "search with x" that send the highlighted text to a specific search engine in the browser.

I can see from other bugs you are hesitant about increasing the complexity of the UI,  but for academic researchers it would be fantastic & if configurable could be used to look up with a dictionary website instead.

Sniffing around acroread it has a non-configurable context menu option "look up" that sends the text to dictionary.com,  which is sort of what I want - but to pubmed instead (and not horrendous bloated acroread)!

Thanks!

Robin
Comment 1 Albert Astals Cid 2014-08-26 15:35:27 UTC
"Would it be possible to add an option to "search with x" that send the highlighted text to a specific search engine in the browser."

Have you tried that nice option that shows in the submenu named "Configure webshortcus"?

Because it may seem to be exactly what you want...
Comment 2 Robin Marlow 2014-08-26 15:43:43 UTC
Thank you what an amazingly fast response!  That does indeed sound _exactly_ like what i need. I don't appear to have that option - presumably because I am using xfce, so may not have compiled (gentoo!) some other part of the KDE desktop.

I will install some stuff and see if I can get it working.

Thanks,
Comment 3 Albert Astals Cid 2014-08-26 15:59:46 UTC
run

$ kcmshell4 ebrowsing

from a shell
Comment 4 Christoph Feck 2014-08-26 21:00:26 UTC
Clarification: use the context (right-click) menu on the selected text. It should list some default search engines, and also have the "Configure Web Shortcuts" menu item.
Comment 5 Robin Marlow 2014-08-27 09:25:31 UTC
Thanks all,

All I needed to do was install Konqueror & kcmshell then it all worked.

R