1775206638
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module.exports = async function openTerminal(params) {
|
||||
const { app } = params;
|
||||
const vaultPath = app.vault.adapter.basePath;
|
||||
const command = `wt -d "${vaultPath}"`;
|
||||
const { exec } = require("node:child_process");
|
||||
exec(command, (error) => {
|
||||
if (error) console.error("执行失败:", error);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user