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

what about filtering? #48

Open
colinsullivan opened this issue Mar 9, 2016 · 5 comments
Open

what about filtering? #48

colinsullivan opened this issue Mar 9, 2016 · 5 comments

Comments

@colinsullivan
Copy link
Contributor

What about the ability to filter arbitrarily, kind of like the todo.sh ls works?

Perhaps a command you run:

:todo.txt-filter @mytag +myProject

Would then re-order the file with all of the tasks matching the query on top, and the rest in a fold below?

I have little insight into how to accomplish this with vim+python and how the folding API works. Any thoughts?

@colinsullivan
Copy link
Contributor Author

ping

@freitass is this out of scope in your opinion?

@freitass
Copy link
Owner

Hi @colinsullivan, I didn't have the time to think about it yet. There were some attempts to implement something similar to this but I think your suggestion is the "least invasive" one. Wouldn't just sorting by context/project do the job?

@colinsullivan
Copy link
Contributor Author

For example,

I want to see all my tasks in the +Next project, that have both contexts
@work and @email.

If todo.txt-vim could put them all sorted together that would be good
enough for me. My understanding is that this is not possible because
todo.txt-vim is choosing an arbitrary method for resolving lines with
multiple @contexts (just choosing the first one?)

It's approaching something like this:

https://github.com/AnthonyDiGirolamo/todotxt-machine

I'm not sure if that's where you want to go :)


Colin

On Mon, Mar 21, 2016 at 3:14 AM, Leandro Freitas notifications@github.com
wrote:

Hi @colinsullivan https://github.com/colinsullivan, I didn't have the
time to think about it yet. There were some attempts to implement something
similar to this but I think your suggestion is the "least invasive" one.
Wouldn't just sorting by context/project do the job?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#48 (comment)

@lgalke
Copy link

lgalke commented Sep 19, 2016

Hey @colinsullivan ,
Just to let you know, I recently published gather-todo.txt, an extension to this plugin here.
The core functionality is gathering and merging multiple todo.txt files (in a directory tree) in a scratch buffer. Thus, enabling some kind of agenda view in a temporary buffer.

As a nice side-effect, you can easily perform filtering in this scratch buffer with vim's basic functionality:

  • v/@interesting/d : Drop any todo items not containing the interesting context
  • g/+boringproject/d : Drop any todo items from the boring project.

Maybe this helps. I would be happy to receive some kind of feedback, what further functionality the plugin should provide (dispatching?, caching?).

Best Regards,
lgalke

@myrdd
Copy link

myrdd commented Mar 29, 2019

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

4 participants