atom-tasks
atom-tasks copied to clipboard
Taskpaper and support for notes?
I use the taskpaper-syntax for my tasks. According to the "TaskPaper’s File Format" (http://imissmymac.com/wp-content/uploads/2013/02/TaskPaper-Users-Guide.pdf) there are not only projects, tags and todos, but also notes:
A note is any line that doesn't match the task or project rules.
It would be helpful if notes were colored in a more subtle tone. I helped myself with this little piece in my styles.less:
atom-text-editor::shadow, atom-text-editor {
.todo {
// Notes
color: @text-color-subtle;
}
.tasks {
// Tasks
&.text { color: @text-color-highlight; }
// Projects
&.header { color: @text-color-warning; }
}
}
Although I'm totally fine with that solution I think it would be cool if the tasks-package supported it out of the box.
What sort of behavior happens to the notes when you complete/cancel a task? Does the highlighting change? When archiving a task with a note, what would the expected behavior be there? Your solution is a great start, thanks!
I can answer how notes work on the PlainTasks plugin:
What sort of behavior happens to the notes when you complete/cancel a task? Does the highlighting change?
No, the notes always have the same style, no matter the status of the task it's related to.
When archiving a task with a note, what would the expected behavior be there?
The note is linked to the task. If the task is archived, the note is moved to the archive too, always keeping it's position on the line after the task.
Thanks, @barmatal! I'll have to take a look at this. Can't make any promises quite yet :)
I added a basic support for notes in a fork if some people are interested.
I define a note as a block of text on the next line(s) following a task and not containing empty lines. It does what you would expect when archiving a task, it simply copy the note (if available) associated to this task.
Definitely not the most advanced implementation but it does the job and fits my needs.

@HiDeoo: You should consider a pull request so we can review and maybe merge this in! Get it to a state where you think it's really solid and submit the request if you are interested :)
Here's an example of how Notes are styled in the Taskpaper app.

Have there been any updates regarding this feature in the Atom tasks package?
+1 for this comments/notes feature. Any updates?