Taskw: Remove any number for search to work

This commit is contained in:
Jeremy Gardais 2021-11-16 10:02:21 +01:00
parent 5f467eb1ed
commit 65b4028556
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ display_current_task() { # {{{
## Display active tasks list and get title from the choosen one ## 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}" | 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) ID=$(task "${TITLE}" simpleid | grep --after-context=2 -- ID | tail --lines=1 || return 0)
## Remove temp file ## Remove temp file