I made a plugin to format notes by prettier (https://my.inkdrop.app/plugins/prettier). I want to use the indent unit setting value as a formatting option. Is there a way to read that value from a community plugin?
[JP] Prettierでノートをフォーマットするプラグインを作りました. アプリケーションのインデントサイズの設定をフォーマット時に利用したいのですが,pluginからその値を取得する方法はありますでしょうか?
Hi Takeshi-san,
Thank you for the question. Of course, you can, as following:
inkdrop.config.get('editor.indentUnit')
For more detail:
Hope that helps!
Thank you! I was able to implement it.
Is there a list of available system settings somewhere?
Good to hear that.
You can see the entire config values by doing so:
inkdrop.config.get()
wow. thanks!