From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users@sunsite.auc.dk
Subject: two completion questions
Date: Fri, 10 Dec 1999 18:40:36 +0100 [thread overview]
Message-ID: <19991210184036.A29989@br-online.de> (raw)
Hi!
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:
hamster:/tmp/zsh>ls -l
total 0
-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
hamster:/tmp/zsh>ls -l
Now: (cursor position at "_")
hamster:/tmp/zsh>cat a_<TAB>
leads to
hamster:/tmp/zsh>cat a _
However I would expect zsh to do this:
hamster:/tmp/zsh>cat a_
file
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:
hamster:/tmp/zsh>cd .._<TAB>
This just beeps instead of leading to this:
hamster:/tmp/zsh>cd ../_
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...)
hamster:/tmp>echo zshab_
...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!!!
Andy.
--
E-Mail: Andy@spiegl.de 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."
next reply other threads:[~1999-12-10 17:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-10 17:40 Andy Spiegl [this message]
1999-12-10 18:33 ` Bart Schaefer
1999-12-13 10:54 ` Zefram
1999-12-14 15:17 ` Andy Spiegl
1999-12-13 10:33 Sven Wischnowsky
1999-12-14 15:48 Sven Wischnowsky
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=19991210184036.A29989@br-online.de \
--to=zsh.andy@spiegl.de \
--cc=zsh-users@sunsite.auc.dk \
/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).