Page 1 of 1

Feature request: search word/s using command-line

PostPosted: Thu Jul 14, 2011 6:32 pm
by Strathos
I think it would be quite useful to have the possibility to search a word using a command line. The scan popup doesn't work on Opera or Firefox, but I can easily call GoldenDict from them.

Code: Select all
C:\Program Files\GoldenDict\GoldenDict.exe -sm "words to search"
Would use the Main window

Code: Select all
C:\Program Files\GoldenDict\GoldenDict.exe -sp "words to search"
Would use the Popup window

P.S: I'm aware of the hotkey to translate from clipboard.

Re: Feature request: search word/s using command-line

PostPosted: Sun Nov 20, 2011 11:07 pm
by chulai
This has been added a couple of days ago in the development version: https://github.com/goldendict/goldendic ... 7a1e30a112

Therefore you can edit your C:\Program Files (x86)\Opera\ui\standard_keyboard.ini Opera file and add this line in the section [Hotclick Popup Menu]:
Code: Select all
Item, "GoldenDict" = Execute program, "C:\GoldenDict\goldendict.exe", "%t"


Then you can double click or select a text in a webpage, then right click to show the context menu where you can select "GoldenDict" to lookup the word/text selected.

Re: Feature request: search word/s using command-line

PostPosted: Sun Jan 01, 2012 4:17 pm
by chulai
A followup: any edition to your C:\Program Files (x86)\Opera\ui\standard_keyboard.ini will be overriden next time you update Opera browser. You have to follow these instructions to avoid that http://www.rarst.net/software/opera-context-menu-edit/