tv q-todo: highlight urgent stuff
This commit is contained in:
parent
0ef96fc0cf
commit
ce1baf93f2
@ -278,7 +278,11 @@ let
|
|||||||
|
|
||||||
select(now >= $date) |
|
select(now >= $date) |
|
||||||
|
|
||||||
"\u001b[38;5;208m\(.)\u001b[m"
|
($text | test("\\[URGENT]"; "i")) as $urgent |
|
||||||
|
(if $urgent then "38;5;196" else "38;5;208" end) as $sgr |
|
||||||
|
if $urgent then sub("\\s*\\[URGENT]\\s*"; " "; "i") else . end |
|
||||||
|
|
||||||
|
"\u001b[\($sgr)m\(.)\u001b[m"
|
||||||
) |
|
) |
|
||||||
if length == 0 then "nothing to remind" else .[] end
|
if length == 0 then "nothing to remind" else .[] end
|
||||||
''}
|
''}
|
||||||
|
Loading…
Reference in New Issue
Block a user