zsh-users
 help / color / mirror / code / Atom feed
* Case-insensitive completion isn't completely insensitive
@ 2004-06-30 13:43 Kai Grossjohann
  2004-06-30 14:31 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Grossjohann @ 2004-06-30 13:43 UTC (permalink / raw)
  To: zsh-users

I have customized zsh (4.2.0) completion as shown below.  I like
case-insensitive completion.

I have a directory which contains a file ENV and a subdir etc/.  I
change into that directory, type "source ./e" and then hit TAB.  Zsh
completes the directory, but not the file!

Typing "source ./en" and then hitting tab completes ./ENV as I prefer.

Is there a way to get zsh to complete ./e into ./ENV in this
situation?

tia,
Kai

# The following lines were added by compinstall

zstyle ':completion:*' auto-description 'specify %d'
zstyle ':completion:*' completer _expand _complete _correct
zstyle ':completion:*' completions 1
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' glob 1
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-/]=** r:|=**' 'l:|=* r:|=*'
zstyle ':completion:*' max-errors 3 numeric
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' substitute 1
zstyle ':completion:*' verbose true
zstyle :compinstall filename '/home/kgr/.zshrc'

autoload -U compinit
compinit
# End of lines added by compinstall



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Case-insensitive completion isn't completely insensitive
  2004-06-30 13:43 Case-insensitive completion isn't completely insensitive Kai Grossjohann
@ 2004-06-30 14:31 ` Oliver Kiddle
  2004-06-30 15:01   ` Kai Grossjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2004-06-30 14:31 UTC (permalink / raw)
  To: Kai Grossjohann; +Cc: zsh-users

Kai Grossjohann wrote:

> I have a directory which contains a file ENV and a subdir etc/.  I
> change into that directory, type "source ./e" and then hit TAB.  Zsh
> completes the directory, but not the file!

> zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-/]=** r:|=**' 'l:|=* r:|=*'
                                      ^^
That empty match specification there tells zsh to try case sensitive
completion first. The definition after it specifies case-insensitive
completion. Try removing those empty quotes.

Oliver


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Case-insensitive completion isn't completely insensitive
  2004-06-30 14:31 ` Oliver Kiddle
@ 2004-06-30 15:01   ` Kai Grossjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Grossjohann @ 2004-06-30 15:01 UTC (permalink / raw)
  To: Oliver Kiddle; +Cc: Kai Grossjohann, zsh-users

Oliver Kiddle <okiddle@yahoo.co.uk> writes:

> Kai Grossjohann wrote:
>
>> I have a directory which contains a file ENV and a subdir etc/.  I
>> change into that directory, type "source ./e" and then hit TAB.  Zsh
>> completes the directory, but not the file!
>
>> zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-/]=** r:|=**' 'l:|=* r:|=*'
>                                       ^^
> That empty match specification there tells zsh to try case sensitive
> completion first. The definition after it specifies case-insensitive
> completion. Try removing those empty quotes.

Ah!  And I think even the menu interface told me, but I didn't
understand.

Thanks for telling me now.  I have changed the file.

Kai


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-30 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 13:43 Case-insensitive completion isn't completely insensitive Kai Grossjohann
2004-06-30 14:31 ` Oliver Kiddle
2004-06-30 15:01   ` Kai Grossjohann

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).