aziz / PlainTasks

An opinionated todo-list plugin for Sublime Text editor (version 2 and 3)
MIT License
3.29k stars 286 forks source link

[feature request] Fold/Filter by completed tags under cursors #410

Open arkadianriver opened 4 years ago

arkadianriver commented 4 years ago

Hi!

I Love PlainTasks, thank you so much for it! It's the reason I have Sublime Text 3 installed.

request

If you think it's a good idea (and if I'm not missing something), I'd like to see the Filter by tags under cursors feature extended for @done items as well.

reason

I've used PlainTasks for a while and have gotten into the habit of keeping one long ToDo list, tagging it with my project names. (I used to use Project headings, but have since abandoned it because I prefer to have only one queue to look at than to hop between project sections.) I've recently learned of the Filter by tags under cursors feature and it's a life saver for my behavior, when I do need to see what's due for a particular project.

One thing about this behavior, however, is that I cannot Archive by project. In fact, I prefer to not archive by project anyway, but sorted by date instead. Yet I would like to review my @done list to see what I've accomplished for each project, such as at end-of-year evaluations. ;-)

design

A simple removal of the trailing if 'pending' ... condition in this list comprehension seems to do the trick, but of course that's not backward compatible :O) https://github.com/aziz/PlainTasks/blob/676c85952bba2209a395840244051cbf57f0a238/PlainTasks.py#L945

Perhaps providing an option to fold just the done items for the tags separately would be better, with a completely separate UI-command / context-menu option, like Filter by completed tags under cursors. What do you think?