From 2010f94f046803ed1bc7765eb10b95d7774dd947 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 5 Feb 2024 08:09:15 +0000 Subject: Adds new fish function for extracting the description of a taskwarrior task --- fish2024/functions/_extract_description_from_task.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 fish2024/functions/_extract_description_from_task.fish (limited to 'fish2024/functions') diff --git a/fish2024/functions/_extract_description_from_task.fish b/fish2024/functions/_extract_description_from_task.fish new file mode 100644 index 0000000..0b82d9d --- /dev/null +++ b/fish2024/functions/_extract_description_from_task.fish @@ -0,0 +1,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 -- cgit v1.2.3