]> git.madduck.net Git - etc/taskwarrior.git/blobdiff - .bin/task_call

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

exec viewer
[etc/taskwarrior.git] / .bin / task_call
index eda77d03370618212542f0126711420852af746b..efc91495c1fe0c06b97fb9e959e010738786a0b2 100755 (executable)
@@ -15,7 +15,7 @@ DATAPAYL="${DATA#*:}"
 case "$DATATYPE" in
   ('')
     echo >&2 I: No link data available for this task.
-    task "$TSK"
+    exec task "$TSK"
     ;;
 
   (msgid)
@@ -23,20 +23,20 @@ case "$DATATYPE" in
     ;;
 
   (url)
-    sensible-browser "$DATAPAYL"
+    exec sensible-browser "$DATAPAYL"
     ;;
 
   (file)
     if eval test -f "$DATAPAYL"; then
       case "$(file --mime-type "$DATAPAYL")" in
-        (*": text/"*) eval sensible-editor "$DATAPAYL";;
-        (*) eval run-mailcap --action=edit "$DATAPAYL";;
+        (*": text/"*) eval exec sensible-editor "$DATAPAYL";;
+        (*) eval exec run-mailcap --action=view "$DATAPAYL";;
       esac
     fi
     ;;
 
   (*)
-    eval run-mailcap --action=edit "$DATAPAYL"
+    eval exec run-mailcap --action=view "$DATAPAYL"
     ;;
 
 esac