Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh - new user with questions
- X-seq: zsh-users 1733
- From: David Hedbor <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx (Zsh users list)
- Subject: Re: zsh - new user with questions
- Date: 18 Aug 1998 15:46:46 -0700
- In-reply-to: Peter Stephenson's message of "Tue, 18 Aug 1998 18:28:45 +0200"
- References: <199808181628.SAA21807@xxxxxxxxxxxx>
Peter Stephenson <pws@xxxxxx> writes:
> need to handle .'s in the way /'s are handled there. Ignoring case
> may happen one day, but I doubt there's ever going to be a built-in
> way of saying 'look and see if there are any characters preceeding a
> dot to be added earlier on in the completion'. Maybe you would be
> interested in the options automenu and menucomplete. You'll have
> to find the shift key, however. Do 'setopt automenu', type R,
> and hit tab until it works.
I am having similar problems, but with /. Example with bash (^ denotes
the location of the cursor):
bash-2.01$ ls /usr/loc/bi
^
Pressing tab gives:
bash-2.01$ ls /usr/local/bi
^
With zsh:
ls /usr/loc/bi => beep
^
ls /usr/loc/bin => /usr/local/bin/
^ ^
ls /usr/loc/bin/ => /usr/local/bin//
^ ^
So problem one is that local is not expanded if the path segment after
it doesn't exist. The second problem is that zsh adds a "/" at the end
of the path - always. I'd prefer if it didn't add one at all or at
least just one (the infinite number of added slashes is clearly a
bug).
The third problem is something that often bites me hard:
bash: ls /usr/lobin => /usr/local/bin
^
bash: ls /usr/lobin => beep
^
Ie zsh can't complete the path if the cursor is not on a slash. It
would be really nice if it completed from the character it was on,
even if it's not a slash.
This it he last "grudge" I have against zsh since switching from bash.
--
David Hedbor
Messages sorted by:
Reverse Date,
Date,
Thread,
Author