Im trying to use templater to automaticly change the Note to a template dependent on a title. So i can make a new Note and type the Tytle and it then gets replaced by a Template. This should be possible by using regex in the Templater settings (ChatGPT)
Could someone provide me the regex if the title should be „TEST“ ?
If you add in the bar on the left TEST and in the bar on the right path/to/template/folder/Test emplate.md, then if you create a new file with a name that includes ‘TEST’, then that Test template would be called.
You will need to put this rule above the one that calls the default template if you have one.
Test template I created:
Insert this text on the first line.
Newly created file containing TEST (I named the file ‘TEST the waters’):
Insert this text on the first line.
There is currently no regular expression being used in the string ‘TEST’. It’s a simple string.
If you want TEST to be the first word always, you add ^TEST, if the last you add TEST$.
And so on.
Thus, your are simply stating the Regex templates with their respective note-folders the template is placing into,
ARE THE SAME as the OTHER list of non-Regex-Templates with their respective note-folders the non-Regex-Templates place into,
BUT the ONLY difference IS the ORDER of the list of REGEX-TEMPLATES with their note-folders on the left in the list.
Additionally the non-REGEX-templates list do not have the manipulation of the titles in the newly created notes that pull in the their respective non-REGEX-templates.
Using my crazy language herein
I think I now know the DIFF between the TWO LISTINGS of Templates with their respective note-folders → they SLIP into.
Thank you,
~Rob
Of course using the first “Template-dailynote-folder” LISTING, templater fails, for some reason, to place the newly created daily-note into it’s Dailynote-folder WHICH IS ANOTHER ISSUE… nevermind for now (Since v1.8.4 that is)