From: "Zefram" <zefram@tao.co.uk>
To: sr@pc-plus.de (Stephen Riehm)
Cc: zsh-users@math.gatech.edu
Subject: Re: zsh - new user with questions
Date: Tue, 18 Aug 1998 17:43:25 +0100 (BST) [thread overview]
Message-ID: <199808181643.RAA14631@diamond.tao.co.uk> (raw)
In-Reply-To: <C1256664.00540607.00@bavaria3.pc-plus.de> from "Stephen Riehm" at Aug 18, 98 05:33:42 pm
Stephen Riehm wrote:
> - extended completion. I'm terribly used to never having to type
>UPPERCASE letters, and using
>
> extreme short cuts. ie: with tcsh's enhanced completions, to complete
>the file named: ReadMe.First
>
> all I would type id: r.f<tab> - is there a way to do this sort of
>thing in zsh?
You can do these things with a completion function. Look at `multicomp'
in the zsh distribution.
> - I tried use ls ***/*(/l2) to find all the empty directories in a
>tree, but it didn't work, instead it counted the number
>
> of directories in each directory (I think, I wasn't quite sure what it
>was doing)
You probably want "ls -d" or "echo" or something like that. Plain "ls"
will list the *contents* of directories listed on the command line.
> occaisonally I want to perform completions which are normally
>disallowed by compctl. The simplest example is
> cd. "compctl -g '*(-/)' cd" will complete nicely, unless I want to cd
>into a hidden (dot) directory. Then it doesn't
> complete at all. Is it possible to say that it should complete
>non-hidden directories, unless the text typed indicates
> otherwise, ie: if I type "cd <tab>", I get a list of all the normal
>directories, but if I then type .<tab> it should use the
> . and show me all the directories beginning with .
compctl -/ cd
-zefram
next prev parent reply other threads:[~1998-08-18 16:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-18 15:33 Stephen Riehm
1998-08-18 16:17 ` Matthew Lovell
1998-08-18 16:28 ` Peter Stephenson
1998-08-18 22:46 ` David Hedbor
1998-08-19 1:21 ` Bart Schaefer
1998-08-18 16:43 ` Zefram [this message]
1998-08-19 12:34 Stephen Riehm
1998-08-19 13:53 ` Goran Larsson
1998-08-19 16:03 ` Bart Schaefer
1998-08-19 15:09 Stephen Riehm
1998-08-19 17:35 ` Goran Larsson
1998-08-19 19:18 ` Bart Schaefer
1998-08-19 19:58 ` Roland Jesse
1998-08-20 9:47 ` Andrej Borsenkow
1998-08-20 11:27 Stephen Riehm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199808181643.RAA14631@diamond.tao.co.uk \
--to=zefram@tao.co.uk \
--cc=sr@pc-plus.de \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).