Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: feature-request of double-tab-list
- X-seq: zsh-users 2060
- From: "Owen M. Astley" <oma1000@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: feature-request of double-tab-list
- Date: Thu, 28 Jan 1999 16:55:24 +0000 (GMT)
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author