[][src]Constant tp_note::config::TMPL_SYNC_FILENAME

const TMPL_SYNC_FILENAME: &str = "\
{{ sort_tag | path }}{% if sort_tag | path != '' %}-{% endif %}\
{{ title | path(alpha=true) }}{% if subtitle | path != '' %}--{% endif %}\
{{ subtitle | path  }}.{{ note_extension | path }}\
";

Default filename-template to test, if the filename of an existing note file on disk, corresponds to the note's meta data stored in its front matter. If it is not the case, the note's filename will be renamed. Can be modified through editing the configuration file. Useful variables in this context are: {{ sort_tag | path }} {{ 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 '. {{ sort_tag | path }} must be the first in line here, then followed by a {{ <var>| path(alpha) }} variable. Note, that in this filename-template, all variables must be filtered by a path or path(alpha=true) filter.