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 14853
- From: Sébastien Pierre <sebastien.pierre@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Tab inserts spaces instead of complete by default
- Date: Sun, 21 Feb 2010 14:28:35 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=Z7HuvVpBch6cbiJzJl0LuRzl8oCfchcSu7Cki28RDBs=; b=MhqwVM98AKJ2eyvQ9Bzode/Bm7owy4wc771qn0bYy/j6EixRpc9pVvYyAwhFOgPhQc fve4GIon8ACEtgrSI7e8D3vWQRB/EhwzKzrmrKiyZLsTpurpWPlTzTkWFRdciXp9e3BZ hLH7PY64uBzGGNDQc/FxCarnJEPN1mYcK/WtM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=nkaorl8G7cTS84d/7aQwdEgRfUXIOWH3DP9OmyXWp/Kch5/hQCXUV/E4wVJh/pLEf5 8fiZcWlL3zWlxhtTC0HcMYLiQBtL19q4FduT/0HgCx7exSQn3p15LFXzl/0XlGUN/1XB LDqoLYHBSbYV5igQBwbZXCLSyCy4W0LYrKxLk=
- In-reply-to: <100221111725.ZM24609@xxxxxxxxxxxxxxxxxxxxxx>
- 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> <100221094125.ZM24131@xxxxxxxxxxxxxxxxxxxxxx> <91790a981002210948x6cc091f8le394c71eec8ac428@xxxxxxxxxxxxxx> <sebastien.pierre@xxxxxxxxx> <100221111725.ZM24609@xxxxxxxxxxxxxxxxxxxxxx>
Hi all,
So Greg's tip worked well for me :) I was already using the 'compinit'
module (which is amazing), so this worked perfectly for me.
Thanks a lot !
-- Sébastien
2010/2/21 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> 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