Ampletag

name

Tagger

icon

tag

instructions

Simply type in {Tag this note} in any note and insert the name of the tag you would like applied. Great for use in Jots Mode where the button for adding a tag is not visible. Also great for quickly adding a tag to a note without using the mouse (too much).



{
insertText: {
async "Tag this note" (app) {
try {
const note = app.findNote({uuid: app.context.noteUUID})
const result = await app.prompt(
"What tag to apply to this note?",
{
inputs: [
{
label: "Tag to apply",
placeholder: "Your tag here",
type: "text",
}
]
}
);
console.log(result);
 
await app.addNoteTag({uuid: app.context.noteUUID}, result);
return "";
} catch (err) {
await app.alert(err);
}
}
}
}