mikaeljorhult / brackets-todo

Brackets/Edge Code extension that displays all TODO comments in current document or project.
144 stars 37 forks source link

Check-box to mark "done" on the tasks. #7

Open apintocr opened 11 years ago

apintocr commented 11 years ago

Would be nice to add a check-box so we can mark the TODO Tasks as "done". Feature could be extended to allow inline edit of the given task, directly on the results panel.

mikaeljorhult commented 11 years ago

As the comments are stored in the source itself I don't think that a checkbox would be he right choice. When clicking it the task would be removed from the file and therefore also removed from the list. A link deleting the comment would make more sense as it's not a toggle.

apintocr commented 11 years ago

I was thinking about adding something Like [×] and checking it via regex.

Utitlity is because you can Mark it as Done to keep track of what you have done. Every tasklist uses this philosofy.

When marked it just greys out and strikethrough.

apintocr commented 11 years ago

Also, sometimes what you fixed isnt really fixed and you need to track back.

mikaeljorhult commented 11 years ago

Okay, that makes sense but I think most developers would expect it to remove it from the code as this is how it's done when doing it by hand.

A solution might be to add a check symbol (✓), to have the task marked as done and kept in source, and a times symbol (×) to have the task removed from source.

clouddueling commented 10 years ago

I love this idea if: // TODO Create this feature.

became:

// [DONE] TODO Create this feature.

If this could just have a checkmark next to it I'd have nothing to complain about and a history of fixes in this document without reading through git commit history.

screen shot 2013-11-05 at 8 30 39 am

ghost commented 10 years ago

The checkbox will be very useful if it swap the "[x]" value in the comment (as the "[x]" is already working).

mikaeljorhult commented 10 years ago

That's the way I plan to implement it.

mikaeljorhult commented 7 years ago

I've been experimenting with this and I haven't found a nice and clean way to write to the files.

I would recommend just deleting the comment once a task is done as there's probably no reason to have todos in your code that has been completed.

Feel free to pull request this if you have ideas!