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
@@ -350,11 +343,11 @@ class ConfirmDeleteModal extends Modal {
350
343
351
344
classSettingsModalextendsModal{
352
345
name: string;// Identifies the rule
353
-
folder: string;// Where to create the new file
354
346
pattern: string;// Clipboard text pattern that triggers the rule
355
347
template?: string;// Insert the pasted text into this template, when writing to new file (e.g. code fence)
356
348
desc?: string;
357
-
filenameFmt: string;
349
+
folder: string;// Where to create the new file
350
+
filenameFmt: string="${date}";
358
351
editing=false;
359
352
saved=false;// Whether the user clicked "Save"
360
353
@@ -394,7 +387,8 @@ class SettingsModal extends Modal {
394
387
);
395
388
396
389
newSetting(settingDiv)
397
-
.setName('Description (optional)')
390
+
.setName('Description')
391
+
.setDesc('Optional text to be displayed with the rule, in the Settings pane.')
398
392
.addText(text=>text
399
393
.setPlaceholder('')
400
394
.setValue(this.desc??"")
@@ -404,7 +398,7 @@ class SettingsModal extends Modal {
404
398
);
405
399
406
400
newSetting(settingDiv)
407
-
.setName('Pattern (optional)')
401
+
.setName('Pattern')
408
402
.setDesc('Regex pattern that triggers the rule on pasted clipboard text. Leave empty to trigger on all pasted text.')
409
403
.addText(text=>text
410
404
.setPlaceholder('')
@@ -415,8 +409,8 @@ class SettingsModal extends Modal {
415
409
);
416
410
417
411
newSetting(settingDiv)
418
-
.setName('Embedded note folder')
419
-
.setDesc('Where to save the embedded notes. Start with "./" for path relative to the folder of the current note. Use ${notename} for the name of the current note.')
412
+
.setName('Folder')
413
+
.setDesc('Where to save the embedded notes. Leave empty to save in the active folder. Start with "./" for a path relative to the active folder. Use ${notename} for the name of the active note.')
420
414
.addText(text=>text
421
415
.setPlaceholder('')
422
416
.setValue(this.folder??"")
@@ -426,8 +420,8 @@ class SettingsModal extends Modal {
426
420
);
427
421
428
422
newSetting(settingDiv)
429
-
.setName('Name format for embedded note')
430
-
.setDesc('Use ${notename} for the name of the current note, and ${date} for a datetime string.')
423
+
.setName('Embedded note name format')
424
+
.setDesc('Use ${notename} for the name of the active note, and ${date} for a datetime string.')
431
425
.addText(text=>text
432
426
.setPlaceholder('')
433
427
.setValue(this.filenameFmt??"")
@@ -437,8 +431,8 @@ class SettingsModal extends Modal {
437
431
);
438
432
439
433
newSetting(settingDiv)
440
-
.setName('Template (optional)')
441
-
.setDesc('Use ${content} to indicate where pasted text should be inserted, before pasting into embedded file.')
434
+
.setName('Template')
435
+
.setDesc('Use ${content} to indicate where pasted text should be inserted, before pasting into embedded file. Leave empty to insert as-is.')
442
436
.addTextArea(textArea=>{
443
437
textArea.inputEl.rows=5;
444
438
textArea
@@ -447,7 +441,7 @@ class SettingsModal extends Modal {
0 commit comments