summaryrefslogtreecommitdiffstats
path: root/fish2024/functions/_extract_description_from_task.fish
blob: 0b82d9d480d9994d64c76652982ef79fb68dc574 (plain) (blame)
1
2
3
4
5
function _extract_description_from_task --description 'Given a taskwarrior task ID, it returns the description of the task and adds it to clipboard'
  set desc (task $argv[1] |grep Description |cut -d' ' -f4-)
  echo $desc |xclip
  echo $desc
end