Ron89 / thesaurus_query.vim

Multi-language Thesaurus Query and Replacement plugin for Vim/NeoVim
http://www.vim.org/scripts/script.php?script_id=5341
Apache License 2.0
220 stars 23 forks source link

Feature Request: openthesaurus.de backend #15

Closed dunkla closed 5 years ago

dunkla commented 7 years ago

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

Ron89 commented 7 years ago

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 commented 6 years ago

@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 commented 5 years ago

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