* compctl for pine
@ 1996-07-13 21:07 Timothy J. Luoma
1996-07-13 23:13 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Timothy J. Luoma @ 1996-07-13 21:07 UTC (permalink / raw)
To: zsh-users
I am trying to setup 'compctl' for use with pine, and another for
telnet/ftp. However, I really don't know how compctl works, and
have never tried to tackle one on my own before.
there's basically two things I want to do:
1) pine [tab]
and 'tab's will run through a list of email addresses.... However,
I don't know how to setup such a list of email addresses for compctl
to look for.
2) pine -f [tab]
where 'tab's will list folders found in ~/Mailboxes/pine
I think if I can find out how to do #1 for pine I can figure out
how to apply that to ftp/telnet.
Would anyone be willing to help me put this together, or refer me
to some reading materials (especially examples) OTHER than the man
page, which I read already...
TIA
TjL
--------------------------------------------------------------------
Timothy J. Luoma <luomat@nerc.com>
NeXTMail adored! (MIME/SUN also accepted)
NeXT info via email: send message with SUBJECT: send-ascii info
Now in infancy: http://www.nerc.com/~luomat
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compctl for pine
1996-07-13 21:07 compctl for pine Timothy J. Luoma
@ 1996-07-13 23:13 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1996-07-13 23:13 UTC (permalink / raw)
To: luomat, zsh-users
On Jul 13, 5:07pm, Timothy J. Luoma wrote:
} Subject: compctl for pine
}
} I am trying to setup 'compctl' for use with pine, and another for
} telnet/ftp. However, I really don't know how compctl works, and
} have never tried to tackle one on my own before.
}
} Would anyone be willing to help me put this together, or refer me
} to some reading materials (especially examples) OTHER than the man
} page, which I read already...
Look in Misc/compctl-examples in the zsh 3.0-pre2 distribution. Of
particular interest is the compctl for "mail" and "elm":
compctl -u -x 's[+] c[-1,-f],s[-f+]' -g '~/Mail/*(:t)' - \
's[-f],c[-1,-f]' -f -- mail elm
The -u completes user names (e.g. local email addresses) as the default
behavior. The -x ... - part turns the `+' character immediately after
`mail -f' into an abbreviation for ~/Mail/, so you can complete folder
names. The 's[-f] ...' -f part causes files in the current directory
to be completed after -f when no `+' abbreviation is present.
If you want to complete email addresses other than local user names, you
have two choices:
1. Use `compctl -K somefunction' where `somefunction' outputs the list
of addresses you want; or
2. Stuff the addresses into a zsh array variable (e.g. `Eaddresses') and
use `compctl -k Eaddresses'.
BTW, zsh-workers, either something about backslashes in single quotes
changed, or something about quoting of completed strings changed, in
3.0. My CVS entry in Misc/compctl-examples needs the following fix.
Have the other examples been checked for such changes in zsh behavior?
*** Misc/compctl-examples.0 Fri Jul 5 10:57:42 1996
--- Misc/compctl-examples Sat Jul 13 16:03:41 1996
***************
*** 401,407 ****
# log assumes gnu rcs
compctl -k "($cvscmds $cvsflags)" \
! -x "c[-1,-D]" -k '(today yesterday 1\\\ week\\\ ago)' \
- "r[add,;]" -k "(-k -m)" -f \
- "r[admin,;]" -K cvstargets \
- "r[checkout,;]" -k "(-A -N -P -Q -c -f -l -n -p -q -s -r -D -d -k -j)" \
--- 401,407 ----
# log assumes gnu rcs
compctl -k "($cvscmds $cvsflags)" \
! -x "c[-1,-D]" -k '(today yesterday 1\ week\ ago)' \
- "r[add,;]" -k "(-k -m)" -f \
- "r[admin,;]" -K cvstargets \
- "r[checkout,;]" -k "(-A -N -P -Q -c -f -l -n -p -q -s -r -D -d -k -j)" \
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-07-13 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-13 21:07 compctl for pine Timothy J. Luoma
1996-07-13 23:13 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).