zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: 4.0.1: menucomplete quirk leaving extra characters behind
Date: Wed, 13 Jun 2001 11:32:45 +0100	[thread overview]
Message-ID: <3B27414D.23F93922@u.genie.co.uk> (raw)
In-Reply-To: <010612171703.ZM24869@candle.brasslantern.com>

Bart Schaefer wrote:
> 
> > (Btw, on Solaris the characters are ``!='' instead.)
> 
> I keep on hitting TAB I see #= and $= and *=.  This is actually a bug, I
> guess, because those parameters are read-only and so you shouldn't be able
> to complete them on the left side of an assignment, but menucompletion is

Yes, it is arguably a bug, though not hard to fix. This will still offer
@= and *= because they are not readonly but you can't assign to them
this way. I'll commit this to the stable branch later unless anyone
objects.

> Ah; you (may) want
>       zstyle ':completion:*' insert-tab true

I use this:
zstyle -e ':completion:*:*:-command-:*' tag-order '
    [[ -n $PREFIX$SUFFIX || $1 = messages ]] || 
        { reply=( - ); _message "not with an empty word" }'

which has the advantage of working in other places where commands are
completed such as after noglob. It depends on why you don't want
completion at that position - I don't because it tends to be slow with
several thousand commands.

Oliver

Index: Completion/Zsh/Type/_command_names
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Type/_command_names,v
retrieving revision 1.1
diff -u -r1.1 _command_names
--- Completion/Zsh/Type/_command_names  2001/04/02 11:17:31     1.1
+++ Completion/Zsh/Type/_command_names  2001/06/13 10:28:19
@@ -22,7 +22,7 @@
     'aliases:alias:compadd -k aliases'
     'reserved-words:reserved word:compadd -k reswords'
     'jobs:: _jobs -t'
-    'parameters:: _parameters -qS= -r "\n\t\- =["'
+    'parameters:: _parameters -g "^*readonly*" -qS= -r "\n\t\- =["'
   )
 fi


  parent reply	other threads:[~2001-06-13 10:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-12 22:37 Jos Backus
2001-06-13  0:17 ` Bart Schaefer
2001-06-13  0:46   ` Jos Backus
2001-06-13  2:23     ` Bart Schaefer
2001-06-13  6:22       ` Jos Backus
2001-06-13 10:32   ` Oliver Kiddle [this message]
2001-06-13 16:27     ` Bart Schaefer
2001-06-13 16:58       ` Peter Stephenson
2001-06-13 17:58         ` Bart Schaefer
2001-06-13 18:48           ` Peter Stephenson
2001-06-14  0:40             ` Bart Schaefer
2001-06-14  9:43               ` Peter Stephenson

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=3B27414D.23F93922@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@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).