![]() This means many features are missing and there are plenty of bugs. We cannot stress enough that Starbase launches into Early Access in a clear "alpha" state. This ensures it gets the rename, and leaves the rest of the template cleaner and more to the point of the actual content of the resulting note.“Starbase is an ambitious game and we want to involve the whole community in the development process. Note that in the example I’m renaming the file at the start within the pre-amble, so that I’m done with it early on. This example asks for the title, uses that to rename the file accordingly, and then proceeds to add a frontmatter with a title (as entered), and a date field with a proper date format, so that if you want to query this file using Dataview it’ll have an actual date (readily available in file.day, instead of the “random” number in the file title.Īlternatively, you could use the ISO8601 date format in the title, with something like tp.date.now("YYYY-MM-DDHH:mm") + title ), but not everyone like that format (although it’s the format which is most reliable in other contexts). But fear not, you don’t need to do it that way, and the version below show how this is commonly done using a pre-amble where you ask for information, and then re-use that information later on. I think that setting the name of a note to a value that was set via templater’s “suggester” and also having that name in the note itself would be be a pretty common thing.Įven though Templater is capable of reading stuff out of the frontmatter, it’s not capable of setting it and reading it at the same time. In a new note → run the Templates/Templater command → choose the template from the correct modal list → the template will be applied or with Templater it may prompt you for input depending on what you’ve written in the template.Ĭreating the name (via suggester), in the frontmatter and then using rename at the end of the note to rename to frontmatter: (I keep these folders in a “meta” area along with my folder for attachments and other Obsidian related stuff). Once you’ve made your Templates and Templater templates and set the folders accordingly in settings, you don’t need to interact with those folders again unless you want to adjust the templates. Yes, the naming isn’t ideal and confusing at first I’ve also tried the opposite, using suggester at the beginning of the note template and then using either tp.file.title or syntax go in Templates-core Templater templates with the Creating the name (via suggester), in the frontmatter and then using rename at the end of the note to rename to frontmatter:īut that doesn’t work as the tp.frontmatter.title at the end of the note is “undefined”.I don’t want to have to ask for the name twice, but I would like the note to include the name of the game and have the name of the game in the note as meta data. I am using suggester to capture information about the item (game, in this case). However, the new note has the name “Untitled”.If I right-click on the “Games” folder name in the folder view and select “New Note”, the note is created and the “Computer Game” template applied.I create a folder, then a template, then add the “Folder/Template” pair to the templater settings (e.g., a Games folder, a Computer Game template). ![]() I’m a little confused on how people actually create notes when using templates/templater: I’m new to Obsidian and just started looking into using Templater to create some structured notes (like an inventory of computer games, subscriptions, tech devices, etc.). ![]()
0 Comments
Leave a Reply. |