* Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
@ 2000-06-06 9:20 Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2000-06-06 9:20 UTC (permalink / raw)
To: zsh-users
Bart Schaefer wrote:
> 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.
Ahem. Changed in 9777 in reply to 9756 (guess the author).
9777 commented out some stuff in doexpansion(). Change it back?
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
2000-06-06 3:20 ` Bart Schaefer
@ 2000-06-06 9:22 ` Vincent Lefevre
0 siblings, 0 replies; 4+ messages in thread
From: Vincent Lefevre @ 2000-06-06 9:22 UTC (permalink / raw)
To: zsh-users
On Tue, Jun 06, 2000 at 03:20:38 +0000, Bart Schaefer wrote:
> 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
If I use this (at the end of my .zshrc), variable names completion
doesn't work any longer. For instance, I type "echo $ZSH_V":
Et encore? echo $ZSH_V
then [TAB], and I get:
Et encore? echo #
$ZSH_V
where '#' represents the cursor.
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Computer science / computer arithmetic / Arénaire project at LIP, ENS-Lyon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
2000-06-06 1:07 Vincent Lefevre
@ 2000-06-06 3:20 ` Bart Schaefer
2000-06-06 9:22 ` Vincent Lefevre
0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2000-06-06 3:20 UTC (permalink / raw)
To: Vincent Lefevre, zsh-users
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* blah*[TAB] (difference between 3.1.6 and 3.1.9)
@ 2000-06-06 1:07 Vincent Lefevre
2000-06-06 3:20 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Vincent Lefevre @ 2000-06-06 1:07 UTC (permalink / raw)
To: zsh-users
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)?
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Computer science / computer arithmetic / Arénaire project at LIP, ENS-Lyon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-06-06 9:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-06 9:20 blah*[TAB] (difference between 3.1.6 and 3.1.9) Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-06-06 1:07 Vincent Lefevre
2000-06-06 3:20 ` Bart Schaefer
2000-06-06 9:22 ` Vincent Lefevre
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).