Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
- X-seq: zsh-users 3114
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- Subject: Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
- Date: Tue, 6 Jun 2000 03:20:38 +0000
- In-reply-to: <20000606030750.A12454@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000606030750.A12454@xxxxxxxxxxxxxxx>
On Jun 6, 3:07am, Vincent Lefevre wrote:
} Subject: blah*[TAB] (difference between 3.1.6 and 3.1.9)
}
} Consider a directory where there are two files blah1 and blah2. With
} zsh 3.1.6, when I typed blah* followed by a tab, "blah1 blah2 " was
} generated (with a space after blah2). With zsh 3.1.9, "blah1 blah2"
} is generated (with *no* space after blah2).
}
} How can I have the old behavior (much more logical IMHO)?
Something's definitely gone wrong with expand-or-complete. This was not
intentional.
As a workaround, the following should behave the way you want:
bindkey '\t' complete-word
autoload -U compinit
compinit
zstyle ':completion:*' completer _expand _complete
zstyle ':completion:*:expand:::' glob 1
zstyle ':completion:*:expand:::' substitute 1
If you have some customized compctl commands, you may also want:
zstyle ':completion:*' use-compctl 1
The above consititutes pretty much the minimal set of commands to emulate
the default behavior of expand-or-complete in 3.1.6 and earlier versions
while using the new completion system.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author