Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tab inserts spaces instead of complete by default
- X-seq: zsh-users 14852
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sébastien Pierre <sebastien.pierre@xxxxxxxxx>
- Subject: Re: Tab inserts spaces instead of complete by default
- Date: Sun, 21 Feb 2010 11:17:25 -0800
- Cc: zsh-users@xxxxxxx
- In-reply-to: <91790a981002210948x6cc091f8le394c71eec8ac428@xxxxxxxxxxxxxx>Comments: In reply to Sébastien Pierre <sebastien.pierre@xxxxxxxxx> "Re: Tab inserts spaces instead of complete by default" (Feb 21, 12:48pm)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <91790a981002210917k4bf2980am32b816cc93d67650@xxxxxxxxxxxxxx> <sebastien.pierre@xxxxxxxxx> <100221094125.ZM24131@xxxxxxxxxxxxxxxxxxxxxx> <91790a981002210948x6cc091f8le394c71eec8ac428@xxxxxxxxxxxxxx>
On Feb 21, 12:48pm, Sébastien Pierre wrote:
}
} So I've tried the binding you describe, but it doesn't change the behaviour:
Hmm, you're right. I was misled by the way I tested it. Literally
inserting the tab when it is the first character on an otherwise empty
line is pretty deeply hardwired; I've been using scripted completions
for so many years now that I'd forgotten.
So ... if for some reason you want to avoid the scripted completion
system, you need something like this:
exp-or-comp-no-tab() { compstate[insert]='unambiguous' ; compcall }
zle -C expand-or-complete .expand-or-complete exp-or-comp-no-tab
However, I still recommend that you instead run "compinstall" to get a
wider and more configurable set of completion behaviors, wherein this
is controlled by:
zstyle ':completion::*' insert-tab no
Messages sorted by:
Reverse Date,
Date,
Thread,
Author