dhruvasagar / vim-dotoo

Org-mode like task logging & time tracking in Vim
558 stars 27 forks source link

Fix tag filter autocomplete to properly handle multiple tags on same headline. #119

Closed kristijanhusak closed 3 years ago

kristijanhusak commented 3 years ago

Today I noticed that headlines that have multiple tags are not properly parsed for tag filter in agenda.

For example, if I have these tasks:

* TODO Private task :PRIVATE:
* TODO Office task :OFFICE:PROJECT:
* TODO General office task :OFFICE:

When I select filter by tags and start to autocomplete, before it would show this:

PRIVATE
OFFICEPROJECT
OFFICE

With this fix it shows this:

PRIVATE
OFFICE
PROJECT

Also, before it didn't filter depending on the input (typing P and pressing TAB shows all results), now it filters them down only to PRIVATE and PROJECT.

dhruvasagar commented 3 years ago

@kristijanhusak I am aware of this issue :). I started working on it, but I ran into some very weird viml issue. i'll merge your changes for now, and try to fix my tags parser in the near future separately.

kristijanhusak commented 3 years ago

Thanks. It's a small change, so hopefully it shouldn't affect your work.