Skip to content

Tittle and Citeky #184

Answered by tallguyjenks
VaderihgBU asked this question in Q&A
Discussion options

You must be logged in to vote

update the template with this chunk:

<%*
    let title = "{{title | replace(':', '') | replace('#', '') | replace('^', '') | replace('|', '') | replace('\[', '') | replace('\]', '') | replace('\\', '') | replace('/', '')}}";
    let date = tp.date.now("YYYY-MM-DD");
    await tp.file.rename(`& ${date} ${title}`);
_%>

some of the issues people have been having is likely related to protected characters in the paper's file name that obsidian isn't liking

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tallguyjenks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants