zsh-users
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: Completion in the first character position
Date: Tue, 25 Jul 2000 15:39:25 +0200 (MET DST)	[thread overview]
Message-ID: <200007251339.PAA08266@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Oliver Kiddle's message of Tue, 25 Jul 2000 14:14:37 +0100


Oliver Kiddle wrote:

> I am writing a shell script where I'm prompting the user to enter
> various information. I'm using vared to read what is entered into a
> variable after using compctl -C to setup completions (and a setopt
> autolist). I could have used the new style completions but it is a
> fairly simple case and I use 3.0.8 where the script will run.
> 
> The problem is that when I press tab to complete in the first character
> position, a tab is inserted and the completions are not listed. This is
> handy at the normal zsh prompt because listing all the commands can be
> time consuming but in my script, it is annoying.
> 
> Is there an option or something to turn this off? I've looked through
> the manual but can't see one. As a feature, it is probably less useful
> with the new completion system because the same can be achieved with a
> style anyway.

Yes, since this is possible in the new completion system (even the
default there, inside vared), I guess we won't add an option for it.

You can use a trick. The tab is only inserted if the last character in 
the key binding used to call the completion code was a tab. So:

  bindkey -s '\t' '\ec'  # or something better than \ec
  bindkey '\ec' complete-word

Ok?

And now you wish for vared-local keymaps, of course ;-)


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


         reply	other threads:[~2000-07-25 13:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-25 13:14 Oliver Kiddle
2000-07-25 13:39 ` Sven Wischnowsky [this message]
2000-07-25 15:39   ` 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=200007251339.PAA08266@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.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).