Open Jopp-gh opened 1 month ago
I'm not sure if you already know this and maybe I'm misinterpreting what you've written, but there is a way to create templates.
Settings > Core Plugins > Templates > Template folder location Create a folder and select it in the path. Create your templates and add them to the folder. On the far left of the left pane, there's an insert template button. Click that and a list of your templates will pop up. You need to have the text box selected in order to insert a template. It will not insert if you just have the file selected, or if your cursor is over the title. Therefore, it unfortunately doesn't work for multiple new files. However, you could also copy existing files once you've added the template, if you need mass template creation.
Thank you for your nice and careful written answer. 🌞
I guess you were talking about the "Auto template trigger" community plugin and the core template plugin integrated into Obsidian ?
With my feature request I tried to explain, that templates are very handy and should be the preferred mode to insert quickly automatic yaml headers.
The current implementation of "multiple properties" adds a GUI which asks for custom settings, each and every time. Basically, I'd like to have more options in the preferences of "multiple properties" and to configure there, the path to my yaml templates or custom yaml properties.
Now if I click on "add props to selected files", I don't wanna see any dialog : "multiple properties" should add automatically the yaml template which I specified before in its preferences.
sorry if my first post is misleading, this request is about automatic properties and the "multiple properties" plugin, not about the "Auto template trigger" plugin or any other template plugin, be it core or community shared.
Ah, I gotcha! I hope I didn't misimply anything: I can't actually help with this. Not the coding part at all. I hope your request gets addressed though!
On Sun, 20 Oct 2024 at 04:30, Jopp-gh @.***> wrote:
Thank you for your nice and careful written answer. 🌞
I guess you were talking about the "Auto template trigger" community plugin and the core template plugin integrated into Obsidian ?
With my feature request I tried to explain, that templates are very handy and should be the preferred mode to insert quickly automatic yaml headers.
The current implementation of "multiple properties" adds a GUI which asks for custom settings, each and every time. Basically, I'd like to have more options in the preferences of "multiple properties" and to configure there, the path to my yaml templates or custom yaml properties.
Now if I click on "add props to selected files", I don't wanna see any dialog : "multiple properties" should add automatically the yaml template which I specified before in its preferences.
sorry if my first post is misleading, this request is about automatic properties and the "multiple properties" plugin, not about the "Auto template trigger" plugin or any other template plugin, be it core or community shared.
— Reply to this email directly, view it on GitHub https://github.com/technohiker/obsidian-multi-properties/issues/31#issuecomment-2424827585, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATIQNYOQ4PL2GRYO7NTA6LTZ4OA5XAVCNFSM6AAAAABPYQEM5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUHAZDONJYGU . You are receiving this because you commented.Message ID: @.***>
adding properties to single, existing notes should be automatic, if desired or use a popup button to choose templates
This is already possible with the Templates core plugin. Define a template with yaml headers in your Template folder. Next go to the top line of your note(below the title, above any notes you typed in) and use the Insert Template hotkey.(no hotkey by default, you'll need to bind your own). You'll be prompted to select a note from your Template folder. From there you select the note with the desired yaml template, and the note will have those Property names.
For multiple notes, I'd prefer a popup button to choose from "property templates" I made.
The Templater community plugin has similar functionality where a template will automatically be added to a new note in a specified folder. However, there is currently no functionality for mass-adding a template to all existing notes in a folder/selection.
I still plan on making the GUI the only way you interact with Multi-Properties. However, I'm going to look into whether or not I can get the plugin to look for a specified Template file, and have it load into the GUI. If it works, this should strike a good compromise.
and use the Insert Template hotkey.
That's the point. Your plugin should insert favorite yaml templates automatically.
I know how to add yaml templates, the process is simple but requires multiple steps; call cmd palette, type my fav yaml template, enter. A plugin should do all these steps automatically with the right preferences but without my interaction when I create notes. This is one way I'd suggest to apply yaml headers. Second, to come up with a popup to give users a choice to choose the right yaml header to insert or to customize all yaml properties individually.
Adding custom property fields to a folder with notes is nice, but way too slow and awkward on the long run.
For multiple notes, I'd prefer a popup button to choose from "property templates" I made.
Also, adding properties to single, existing notes should be automatic, if desired or use a popup button to choose templates