zsh-users
 help / color / mirror / code / Atom feed
From: "Owen M. Astley" <oma1000@cam.ac.uk>
To: zsh-users@sunsite.auc.dk
Subject: Re: feature-request of double-tab-list
Date: Thu, 28 Jan 1999 16:55:24 +0000 (GMT)	[thread overview]
Message-ID: <Pine.OSF.3.96.990128165415.23213A-100000@alpha2.poco.phy.cam.ac.uk> (raw)

On Thu, 28 Jan 1999, Bart Schaefer wrote:
> Way way back on Sep 19,  5:36pm, Rasmus Tengblad wrote:
> } Subject: feature-request of double-tab-list
> }
> } First i'd like to tell you that I really like zsh. Best shell there is!
> } However, there is one small thing I like better about bash, and that's the
> } double-tab-press or what ever you'd want to call it. It's sort of like zsh
> } with AUTO_LIST set, but with the exception that you have to press tab
> } twice before the list is displayed.
> 
> OK, Sven, can we implement this using the new completion stuff?  What, if
> any, hooks are there for keeping track of the first vs. the second press
> of the completion key within the same completion?

Moved from zsh-workers to zsh-users.
This is what I have in my .zshrc:

######################################################################
# emulate bash

# do not automatically list ambiguous completion
# instead, use TAB as complete-word and TAB-TAB as list-choices
# redefine KEYTIMEOUT to be shorter to facilitate this
# for some reason I need to do bindkey ^I^I twice (?)
unsetopt AUTO_LIST
KEYTIMEOUT=15
bindkey "^I^I" list-choices
bindkey "^I" expand-or-complete
bindkey "^I^I" list-choices

# do beep on ambiguous completion
setopt LIST_BEEP

-- 
Owen



                 reply	other threads:[~1999-01-28 16:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=Pine.OSF.3.96.990128165415.23213A-100000@alpha2.poco.phy.cam.ac.uk \
    --to=oma1000@cam.ac.uk \
    --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).