Open pankajgarkoti opened 1 month ago
The general idea of dynamic templates for your journal is covered in a external module neorg-templates which I highly recommend. And implementing some sort of task carryover would be best done in that plugin I think.
I attempted a "task carryover" feature myself dots. Unfortunately, the way I wanted to do this with Treesitter is inconsistent b/c of a bug in the TS parser that prevented matching something that looked like this:
** heading with a specific name
- ( ) tasks after a blank line
As far as implementation details, you could search for all todo items very easily with just a single TS query if you don't care about what heading they're under, then you could just return them from a function that you turn into a snippet node in neorg-templates.
You could then contribute that function to neorg-templates, or just keep it for yourself and share it in a discussion in the neorg-templates repo.
Issues
Feature description
I have a journal template that I use daily, and I would like to streamline the process of creating new journal entries by automatically transferring tasks from the previous day.
Current Template
Entry for
2024-09-24
Entry for
2024-09-25
Want
As shown in the examples, I want to:
Implementation Suggestion
Is this already possible in Neorg? If not, would this be a feature the community is interested in? Otherwise, I plan to implement it as a macro in my configuration.
Help
Yes, but I don't know how to start. I would need guidance
Implementation help