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

highlighting word group in mthesaur.txt that can be replaced #25

Open rpietro opened 6 years ago

rpietro commented 6 years ago

@Ron89 outstanding plugin. here is what I was looking into doing: say I have bult an mthesaur.txt where I have the expression "very important" which I set as a synonym for "critical"

The problem is that I will forget that the expression "very important" is under mthesaur.txt and so I would be unlikely to visually select both words while searching for a synonym. Question then is: any suggestions on how I could enhance the plugin to underline expressions present in mthesaur.txt with more than one word? This would allow me to know that these expressions are potentially replaceable.

Ron89 commented 6 years ago

hmm, not all backends can be used to achieve this, only local backends can. Or else the latency could be very experience damaging. Or, we can use async method to achieve it. But that would require an architecture overhaul.

Also, to ease the pain of setting this up, an auto-download routine need to be provided by the local backends before introducing this feature (issue #19 ).

Let me think about it.