[][src]Constant tp_note::config::TMPL_CLIPBOARD_FILENAME

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

Default filename template used when the clipboard contains a string. Useful variables in this context are: {{ title| path }}, {{ subtitle| path }}, {{ note_extension| path }}, {{ year| path }}, {{ month| path }}. {{ day| 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.