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
"plugin.lastUpdateInfo": "1.2.0: improvements to displays in 'jump to heading' and 'jump to note heading' commands, and include Teamspace notes. Improvements to 'inconsistent file name' commands.\n1.1.1: add initial support for Teamspaces + bug fix.\n1.1.0: new 'list published notes' command.\n1.1.0: added 'write modified' command to write the modified date to frontmatter (on each save). Can be run by hand or can be included as a trigger using the 'add trigger to note' command. Small improvements to \"new note from selection\".\n1.0.0: move '/new note from ...' commands here from Filer plugin, and revived '/new note' command.\n0.20.3: New 'printEditorDetailed' command to log all paragraph details as well.\n0.20.2: 'printNote' extended to cover backlinks.\n0.20.1: new command 'printNote' for debugging purposes.\n0.20.0: new commands \"unlinked note finder\" and \"delete note\". Bug fix to \"rename note filename\" command.\n0.19.2: fix edge cases with \"add trigger to note\".",
10
+
"plugin.version": "1.2.1",
11
+
"plugin.lastUpdateInfo": "1.2.1: Allow 'delete note' command to run on Teamspace notes. Stop 'inconsistent file name' commands from running on Teamspace notes. Bug fixes.\n1.2.0: improvements to displays in 'jump to heading' and 'jump to note heading' commands, and include Teamspace notes. Improvements to 'inconsistent file name' commands.\n1.1.1: add initial support for Teamspaces + bug fix.\n1.1.0: new 'list published notes' command.\n1.1.0: added 'write modified' command to write the modified date to frontmatter (on each save). Can be run by hand or can be included as a trigger using the 'add trigger to note' command. Small improvements to \"new note from selection\".\n1.0.0: move '/new note from ...' commands here from Filer plugin, and revived '/new note' command.\n0.20.3: New 'printEditorDetailed' command to log all paragraph details as well.\n0.20.2: 'printNote' extended to cover backlinks.\n0.20.1: new command 'printNote' for debugging purposes.\n0.20.0: new commands \"unlinked note finder\" and \"delete note\". Bug fix to \"rename note filename\" command.\n0.19.2: fix edge cases with \"add trigger to note\".",
12
12
"plugin.dependencies": [],
13
13
"plugin.script": "script.js",
14
14
"plugin.commands": [
@@ -263,6 +263,16 @@
263
263
"jsFunction": "triggerFindUnlinkedNotes",
264
264
"hidden": true
265
265
},
266
+
{
267
+
"comment": "TODO: delete me soon",
268
+
"name": "test: choose folder",
269
+
"description": "Test the chooseFolder function",
270
+
"jsFunction": "testChooseFolder",
271
+
"alias": [
272
+
"tcf"
273
+
],
274
+
"hidden": true
275
+
},
266
276
{
267
277
"name": "Write changed/modified date to frontmatter",
268
278
"description": "Write the modified date to frontmatter (on each save). Writes to 'modified' key.",
* Shows a list of notes with inconsistent names (i.e. where the note title and filename are different).
18
+
* Only makes sense for private regular notes.
18
19
* @param {string} folderIn - Optional URL-encodedfolder to check for inconsistent names. If not provided, the user will be prompted to choose a folder.
thrownewError('Sorry, I cannot currently move Teamspace notes to the Trash. You will need to do this manually.')
136
+
if(type==='Calendar'){
137
+
thrownewError(`Sorry, NotePlan doesn't allow moving Calendar notes to the Trash.`)
138
+
}
139
+
if(isTeamspaceNote){
140
+
if(NotePlan.environment.buildVersion<1431){
141
+
thrownewError('Sorry, before NotePlan v3.18.2, I cannot move Teamspace notes to the Trash. You will need to do this manually.')
142
+
}else{
143
+
showMessage('Note: currently Teamspaces have no trash folder, but a copy will be made inside the Operating System Trash, if you need to recover the note.')
logInfo('NoteHelpers/trashNote',`Note '${displayTitle(note)}' from Teamspace '${getTeamspaceTitleFromNote(note)}' (filename '${filename}') was deleted from the Teamspace, and copied to your local @Trash folder.`)
152
+
}else{
153
+
logInfo('NoteHelpers/trashNote',`Note '${displayTitle(note)}' (filename '${filename}') was moved to the Trash.`)
154
+
}
155
+
}else{
135
156
thrownewError(`Error trying to move note to @Trash`)
0 commit comments