You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
415 B
25 lines
415 B
3 years ago
|
<%*
|
||
|
|
||
|
fastStart = async (filename, delayInSecond) => {
|
||
|
|
||
|
if (tp.file.exists(filename)) {
|
||
|
|
||
|
const f = tp.file.find_tfile(filename);
|
||
|
|
||
|
let plugins = (await app.vault.read(f)).split(/\r?\n/);
|
||
|
|
||
|
setTimeout(async () => {
|
||
|
|
||
|
plugins.forEach(async (p) => await app.plugins.enablePlugin(p))
|
||
|
|
||
|
}, delayInSecond * 1000)
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
await fastStart("FastStart-Plugins-ShortDelay", 2)
|
||
|
|
||
|
await fastStart("FastStart-Plugins-LongDelay", 30)
|
||
|
|
||
|
%>
|