johnfactotum / quick-lookup

Simple GTK dictionary application powered by Wiktionary
GNU General Public License v3.0
94 stars 8 forks source link

System wide look up #6

Closed retesta closed 4 years ago

retesta commented 4 years ago

I would love if there was the ability to right click (and/or press a keyboard shortcut) on a selected word anywhere on the OS and have an option to see its definition in the Quick LookUp app. Similar to how you can get definitions on Mac OS by right clicking > define or 3 finger tapping on a word.

I feel this would make the quick in Quick LookUp even quicker... (ba-dum-tss)

johnfactotum commented 4 years ago

I've added a --selection option. When launched in this mode, it will look up the selected text (primary selection) when the window is focused.

So now you can set a shortcut for quick-lookup --selection, and it will launch the app and look up the selected text.

In GNOME, a global shortcut can be set in the Keyboard Shortcuts section in Settings:

image

retesta commented 4 years ago

Amazing man. Much appreciated!

Also, if you have installed Quick Lookup from Flathub, the command used should be: flatpak run com.github.johnfactotum.QuickLookup --selection

thagorastos commented 3 years ago

Amazing man. Much appreciated!

Also, if you have installed Quick Lookup from Flathub, the command used should be: flatpak run com.github.johnfactotum.QuickLookup --selection

Please add this info to the README.