dendron
dendron copied to clipboard
Add additonal helper for handlebars-Templates
Please select if your request is either something new or an enhancement
- [x] Enhancement of an existing Feature.
- [ ] Request of a new feature.
Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)
- [ ] Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
- [ ] Lookup - Dendron's Lookup Command
- [ ] Views - Dendron Preview, Tree View, Side Panels in the UI
- [x] Schema - Dendron Schemas
- [ ] Pod - Data import from / export to Dendron
- [ ] Publish - External Site Publish
- [ ] Markdown - Markdown features, such as syntax support and features
Is your feature request related to a problem? Please describe
Currently I do create journal-notes up-front, meaning for several days in advance. Right now I can use the CURRENT_* variables as well as the title to show the title in the note as well. This is not working, since the CURRENT_* variables just show todays date and not the selected date.
the fnameToDate is fine, but is showing a whole date, whereas I just would like to show the day, the month and possibly the year in my specific locale-format.
So, when i do create a note for say the 2023-09-09, I would like to show this date in my note as eg. 09.09.2023.
Describe the solution you'd like
When creating a journal note in advance (meaning for an upcoming day several weeks ahead, e.g.), I would like to use a variable or mechanism to print the date of the note in a specific format.
Describe alternatives you've considered
tried already to use the fnameToDate and the functions available to this prototype, but to no avail.
Thanks @triplem for the suggestion - @kevinslin / @tma66 for viz on handlebar template enhancements.
One more thought on this one. Probably it would be a good idea, to make the helpers extendable by users, so that users can provide their own helpers. Common helpers could be shared in the community.
Other tools provide the CURRENT_*-Variables as well and do provide the currently selected date in these variables, probably this could be a way to provide this functionality without relying on the date provided in the filename?