1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 16:40:29 +01:00

update _pine for pine 4.33, add echoti completion and update _echotc (14567)

This commit is contained in:
Oliver Kiddle 2001-05-30 11:54:53 +00:00
parent c78b01db57
commit 13476e2a86
5 changed files with 24 additions and 7 deletions

View file

@ -16,16 +16,19 @@ fi
sortorder=( {subject,arrival,date,from,size}{,/reverse} )
lusortorder=( dont-sort {nickname,fullname}{,-with-lists-last} )
opts=( -h -F -conf -create_lu -pinerc ) # exclusive options
opts=( -h -v -F -conf -create_lu -pinerc -copy_abook -copy_pinerc) # exclusive options
idx=( -f -c -i -I -n -o -sort ) # options used when viewing messages
send=( -attach -attachlist -attach_and_delete -url ) # options when sending
_arguments -C -s \
"($opts $idx $send -bail -k -z -r -p -P *)-h[display help]" \
"($opts $idx $send -bail -d -k -z -r -p -P *)-h[display help]" \
"($opts $idx $send -bail -d -k -z -r -p -P *)-v[display version information]" \
"($opts $idx $send -r *)-F+[specify file to open and page through]:file:_files" \
"($opts $idx $send *)-conf[print out fresh global configuration]" \
"($opts $idx $send *)-pinerc[put fresh pinerc configuration in file]:file:_files" \
"($opts $idx $send *)-create_lu[create .lu from script]:addressbook file:_files:sort order:(${(j: :)lusortorder})" \
"($opts $idx $send *)-copy_pinerc:pinerc file:_files:remote folder" \
"($opts $idx $send *)-copy_abook:addressbook file:_files:remote folder" \
"($opts $idx -url)-attach[go directly into composer with given file]:file:_files" \
"($opts $idx -url)-attachlist[go to composer with given files]:file:_files" \
"($opts $idx -url)-attach_and_delete[go to composer, attach file, delete when finished]:file:_files" \
@ -37,11 +40,13 @@ _arguments -C -s \
"($opts $send)-I+[specify initial keystrokes to be executed]:keystrokes" \
"($opts $send)-n+[entry in index to begin on]:number:_guard '[0-9]#'" \
"($opts $send)-o[open first folder read-only]" \
"(-F -h)-r[restricted - can only send mail to oneself]" \
"(-F -h -v)-r[restricted - can only send mail to oneself]" \
"(-h -v)-d[set debug level]:debug:(0 1 2 3 4 5 6 7 8 9 flush timestamp imap= numfiles= verbose=)" \
"(${opts#-F})-k[force use of function keys]" \
"(${opts#-F})-z[allow use of ^Z suspension]" \
"(${opts#-F})-p+[use alternate .pinerc file]:alternate pinerc:_files" \
"(${opts#-F})-P+[use alternate pine.conf file]:alternate pine.conf:_files" \
"(${opts#-F})-x[use configuration exceptions file]:configuration exceptions file:_files" \
"(${opts#-F})-bail[exit if pinerc file doesn't already exist]" \
'*::recipient:->userhost' \
${^_cache_pine_options}':option value' && return 0