<%* // Hotkey: Alt+S // Open settings plugin必須先設定 let oSettings = { "BRAT": "open-plugin-settings:obsidian42-brat", //"obsidian42-brat:BRAT-AddBetaPlugin", "QuickAdd": "open-plugin-settings:quickadd", "Open-plugin": "open-plugin-settings:open-plugin-settings", "Other settings":"open-plugin-settings:open-other-plugin-settings", "Commander": "cmdr:open-commander-settings", //"open-plugin-settings:cmdr" "Keyshots": "keyshots:open-keyshots-settings-tab", "Soundscapes": "open-plugin-settings:soundscapes", "Style settings": "obsidian-style-settings:show-style-settings-leaf", "Settings": "app:open-settings" };
let aKeys = Object.keys(oSettings); let aValues = Object.values(oSettings);
let sValue = await tp.system.suggester(aKeys, aValues, false, "選擇要設定的外掛"); // (displays, values,...) if (!sValue) return; console.log(sValue); await app.commands.executeCommandById(sValue); -%>