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
hi all, i'm trying to add the below script, but when i add it to the chose i get " Invalid macro name" and when i ignore it and use the quick add i get "failed to run user script minmial. Error: "
code used:
module.exports = async params => {
const metaEditApi = params.app.plugins.plugins["metaedit"].api;
const activeFile = params.app.workspace.getActiveFile();
if (!activeFile && activeFile.extension !== "md") {
new Notice("No valid active file");
return;
}
await params.quickAddApi.executeChoice('Add Activity to Daily Note with Active File Linked', {ProjectName: activeFile.basename})
}
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
-
hi all, i'm trying to add the below script, but when i add it to the chose i get " Invalid macro name" and when i ignore it and use the quick add i get "failed to run user script minmial. Error: "
code used:
Beta Was this translation helpful? Give feedback.
All reactions