[][src]Constant tp_note::config::TMPL_NEW_FILENAME

const TMPL_NEW_FILENAME: &str = "\
{{ now() | date(format='%Y%m%d') }}-\
{{ title | path(alpha=true) }}{% if subtitle | path != '' %}--{% endif %}\
{{ subtitle | path  }}.{{ note_extension | path }}\
";

Default filename-template for a new note file on disk. It satisfies the sync criteria for note-meta data in front-matter and filename. Useful variables in this context are: {{ title| path }}, {{ subtitle| path }}, {{ note_extension| path }}, All variables also exist in a {{ <var>| path(alpha) }} variant: in case its value starts with a number, the string is prepended with '. The first non-numerical variable must be some {{ <var>| path(alpha) }} variant. Note, that in this filename-template, all variables must be filtered by a path or path(alpha=true) filter.