-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dictionary Plugin #724
Comments
For those who doesn't own a Mac, could you show how it looks like or record a short GIF/video, please? |
@balta2ar This is how it looks in the current version of spotlight |
So I have a working proof of concept now. It has some pretty poor implementation, but it does actually work. The main thing to note is that it is actually connecting to a DICT server running locally with the (WordNet)[https://wordnet.princeton.edu] dictionary and performing requests as words are typed. So while its possible that on very slow machines it could be problematic, but on any modern system it will work without any serious issue as the requests return in 40-50ms normally. I created this gif to show an example of it working. apperently plugin is not in the wordnet dictionary? |
Thanks @cody-code-wy ! I looked at your repo but was not sure which dir to copy to test your extension, any instructions ? |
My repo is of the Albert-plugins repository. The main Albert repository uses git submodules, and my repository should be used in place of plugins submodule. If you need some help with actually building the extension, or working with git you can find me on the Albert Telegram Group I'm codycode on there. |
What is your backend? Mind to share? |
is this still a thing? |
Reopen if necessary |
I noticed a distinct lack of a dictionary plugin (that works without some keyword), and im planning to develop one. I noticed that the contributing policy asks people not to just make stuff and send a PR so im making this issue first. I hope this is inline with what that meant.
Dictionary lookup is one of my favorite features of spotlight, and something I use frequently.
So what I intend to make is a plugin (C++) that does not require a trigger keyword (eg: it should work like the calculator plugin) that when a word is typed in will be looked up in a dictionary and displayed in the list with lowered priority.
I am currently planning to use the DICT protocol along with the dictd application (or any other similar server) to allow fast lookup of arbitrary compatable dictionaries
I am wondering what the best way to do this, because the lookup can take around 1-3 seconds depending on the computer's speed and I don't want to delay other things being shown, and I haven't really found if results are populated async.
The text was updated successfully, but these errors were encountered: