atom-tasks icon indicating copy to clipboard operation
atom-tasks copied to clipboard

Taskpaper and support for notes?

Open pheraph opened this issue 10 years ago • 7 comments

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.

pheraph avatar Nov 10 '15 14:11 pheraph

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!

irrationalistic avatar Nov 12 '15 03:11 irrationalistic

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.

barmatal avatar Jan 26 '16 14:01 barmatal

Thanks, @barmatal! I'll have to take a look at this. Can't make any promises quite yet :)

irrationalistic avatar Jan 26 '16 21:01 irrationalistic

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.

screenshot 2016-06-29 19 31 43 screenshot 2016-06-29 19 32 29

HiDeoo avatar Jun 29 '16 17:06 HiDeoo

@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 :)

irrationalistic avatar Jul 20 '16 21:07 irrationalistic

Here's an example of how Notes are styled in the Taskpaper app.

2017-09-08 at 2 43 pm

Have there been any updates regarding this feature in the Atom tasks package?

mmerline avatar Sep 08 '17 19:09 mmerline

+1 for this comments/notes feature. Any updates?

jose avatar Jun 05 '19 20:06 jose