dotfiles/.config/fish/functions/push_tasks.fish

9 lines
357 B
Fish
Raw Normal View History

function push_tasks -d 'Push tasks as a notification to your phone'
2020-08-15 23:20:08 +00:00
set tasks (task +READY export |
jq 'sort_by(.urgency) |
reverse |
map(@text "\(.description)\nLink: \(.link)\nWiki: http://wiki.m/\(.wiki)\nDue: \(.due)") |
2020-08-15 23:20:08 +00:00
join("\n\n")')
send_push $tasks
end