Commit 3773c9ae authored by Bram Schoenmakers's avatar Bram Schoenmakers

%z is now a color block

All sensible one-letter abbreviations are already taken (c for color, p for progress, h for hue, ...)
parent 2fe9110c
......@@ -22,6 +22,7 @@ import re
from six import u
from topydo.lib.Config import config
from topydo.lib.Colorblock import color_block
from topydo.lib.Utils import get_terminal_size
MAIN_PATTERN = (r'^({{(?P<before>.+?)}})?'
......@@ -191,6 +192,8 @@ class ListFormatParser(object):
# relative completion date
'X': lambda t: 'x ' + humanize_date(t.completion_date()) if t.is_completed() else '',
'z': color_block
}
self.format_list = self._preprocess_format()
......
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