mo-seph / obsidian-note-from-template

Simple plugin to create Notes from a template, and fill in fields defined there
MIT License
107 stars 9 forks source link

Is it possible to specify the order of fields in the editor modal? #42

Open scorchio opened 2 years ago

scorchio commented 2 years ago

I'm just getting started with this plugin, and tried to start with putting together some basics for a personal music catalog with a template like this:

---
template-filename: "{{artist}} - {{title}}"
template-output: music/tracks
template-should-replace: "never"
template-should-create: "open"
artist: "{{artist}}"
title: "{{title}}"
---
# {{artist}} - {{title}}

When the dialog pops up, for some reason, the fields are ordered so that title comes first:

Képernyőfotó 2022-08-22 - 20 00 34

Would it be possible to specify the order somehow, or at least respect the order of appearance in the template file?

mo-seph commented 9 months ago

Ah - it should generally respect the order it finds fields in the file, it's just that Title is special and always at the top.