From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Better completion in quotes
Date: Fri, 04 Jun 1999 11:32:24 +0200 [thread overview]
Message-ID: <9906040932.AA23015@ibmth.df.unipi.it> (raw)
In-Reply-To: "Sven Wischnowsky"'s message of "Fri, 04 Jun 1999 11:33:52 DFT." <199906040933.LAA03117@beta.informatik.hu-berlin.de>
Sven Wischnowsky wrote:
> So, as a much simpler solution I suggest to make the completion
> code turn strings with quotes into a generic quoted form, using
> backslashes. But it is a bit ugly that
>
> % ls 'foo b<TAB>
>
> would be turned into foo\ bar. If this is unacceptable, we could
> treat strings beginning with a quote as a special case and have the
> code re-insert the quote at the beginning and automatically insert
> the closing quote, that wouldn't be too hard, but I'm not sure I
> like this special casing. I could be convinced, though.
This seems to me the key issue in making it work the way people are
expecting, so I'm not too unhappy about the idea of this being a special
case. It's preferable to the horror of handling quotes in the middle of
words properly, which I can easily believe is too much work. But I think
it's also preferable to swapping the quotes for backslashes in this case:
it works neatly the way most users will try most of the time, and it offers
you some way of having your quotes left as they are; and bash has this
problem too, only worse as it just beeps if there's a quote in the middle
of the word. So long as the documentation is explicit about "foo' b" and
"'foo b" completing differently, I would say let them have quotes.
(I would hazard a guess there are not a few users around who don't even
know you can stick quotes in the middle of words... it wasn't obvious to me
when I first came to UNIX some time ago. People may even think changing
those is a feature. "Urgh, someone's stuck some quotes in the middle of
the word. It would look much better with backslashes...")
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next prev parent reply other threads:[~1999-06-04 10:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-04 9:33 Sven Wischnowsky
1999-06-04 9:32 ` Peter Stephenson [this message]
1999-06-04 16:47 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
1999-06-01 10:37 Sven Wischnowsky
1999-05-27 11:10 Some possible bugs Sven Wischnowsky
1999-05-31 23:21 ` Better completion in quotes Bart Schaefer
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=9906040932.AA23015@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@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).