diff options
author | tv <tv@krebsco.de> | 2019-01-16 20:34:10 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-01-16 20:39:22 +0100 |
commit | ce1baf93f264a43971130abca4b3dd3f485a17d9 (patch) | |
tree | 3d998215b991db7b804e92d66db4afe20eaf7235 /tv/5pkgs/simple/q | |
parent | 0ef96fc0cf8bf85be36f2911923a91143a484fdc (diff) |
tv q-todo: highlight urgent stuff
Diffstat (limited to 'tv/5pkgs/simple/q')
-rw-r--r-- | tv/5pkgs/simple/q/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tv/5pkgs/simple/q/default.nix b/tv/5pkgs/simple/q/default.nix index 0e2aecb27..7906b968f 100644 --- a/tv/5pkgs/simple/q/default.nix +++ b/tv/5pkgs/simple/q/default.nix @@ -278,7 +278,11 @@ let 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 ''} |