Zsh Mailing List Archive
Messages sorted by:
two completion questions
- X-seq: zsh-users 2765
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: two completion questions
- Date: Fri, 10 Dec 1999 18:40:36 +0100
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
I switched to zsh a few month ago and I like it better every day!
There are just two annoying things:
When completing filenames that start with the same prefix which I have
typed already, zsh doesn't show me the other possibilities. It's a bit
difficult to explain. I'll better show you an example:
-rw-r----- 1 spiegl users 0 Dec 10 18:16 a
-rw-r----- 1 spiegl users 0 Dec 10 18:16 ab
-rw-r----- 1 spiegl users 0 Dec 10 18:16 abc
Now: (cursor position at "_")
hamster:/tmp/zsh>cat a _
However I would expect zsh to do this:
a ab abc
Maybe there is a switch I missed?
The other problem is that zsh doesn't append a / after .. although it's a
directory. Here's an example again:
This just beeps instead of leading to this:
Actually this just reminded me of a third annoyance. :-)
zsh removes a (previously completed) / or a space in the middle of the
input line after C-e or C-a. Example again:
hamster:/tmp>echo ab_ (then I go back two columns...)
hamster:/tmp>echo _ab (...insert a directory...)
hamster:/tmp>echo zs_ab (...press TAB...)
hamster:/tmp>echo zsh/_ab (...now Ctrl-E to go to the end of line...)
...and zsh removed the slash. :-(
The same happens if I let zsh not only complete the directory but a file.
The appended space is removed as soon as I move the cursor.
Off course "unsetopt AUTO_REMOVE_SLASH" removes this behavior, but then the
slash is never removed. I would expect zsh to remove the slash/space only
if there is no character below (or to the right of) the cursor. Am I wrong?
But otherwise I really love zsh! Thanks for the great work!!!
E-Mail: Andy@xxxxxxxxx URL: http://andy.spiegl.de
PGP/GPG: see headers
o _ _ _
--------- __o __o /\_ _ \\o (_)\__/o (_)
------- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/
------ (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_
This is a message from God: "Rebooting the universe, please log off."
Messages sorted by: