rhysd / notes-cli

Small markdown note taking CLI app playing nicely with your favorite editor and other CLI tools
MIT License
218 stars 26 forks source link

add 'note continue' function to append date of edit #15

Open MatthewCroughan opened 4 years ago

MatthewCroughan commented 4 years ago

This would be a killer feature. Imagine you have one note named repair-log, in it you are logging what you have done step-by-step to repairing an item you have at home. This is already much like a Github issue, wherein I comment as I accomplish things and the date of the comment is logged, but the issue name and number remains the same.

Currently, if I do notes new repairs repair-log it makes the note. I should be able to pick this note up again tomorrow by typing notes continue repairs repair-log, or something of that nature. Additionally, the file should append another header to the end of the file which includes the current date if 24 hours have passed since the note was last continued.

My expected notes would look like this after some time:

repair-log
====
- Category: repair
- Tags:
- Created: 2020-07-14T17:12:31+01:00

Did some stuff
I also did some things
Need to order some m3 nuts

> Continued: 2020-07-21T12:35:40+01:00

Received order of m3 nuts
Seems to work properly after testing