pajoma / vscode-journal

Lightweight journal and simple notes support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pajoma.vscode-journal
GNU General Public License v3.0
233 stars 40 forks source link

Write memos and tasks in chronological order #77

Open mjbain10 opened 3 years ago

mjbain10 commented 3 years ago

When adding a new memo/task, the new item is inserted directly under the heading (or whatever is configured for the "after" template pattern) and above any previous items. So the items end up in reverse chronological order (newest first).

It would be great if there was a way to configure memos/tasks to be appended to the end of a section so that the order is chronological.

I'm loving this extension btw, it's pretty much exactly what I've been looking for. Thanks!

pajoma commented 3 years ago

It is certainly possible, but kind of tricky

Let us consider the following example

# Tasks
- [] task 1
- [x] task2
>> 1
- [x] manually added task 3
>> 2

## next subsection
- [x] my other manually added task 4

# next section 

Where should we place the new task?

Maybe we could trim the tasks list before adding new tasks, e.g. removing all empty lines, move all completed tasks to the top