You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heya - since icons doesn't apply when creating files from scripts (atleast templater)
i was curious if i could trigger a rule appliance through the api?
i've tried all the api calls on the plugin
there's ofcourse a way to add icons if you know which icon you want to add, with .addFolderIcon()
or you could iterate through the rules and apply them by crosschecking which folders they're in yourself, with .data.rules / .getData().rules
but that's gonna be some pretty extensive coding, although ... possible
i simply just went with await this.app.plugins.unloadPlugin(iconfolder), await this.app.plugins.loadPlugin(iconfolder)
since i found that closing and reopening obsidian would apply the icons to the files created with templater.
although it works, it doesn't quite seem like the way to go about it
It would be nice to be able to trigger a rulecheck rather than this (honestly flabbergasted that .handleChangeLayout() didn't do this, since there definitely is a rulecheck in that function)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Heya - since icons doesn't apply when creating files from scripts (atleast templater)
i was curious if i could trigger a rule appliance through the api?
i've tried all the api calls on the plugin
there's ofcourse a way to add icons if you know which icon you want to add, with .addFolderIcon()
or you could iterate through the rules and apply them by crosschecking which folders they're in yourself, with .data.rules / .getData().rules
but that's gonna be some pretty extensive coding, although ... possible
i simply just went with await this.app.plugins.unloadPlugin(iconfolder), await this.app.plugins.loadPlugin(iconfolder)
since i found that closing and reopening obsidian would apply the icons to the files created with templater.
although it works, it doesn't quite seem like the way to go about it
It would be nice to be able to trigger a rulecheck rather than this (honestly flabbergasted that .handleChangeLayout() didn't do this, since there definitely is a rulecheck in that function)
Beta Was this translation helpful? Give feedback.
All reactions