From 819bb61d7917245ff84949d1b9ca1e47f978b237 Mon Sep 17 00:00:00 2001 From: Kevin Stadler Date: Sat, 17 Apr 2021 19:19:55 +0800 Subject: [PATCH 1/2] Add support for labelling waiting tasks, and default label (W) --- vit/formatter/markers.py | 2 +- vit/markers.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vit/formatter/markers.py b/vit/formatter/markers.py index 8c500ca..cc72a04 100644 --- a/vit/formatter/markers.py +++ b/vit/formatter/markers.py @@ -92,7 +92,7 @@ def format_blocking(self, width, text_markup): return self.add_label(color, label, width, text_markup) def format_status(self, width, text_markup, status): - if status == 'completed' or status == 'deleted': + if status == 'completed' or status == 'deleted' or status == 'waiting': color = self.colorizer.status(status) label = self.labels['%s.label' % status] return self.add_label(color, label, width, text_markup) diff --git a/vit/markers.py b/vit/markers.py index b493e32..dba7f1f 100644 --- a/vit/markers.py +++ b/vit/markers.py @@ -31,6 +31,7 @@ 'uda.label': '', 'uda.priority.label': '(PR)', 'until.label': '(U)', + 'waiting.label': '(W)', } class Markers(object): From 8aaf4d6332ef5fc73af971a4cbd6f82c2f18fcc8 Mon Sep 17 00:00:00 2001 From: Kevin Stadler Date: Sat, 17 Apr 2021 19:21:23 +0800 Subject: [PATCH 2/2] Add new waiting default label (and previously omitted until default label to sample config --- vit/config/config.sample.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vit/config/config.sample.ini b/vit/config/config.sample.ini index fdd23f2..c426672 100644 --- a/vit/config/config.sample.ini +++ b/vit/config/config.sample.ini @@ -141,6 +141,8 @@ #uda.label = #uda.priority.label = (PR) #uda.[uda_name].label = +#until.label = (U) +#waiting.label = (W) [color]