Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arkadianriver opened this issue Mar 23, 2020 · 0 comments
Open

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

arkadianriver opened this issue Mar 23, 2020 · 0 comments

Comments

@arkadianriver
Copy link

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)

tasks = [self.view.line(f) for f in self.view.find_all(r'[ \t](%s)' % '|'.join(tags)) if 'pending' in self.view.scope_name(f.a)]

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant