Skip to content
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

Feature Request: openthesaurus.de backend #15

Closed
dunkla opened this issue Jan 18, 2017 · 3 comments
Closed

Feature Request: openthesaurus.de backend #15

dunkla opened this issue Jan 18, 2017 · 3 comments

Comments

@dunkla
Copy link

dunkla commented Jan 18, 2017

It has an api and should serve better in longterm than woxikon..

@Ron89
Copy link
Owner

Ron89 commented Jan 18, 2017

Thanks for pointing out, didn't notice it has open API before. I'll read about it and see to implement it when I have time again. Also, if you are interested, you can write a backend yourself. It's quite simple and straight forward: just write an ..._lookup.py and put it under autoload/thesaurus_query/backends, the plugin will recognize it on next boot-up, referring the backend by its identifier and language. You can write any query routine, just make sure your backend has a def query(target): so that the plugin can call with.
For examples, you may refer to:
https://github.com/Ron89/thesaurus_query.vim/blob/master/autoload/thesaurus_query/backends/woxikon_de_lookup.py
and
https://github.com/Ron89/thesaurus_query.vim/blob/master/autoload/thesaurus_query/backends/datamuse_com_lookup.py

@Ron89
Copy link
Owner

Ron89 commented May 22, 2018

@dunkla , as requested, openthesaurus.de is now added as one of the default plugins as of commit 4c2aa9b. Please test if it is working fine for you.

@dunkla
Copy link
Author

dunkla commented Oct 4, 2018

Sry for the late answer. It works as wished (openthesaurus is used by default and delviers good results).

@dunkla dunkla closed this as completed Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants