From 65b4028556d0e1c99b2d1ba5095adaad0cf77601 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 16 Nov 2021 10:02:21 +0100 Subject: [PATCH] Taskw: Remove any number for search to work --- rofi-task.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rofi-task.sh b/rofi-task.sh index e74c203..8ed622d 100755 --- a/rofi-task.sh +++ b/rofi-task.sh @@ -32,7 +32,8 @@ display_current_task() { # {{{ ## Display active tasks list and get title from the choosen one TITLE=$(rofi -location 2 -lines 5 -no-auto-select -i -dmenu -p "RUNNING task(s)" -color-enabled -color-normal "${blue},${black},${blue},${black},${blue}" -color-window "${blue},${blue}" < "${TASKW_CURRENT_LIST}" | - cut --delimiter=" " --field=2) + cut --delimiter=" " --field=2 | + sed "s/[0-9]//g") ID=$(task "${TITLE}" simpleid | grep --after-context=2 -- ID | tail --lines=1 || return 0) ## Remove temp file