jplattel / obsidian-query-language

An Obsidian plugin allowing you to query your notes
176 stars 6 forks source link

[Feature Request] Change the syntax of the `template:` keyword #29

Open TenviLi opened 3 years ago

TenviLi commented 3 years ago

In the future, there will be more and more special fields in various types of templates.

In order to prevent confusion when writing at the same level, it is recommended to indent and write the special fields under the template: keyword.

old syntax

template: 'table'
fields: ['index']

new syntax

template:
    type: 'table'
    fields: ['indexβ€˜]

Would it be more comfortable to write like this πŸ˜‰πŸ˜‰πŸ˜‰