Taskwarrior: Display newest task first

This commit is contained in:
gardouille 2021-10-12 09:33:42 +02:00
parent bfcf7fb83d
commit 0f34b99451
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ display_current_task() { # {{{
# }}}
select_task() { # {{{
## Display pending tasks list and get title from the choosen one
TITLE=$(task status:pending export | jq -r 'sort_by( -.urgency )[] | [ (.id|tostring), .description ] | join(" ")' |
TITLE=$(task status:pending export | jq -r 'sort_by( -.urgency )[] | [ (.id|tostring), .description ] | join(" ")' | sort --numeric-sort --reverse |
rofi -location 2 -no-auto-select -i -dmenu -p "Task" -color-enabled -color-normal "${black},${blue},${black},${blue},${black}" -color-window "${black},${black}" |
cut --delimiter=" " --field=2)