grndstt
05/22/2022, 9:12 AMgrndstt
05/22/2022, 9:13 AMgrndstt
05/22/2022, 9:13 AM---
id: exyg82texwv60f0ch7r1i7m
title: |-
sdgjsgd,,module.exports = {
/**
* Creates a note name with a year.month.name format.
*/
OnWillCreate: {
setNameModifier(props) {
// placeholder name:
let nameModifier = "John Doe";
// Try to get the name first from selected Text, and secondly from the clipboard
if (props.selectedText) {
nameModifier = props.selectedText
}
else if (props.clipboard) {
nameModifier = props.clipboard;
}
// Add a date component with year and month
const curDate = new Date();
const year = curDate.getFullYear();
const month = curDate.getMonth() + 1; // getMonth is 0 indexed
return {
name: [year, month, nameModifier].join('.'),
promptUserForModification: true
};
}
},
/**
* Extracts the name component of the note title and capitlizes it
*/
OnCreate: {
setTitle(props) {
const fName = props.currentNoteName;
if (fName.includes(".") && fName.lastIndexOf(".") < fName.length) {
const namepart = fName.substring(fName.lastIndexOf(".") + 1);
const capitilized = namepart.split('-').map(element => element[0].toUpperCase() + element.substring(1));
return capitilized.join(' ');
}
else {
return fName;
}
}
}
}
desc: ''
updated: 1653210612441
created: 1653210612441
traitIds:
- professional-connections
---
grndstt
05/22/2022, 9:13 AMMaarrk
05/22/2022, 1:14 PMPaul_J
05/23/2022, 9:03 AMSeriousBug
05/23/2022, 9:03 AMdendron.code-workspace
file after moving to make sure you get all features.Paul_J
05/23/2022, 9:14 AMSeriousBug
05/23/2022, 9:15 AMjokaro
05/23/2022, 11:29 AMTika
05/23/2022, 11:34 AM#
in the title that Dendond thinks is a tag. Is there a way to escape this?personjerry
05/23/2022, 6:59 PMd1onys1us
05/23/2022, 7:45 PMSeriousBug
05/23/2022, 8:01 PMd1onys1us
05/23/2022, 8:14 PMd1onys1us
05/23/2022, 8:14 PMuFzK3VbZ8aAVmt2h
05/23/2022, 8:25 PM#nottag
ilt
05/24/2022, 1:51 AMcreate a journal note
I see that title template is Journal-year-month-dateilt
05/24/2022, 1:51 AM---
id: fvhu8mzyrec1rnsi21d0at3
title: Journal-2022-05-23
desc: ''
updated: 1653356983970
created: 1653356976413
traitIds:
- journalNote
---
ilt
05/24/2022, 1:52 AMPaul_J
05/24/2022, 10:20 AMJoshi
05/24/2022, 12:04 PMMaarrk
05/24/2022, 12:29 PMdendron.yml
https://wiki.dendron.so/notes/5c213aa6-e4ba-49e8-85c5-1bdcb33ce202/#configurationSarvy
05/24/2022, 12:38 PMtoxygen
05/24/2022, 3:06 PMtoxygen
05/24/2022, 3:07 PMPaul_J
05/24/2022, 3:33 PMPaul_J
05/24/2022, 4:43 PMJoshi
05/24/2022, 4:45 PMPaul_J
05/24/2022, 4:46 PM