Commit e59fa7fe authored by Bram Schoenmakers's avatar Bram Schoenmakers

Let 'ls' subcommand filter on dependencies.

parent 4ee641d9
......@@ -155,7 +155,8 @@ class Application(object):
def list(self):
sorter = Sorter.Sorter(Config.SORT_STRING)
filters = [Filter.RelevanceFilter()]
filters = [Filter.RelevanceFilter(),
Filter.DependencyFilter(self.todolist)]
if len(sys.argv) > 2:
filters.append(Filter.GrepFilter(sys.argv[2]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment