Closed ffes closed 4 months ago
It should not be hard, could be implemented
Great news, thanks.
Is there an easy way to test this before it gets released?
Great news, thanks.
Is there an easy way to test this before it gets released?
Unfortunately haven't implemented artifact upload by github actions yet, will do this soon, then it would be easy.
Now can be tried with this version: https://github.com/Predelnik/DSpellCheck/actions/runs/8587165792/artifacts/1391687586 Using this api: https://github.com/Predelnik/DSpellCheck/blob/master/include/PluginMsg.h
Thanks for the download. I've tried it and it works as expected. Great!
There is just one thing I run into. I've opened #339 for this.
There are several plugin that would like to set the spell language, for instance see this discussion in https://github.com/editorconfig/editorconfig/issues/315, but I would like it to add it to https://github.com/ffes/nppfilesettings as well.
I was wondering if it would be possible add some sort of API in DSpellCheck for other plugins to change the current language used for spell checks. I know it is not possible at the moment, but having this feature to set the spell language for the docs of a project would be very useful.
I know there is
NPPM_MSGTOPLUGIN
, but I never used it. What I understand from the docs is that the sending plugin needs to setCommunicationInfo
struct properly and send the message to the other plugin. The receiving plugin needs to handle that message inbeNotified()
(I think).If this would be possible to add such an API, a second endpoint to enable or disable the spell check would be useful to have.