We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
首先感谢大佬的无私奉献! 我在平时实际使用示例库时有一个问题,就是插件太多,启动较慢,有些插件也不是用不上,只是不是每次都需要用。如果一并禁用,要用时再启用,操作较麻烦,如果一并启用,使用频率不高,还影响每次启动速度。所以受FastStartup模板的启发,我改写了一份插件启停模板,代码贴在下方,希望加入示例库,方便更多人。
<%* let myEn= await tp.system.suggester( ["启用", "停用"], [1, 0]); let myChoice = await tp.system.suggester( ["编辑增强", "表格增强", "显示加强", "全部",], ["Edit+", "Table+", "View+", "All"]); var i; var num; var pluginArr = []; -%> <%* //函数定义 fastSwitch = async (choice, en) => { switch(choice) { case "Edit+": //pluginArr.splice(0, 0, "editing-toolbar", "obsidian-outliner"); pluginArr=pluginArr.concat(["editing-toolbar", "obsidian-outliner", "various-complements", "number-headings-obsidian"]); break; case "Table+": pluginArr=pluginArr.concat(["notion-like-tables", "dbfolder", "obsidian-charts", "obsidian-echarts", "obsidian-yaml-database"]); break; case "View+": pluginArr=pluginArr.concat(["obsidian-quiet-outline", "obsidian-react-components", "ProxyGithub"]); break; case "All": pluginArr=pluginArr.concat(["editing-toolbar", "obsidian-outliner", "various-complements", "number-headings-obsidian", "notion-like-tables", "dbfolder", "obsidian-charts", "obsidian-echarts", "obsidian-yaml-database", "obsidian-quiet-outline", "obsidian-react-components", "ProxyGithub"]); break; } num = pluginArr.length; switch(en) { case 1: for(i=0;i<num;i++) { await app.plugins.enablePlugin(pluginArr[i]); } break; case 0: for(i=0;i<num;i++) { await app.plugins.disablePlugin(pluginArr[i]); } break; } } //函数调用 await fastSwitch(myChoice, myEn); -%>
这是一个Templater模板,放入模板文件夹即可。
Templater模板
editing-toolbar
obsidian-outliner
various-complements
将模板绑定快捷键
新建按钮
The text was updated successfully, but these errors were encountered:
很棒! 感谢你的模板,下一版本会集成,谢谢!
Sorry, something went wrong.
谢谢大佬的认可! 😄 这份模板只是抛砖引玉,希望这份模板能在大佬的改造和集成下更方便修改和使用! 👍 👍 👍
已添加到最新的示例库中 感谢!
No branches or pull requests
首先感谢大佬的无私奉献!
我在平时实际使用示例库时有一个问题,就是插件太多,启动较慢,有些插件也不是用不上,只是不是每次都需要用。如果一并禁用,要用时再启用,操作较麻烦,如果一并启用,使用频率不高,还影响每次启动速度。所以受FastStartup模板的启发,我改写了一份插件启停模板,代码贴在下方,希望加入示例库,方便更多人。
模板文件
使用方法
这是一个
Templater模板
,放入模板文件夹即可。editing-toolbar
、obsidian-outliner
、various-complements
这几个插件启动消耗资源较多,建议不用每次都随软件启动。优点
说明
将模板绑定快捷键
或者通过Buttons插件新建按钮
。不建议QuickAdd方式,模板本身不产生新文件,但通过QuickAdd新建模板就会产生一个空文件。The text was updated successfully, but these errors were encountered: