mikaeljorhult / brackets-todo

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

Sort the todo list also by task completed / not completed ? #60

Closed fmaida closed 10 years ago

fmaida commented 10 years ago

Your extension is great, it saved me a lot of time and work. However, I see that by default the tasks are sorted by the line number in which they appear. I tried to have a look at your documentation to see if it's possible to change this order but I wasn't able to find nothing on this subject. Is it possible to sort the tasks by displaying first the non completed task and only after the tasks that were already completed ?

For example, actually I could have this situation in a script:

LINE: 15 TODO: First thing to do LINE: 17 TODO: [x]Second thing to do LINE: 19 TODO: Third thing to do

I'd like to display the list in this order:

LINE: 15 TODO: First thing to do LINE: 19 TODO: Third thing to do LINE: 17 TODO: [x]Second thing to do

__todo__brackets

_todo__brackets

Thank you

mikaeljorhult commented 10 years ago

There is no way to sort the tasks in any other order than line number right now. It seems like a good idea though so I'll have a look at it.

fmaida commented 10 years ago

Thank you. As you could imagine I find it easier to see first the tasks still undone because IMHO it helps me to focus better on the things I still have to do on the code. If possible I think that it would be nice if your extension could also sort the tasks in this order:

1) Completed / Not completed 2) Label name ("TODO", "FIXME", ...) 3) Line number on which the TODO element appears

Thank you

tomByrer commented 10 years ago

:+1:

mikaeljorhult commented 10 years ago

This feature is now available in the current master branch and will be in the next version.

tomByrer commented 10 years ago

Sweet! Cheers On Aug 31, 2014 12:53 PM, "Mikael Jorhult" notifications@github.com wrote:

This feature is now available in the current master branch and will be in the next version.

— Reply to this email directly or view it on GitHub https://github.com/mikaeljorhult/brackets-todo/issues/60#issuecomment-53997499 .

fmaida commented 10 years ago

Thank you !