brackets-todo
brackets-todo copied to clipboard
Check-box to mark "done" on the tasks.
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.
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.
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.
Also, sometimes what you fixed isnt really fixed and you need to track back.
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.
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.
The checkbox will be very useful if it swap the "[x]" value in the comment (as the "[x]" is already working).
That's the way I plan to implement it.
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!