mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
use plain mode for listings in _todo.sh
This commit is contained in:
parent
cc8575a270
commit
83c54a59fd
@ -1,3 +1,8 @@
|
||||
2006-10-20 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Completion/Unix/Command/_todo.sh: use plain
|
||||
mode for getting completino lists.
|
||||
|
||||
2006-10-23 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 22896: Src/Zle/complete.mdd: rename Mandrake to
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user