dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.67k stars 252 forks source link

Expand template variables to include deep-copy references from other notes #2263

Open al7arthi opened 2 years ago

al7arthi commented 2 years ago

Please select if your request is either something new or an enhancement

Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Is your feature request related to a problem? Please describe

Not a problem but could be a very useful feature that supplements issue #2241

Describe the solution you'd like

I suggest expanding the template variables to include syntax for copying reference blocks from other notes. With deep copying instead of referencing, I can update or change the source content without affecting my previous notes and journals. This would allow including specific references in daily journals from other notes, such as a list of weekly affirmations that can updated periodically. In addition, I suggest adding the ability to include date variables in the block reference, which can be useful in selecting certain items for certain days of the week. Finally, if a line can be selected randomly from a block, that can be used to add a random quote of the day to daily journals.

Describe alternatives you've considered

Hooks.

Additional context

n.a

hikchoi commented 2 years ago

Thank you for the feature request.

Could you elaborate on what you mean by deep copy?

Do you mean grabbing the current state of the referenced source and resolving them into actual text where the template variables exist?

hikchoi commented 2 years ago

pinging @tma66 for visibility on template variable substitution enhancements.

al7arthi commented 2 years ago

Thank you for the feature request.

Could you elaborate on what you mean by deep copy?

Do you mean grabbing the current state of the referenced source and resolving them into actual text where the template variables exist?

Yes, that is exactly what I meant. By resolving the variable into actual text, journal content won't change when the content of the referenced note is changed.