Create daily journal based on the previous one containing tasks and habits

I use quite a lot daily notes that contains tasks that I have to complete and habits that I want to track.


About the tasks, there is a section like this:

# 17/06/2020
... other stuff
## Tasks
    - [ ] Do A
    - [x] Do B
    - [ ] Do C
... other stuff

That day or the next one, it would be great to create a new note automatically, based on the previous one. The goals that have been completed should not be there. While the other one yes.

# 18/06/2020
... other stuff
## Tasks
    - [ ] Do A
    - [ ] Do C
... other stuff

About the habits, that changes. In fact, every single line should be there, but with the x that represents that completion, removed.

# 17/06/2020
... other stuff
## Habits
    - [x] Habit A
    - [x] Habit B
    - [ ] Habit C
    - [x] Habit D
... other stuff

The next day, the new journal should contain:

# 18/06/2020
... other stuff
## Habits
    - [ ] Habit A
    - [ ] Habit B
    - [ ] Habit C
    - [ ] Habit D
... other stuff
4 Likes

I just published a simple plugin Habit Tracker to handle my daily habits. But the way is not different as you do.

screemshot

It’s just a code block. Every day I’ll update the block.