zsh-users
 help / color / mirror / code / Atom feed
From: David B Harris <david@eelf.ddts.net>
To: zsh-users@sunsite.dk
Subject: Re: The removal of spaces after a tab-complete
Date: Sun, 22 Dec 2002 21:29:18 -0500	[thread overview]
Message-ID: <20021222212918.1ad0a19d.david@eelf.ddts.net> (raw)
In-Reply-To: <1021223012821.ZM13386@candle.brasslantern.com>

[-- Attachment #1: Type: text/plain, Size: 1825 bytes --]

On Mon, 23 Dec 2002 01:28:21 +0000
"Bart Schaefer" <schaefer@brasslantern.com> wrote:
> You can't turn it off.  You can only forcibly defeat it.  You can
> either define your own completions with auto-suffix-removal disabled,
> for every situation in which you don't want this to happen; or you can
> re-bind the specific keys for which, when typed after a completion, it
> should not happen.  The latter is probably easier:

I suspected as much, at least for the auto-suffx-removal stuff; after I
read largish portions of zshcomp*(1), I got worried ;)

>     function self-insert-no-autoremove {
>       LBUFFER="$LBUFFER$KEYS"
>     }
>     zle -N self-insert-no-autoremove
>     bindkey '|' self-insert-no-autoremove
> 
> The reasons why you can't turn it off are varied and in some instances
> nearly lost in the mists of time, but it boils down to something like:
> (1) it was automatically added, so it's not costing you keystrokes if
> it automatically goes away again; (2) the absence of the space doesn't
> matter to the syntax; (3) there are more cases where leaving the space
> is wrong, than cases where removing it is wrong; so (4) if you really
> want a space there, you can just type one yourself.

Thanks a bunch for the help :) I appreciate it a lot.

P.S.: For the other poster to this tread asking why I needed it off, the
answer is: "I don't". I don't need it off, I want it off. I do a lot of
shell script writing for my work, and I do the prototypes live in an
interactive shell. Once I've poked it enough, I copy and paste it into
the shell script. Spaces around punctuation make things much more
readable. Have you tried to maintain a 50k shell script that wasn't
formatted nicely? :) I've just been having to go through re-editing the
paste, and it proves irritating. That's all. No "need" involved.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-12-23  4:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-22  1:32 David B Harris
     [not found] ` <3E052DBC.7050107@cql.com>
     [not found]   ` <20021222054028.282f9ef2.david@eelf.ddts.net>
     [not found]     ` <3E060557.7070207@cql.com>
2002-12-22 22:33       ` David B Harris
2002-12-23  0:52 ` Geoff Wing
2002-12-23  1:28 ` Bart Schaefer
2002-12-23  2:29   ` David B Harris [this message]
2002-12-23  5:34     ` Zefram

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=20021222212918.1ad0a19d.david@eelf.ddts.net \
    --to=david@eelf.ddts.net \
    --cc=zsh-users@sunsite.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).