Skip to content

Add HiddenTagFilter#131

Merged
bram85 merged 3 commits intotopydo:masterfrom
minchinweb:hidden-tag
Aug 30, 2016
Merged

Add HiddenTagFilter#131
bram85 merged 3 commits intotopydo:masterfrom
minchinweb:hidden-tag

Conversation

@minchinweb
Copy link
Contributor

Use the h:1 tag to hide items from being listed

Includes tests (existing tests were adjusted to test for the expected behavior)

@codecov-io
Copy link

codecov-io commented Jun 3, 2016

Current coverage is 97.31% (diff: 94.11%)

Merging #131 into master will increase coverage by 0.05%

@@             master       #131   diff @@
==========================================
  Files            50         50          
  Lines          2589       2605    +16   
  Methods           0          0          
  Messages          0          0          
  Branches        410        415     +5   
==========================================
+ Hits           2518       2535    +17   
+ Misses           43         41     -2   
- Partials         28         29     +1   

Powered by Codecov. Last update 86eb39d...6408ee5

"""
Constructor.

A filter which selects a number of Todo instances from a TodoList
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation matches the preceding filter.

@minchinweb
Copy link
Contributor Author

@bram85 : Fixes added!

Use the `h:1` tag to hide items from being listed
@minchinweb
Copy link
Contributor Author

Rebased to v0.10 release

A filter which hides items marked with the approriate tag.
"""
super().__init__()
self.todos = p_todos
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.todos is not used, so I'd remove it from the constructor.

@bram85
Copy link
Member

bram85 commented Aug 24, 2016

Looks good as far as I can see, bar a minor remark on an unused variable.

Personally I use the h tag to hide an item just for one day, for instance I write h:2016-08-24 in a todo item and have a column defined in column mode with filter +Project -h:today. Could be a future extension.

@minchinweb
Copy link
Contributor Author

@bram85 : I've removed the unused variable. I think we're good to go then!

@bram85
Copy link
Member

bram85 commented Aug 30, 2016

Thanks :)

@bram85 bram85 merged commit a7c495b into topydo:master Aug 30, 2016
@minchinweb minchinweb deleted the hidden-tag branch October 26, 2016 01:41
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

Successfully merging this pull request may close these issues.

3 participants