Hard code it in the template. If I had two similar topics I regularly created notes on, but a field varied between the two, I would make two near-identical templates with these fields hard coded in the template.
Remove default fields like {{title}}. I don’t have it listed anywhere in my template (I want to construct a custom title using an ID number. I could just use Title for the ID number but it’s not very descriptive.
Change the order of the fields in the popup window?
Parse one field to get variables to use for other fields?
Extra Credit: Remove certain characters from a field (i.e. so they can be used in the filename).
Also a slight bug. When creation of a file fails, it blocks input into the whole Obsidian app necessitating a restart of the app. Not a huge deal for me, but can be annoying.
I haven’t been able to get a template to work. I just want a fixed title to plus today’s title in the name of the note:
---
template-output: Life Plan Journal
tags: lifeplan
template-filename: {{now:currentdate:dd-MM-yyyy}} - Life Plan Journal
template-should-replace: "never"
template-should-create: "open-pane"
---
@mo-seph wondering if I could get some guidance after going through the docs, still not quite sure.
This thread looks like it has not been attended too in some time but… here we go.
I want to prompt for a project in the template and then use that as a part of the template output. My template (as well as the many others I have tried) does not work. Is tis possible? How would I accomplish what I want?
Added in support for escaping delimiters in fields (e.g. hh\:mm\:ss for a time value)
Added in descriptions for fields with a | character, e.g {{field|description}} which will be shown in the template UI.
Another refactor - codebase is cleaner, uses Obsidian markdown/YAML parsing for frontmatter, gives better handling of list properies etc.
Added initial suggestion support: now a tags field will suggest existing tags, and other fields will suggest internal links if [[ is entered.
Quality of life improvements:
Allow calling template even if not in an open editor (Note: can’t replace text in e.g. Kanban fields, but in those cases copies replacement to Clipboard)
Better error handling
Better filename support
Added option to open file in new Tab
Can use {{properties}} in template-output (e.g. template-output: Projects/{{project}} to put files in project directories)
The same functionality but with more flexibility can be achieved using templater + modal forms plugins.
Just letting people know so they chan chooose the tool that fits them best
Not saying is better. Some people may prefer the approach fo this plugin, some other people will prefer more customizability. Having options is what makes Obsidian great