about summary refs log tree commit diff
path: root/Completion/Unix/Command/_todo.sh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-10-23 17:09:24 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-10-23 17:09:24 +0000
commit83c54a59fd03f6c80b477e9feec3edc57affac17 (patch)
tree1963b0eeb8612a945e7f85310d04bf55a4b30fb0 /Completion/Unix/Command/_todo.sh
parentcc8575a270c291c5dfa093fd608a97f3c32178f0 (diff)
downloadzsh-83c54a59fd03f6c80b477e9feec3edc57affac17.tar.gz
zsh-83c54a59fd03f6c80b477e9feec3edc57affac17.tar.xz
zsh-83c54a59fd03f6c80b477e9feec3edc57affac17.zip
use plain mode for listings in _todo.sh
Diffstat (limited to 'Completion/Unix/Command/_todo.sh')
-rw-r--r--Completion/Unix/Command/_todo.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_todo.sh b/Completion/Unix/Command/_todo.sh
index 2b6b444ee..455bb3d85 100644
--- a/Completion/Unix/Command/_todo.sh
+++ b/Completion/Unix/Command/_todo.sh
@@ -52,7 +52,7 @@ case $state in
   case $words[NORMARG] in
     (append|del|do|prepend|pri|replace)
     if (( NORMARG == CURRENT - 1 )); then
-      itemlist=(${${(M)${(f)"$(todo.sh list)"}##<-> *}/(#b)(<->) (*)/${match[1]}:${match[2]}})
+      itemlist=(${${(M)${(f)"$(todo.sh -p list)"}##<-> *}/(#b)(<->) (*)/${match[1]}:${match[2]}})
       _describe -t todo-items 'todo item' itemlist
     else
       case $words[NORMARG] in
@@ -67,7 +67,7 @@ case $state in
 	fi
 	;;
 	(replace)
-	compadd -Q -- "${(qq)$(todo.sh list "^0*${words[CURRENT-1]} ")##<-> }"
+	compadd -Q -- "${(qq)$(todo.sh -p list "^0*${words[CURRENT-1]} ")##<-> }"
 	;;
       esac
     fi
@@ -116,7 +116,7 @@ case $nextstate in
   # This completes stuff beginning with p: (projects) or @ (contexts);
   # these are todo.sh conventions.
   _wanted search expl 'context or project' \
-    compadd ${${=${${(M)${(f)"$(todo.sh list)"}##<-> *}##<-> }}:#^(p:*|@*)}
+    compadd ${${=${${(M)${(f)"$(todo.sh -p list)"}##<-> *}##<-> }}:#^(p:*|@*)}
   ;;
 esac