From 3b0b4ffe66608e6c9749a6d19fa2d124df2267d0 Mon Sep 17 00:00:00 2001 From: Bryan Bugyi Date: Fri, 16 Mar 2018 03:28:44 -0400 Subject: [PATCH] Fix: restrict output of `task` to one line (closes #3726) --- misc/userscripts/taskadd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/userscripts/taskadd b/misc/userscripts/taskadd index b1ded245c..c7c7d8c67 100755 --- a/misc/userscripts/taskadd +++ b/misc/userscripts/taskadd @@ -25,7 +25,7 @@ [[ $QUTE_MODE == 'hints' ]] && title=$QUTE_SELECTED_TEXT || title=$QUTE_TITLE # try to add the task and grab the output -if msg="$(task add "$title" "$*" 2>&1)"; then +if msg="$(task add "$title" "$*" 2>&1 | head -n 1)"; then # annotate the new task with the url, send the output back to the browser task +LATEST annotate "$QUTE_URL" echo "message-info '$msg'" >> "$QUTE_FIFO"