Homepage    |    GitHub    |    API    |    Wiki    |    FAQ

How to view/query global settings?

My plugin does not need to set/update global settings, just to query them, very likely the value of the "sync.target" setting.

My ReplaceResources plugin needs to know whether "synchronisation" is enabled/configured in order to decide how to proceed.

That is, if sync is configured, await the joplin.workspace.onSyncComplete event before the next stage of processing.

Else, if sync is NOT configured, go straight to the next stage of processing.

I'm looking for suggestions on how to solve for this as per JoplinSettings.ts "Currently this API does not provide access to Joplin's built-in settings. This is by design as plugins that modify user settings could give unexpected results."

It's possible to read these settings, just not write to them.

You can see an example of this here

And the documentation for this function is here
https://joplinapp.org/api/references/plugin_api/classes/joplinsettings.html#globalvalue

1 Like

Thank you, thank you, thank you!!

1 Like