brackets-todo icon indicating copy to clipboard operation
brackets-todo copied to clipboard

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

Open apintocr opened this issue 11 years ago • 8 comments

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.

apintocr avatar Aug 05 '13 14:08 apintocr

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.

mikaeljorhult avatar Aug 08 '13 07:08 mikaeljorhult

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 avatar Aug 08 '13 08:08 apintocr

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

apintocr avatar Aug 08 '13 08:08 apintocr

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.

mikaeljorhult avatar Aug 08 '13 08:08 mikaeljorhult

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

clouddueling avatar Nov 05 '13 16:11 clouddueling

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

ghost avatar Nov 21 '13 14:11 ghost

That's the way I plan to implement it.

mikaeljorhult avatar Nov 21 '13 14:11 mikaeljorhult

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!

mikaeljorhult avatar Mar 30 '17 19:03 mikaeljorhult