Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

~child:child:template=... and deeper child-template not applied automatically #1023

Open
yuliu opened this issue Jan 21, 2025 · 0 comments
Open

Comments

@yuliu
Copy link

yuliu commented Jan 21, 2025

Description

~child:child:child:template=... works in the daynotes (journal) section automatically when used with Open Today's Journal Note.

~child:template=... or ~child:template(inheritable)=... works in the section having this label when a new note is created in or under the section and the template is auto applied, which is expected behavior.

But ~child:child:template=..., ~child:child:child:template=..., or any other deeper child template relation label doesn't allow the template to be applied automatically to notes created as a child note of a child note of the section having the label.

To visualize, I have a tree like this:

parent note
  |- child note 1
  |    |- sub-child note x
  |- myTemplate
  • parent note has a label ~child:child:template=myTemplate
  • myTemplate defines the template and has a label #template

What I want to do is to automatically apply the myTemplate template when adding a note under child note 1 using the "+" sign button on it.

Of course this can be done by parent note having a relation label ~child:template(inheritable)=... but I don't want child notes creating under sub-child note x to auto apply the template.

TriliumNext Version

0.90.12

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

Windows 11

Error logs

No response

@pano9000 pano9000 changed the title (Bug report) ~child:child:template=... and deeper child-template not applied automatically ~child:child:template=... and deeper child-template not applied automatically Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant