From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19245 invoked from network); 10 Apr 1998 18:03:31 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 10 Apr 1998 18:03:31 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA03246; Fri, 10 Apr 1998 14:00:31 -0400 (EDT) Resent-Date: Fri, 10 Apr 1998 13:56:35 -0400 (EDT) Message-ID: <19980410105852.63390@home.chat.net> Date: Fri, 10 Apr 1998 10:58:52 -0700 From: Scott RoLanD To: zsh-users@math.gatech.edu Subject: improving the mail compctl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e Resent-Message-ID: <"_jDRm3.0.0n.JrbBr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1446 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Up until now I have been using the mail compctl found in the zshcompctl man page: compctl -u -x 's[+] c[-1,-f],s[-f+]' -g '~/Mail/*(:t)' \ - 's[-f],c[-1,-f]' -f -- mail elm mutt My current mailer is mutt and I keep a seperate folder for everyone I mail. This gets messy if I let everything fall in my ~/Mail directory, so I have started creating directories under that like: ~/Mail/friends ~/Mail/family ~/Mail/work ~/Mail/lists So now I would like to modify the above compctl to support tab completion for the following: mutt -f +family/dad but since the above compctl uses (:t) I'm out of luck. Is there any nice way to do this; or do I have to create a function that does an ls? I realize I will also have to seperate the "mutt dad" case from the "mutt -f +family/dad" case, but that isn't my worry right now... Thanks, RoLanD