diff --git a/misc/userscripts/taskadd b/misc/userscripts/taskadd index 99f2a35b7..a60dbcdd7 100755 --- a/misc/userscripts/taskadd +++ b/misc/userscripts/taskadd @@ -28,11 +28,8 @@ msg="$(task add $title $@ 2>&1)" if [[ $? == 0 ]]; then - # scan the output for the new task number - num=$(echo $msg | sed -r 's/Created task ([0-9]+)\./\1/') - # annotate the new task with the url, send the output back to the browser - task $num annotate "$QUTE_URL" + task +LATEST annotate "$QUTE_URL" echo "message-info '$msg'" >> $QUTE_FIFO else echo "message-error '$msg'" >> $QUTE_FIFO