goldendict / goldendict

A feature-rich dictionary lookup program, supporting multiple dictionary formats (StarDict/Babylon/Lingvo/Dictd) and online dictionaries, featuring perfect article rendering with the complete markup, illustrations and other content retained, and allowing you to type in words without any accents or correct case.
http://goldendict.org/
Other
5.98k stars 731 forks source link

Remember current article title after switching groups #398

Open hukarere opened 11 years ago

hukarere commented 11 years ago

This is a feature request.

When browsing an article, I often need to look up the same article in another dictionary group (e. g. switch from bilingual to monolingual dictionaries). However, when switching to another group, GoldenDict will display an article for the word specified in the input line, which will be different from the current article title if the article was selected from the word list rather than typed manually in the input line. For example, if I type 'ab' in the input line, then select 'abacus' from the word list, then switch to another dictionary group, GoldenDict will try to display the article for 'ab' instead of abacus, which will result in the 'word not found' error. To prevent this behaviour and make GoldenDict still display 'abacus' after switching the group, I usually have to: (1) select the article title in the article window (2) invoke context menu and select "send 'word' to input line".

This is rather annoying. I would prefer to see GoldenDict select current article title automatically when switching groups. That is, if there is 'ab' in the input line, but current article title is 'abacus', then after switching to another group, GoldenDict should look up for 'abacus' in the new group, and not for 'ab'.

For now, I use a simple workaround described here: http://goldendict.org/forum/viewtopic.php?f=4&t=2404 It proposes a trivial patch that allows to copy the title of the current article to the input line by pressing 'Ctrl-I' before switching groups. The drawback is that the old text in the input line is lost.

nonwill commented 1 year ago

84