Can a plugin manipulate the active config (e.g., add to the spellcheckDictionary)?

Hi,

I’m trying to build a simple plugin, to allow a hot-key for adding the unrecognized word under the cursor to the dictionary. I can’t see (maybe I’ve just missed it?) if there’s a way to do that (without editing the file directly, which I assume then wouldn’t be reloaded by the active app).

Is this possible - to access and manipulate the config file/object from a plugin? if not is it an idea that could be added/exposed in the API?

Thanks!