zsh-users
 help / color / mirror / code / Atom feed
* git case insensitive completion for file names?
@ 2014-06-19 11:15 Francisco Borges
  2014-07-03 12:08 ` Francisco Borges
  0 siblings, 1 reply; 2+ messages in thread
From: Francisco Borges @ 2014-06-19 11:15 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Hi,

I have zsh set to do case insensitive completion when working with files.
However, it does not work with Git.

Any ideas? Using Zsh 5.0.5:

% zsh -f
% autoload -U compinit && compinit
% zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
% setopt nocasematch
% touch Foo
% ls fo[TAB]
% ls Foo # completes to foo
Foo
% git add fo[TAB] # does not complete


Kind regards,
-- 
Francisco

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

* Re: git case insensitive completion for file names?
  2014-06-19 11:15 git case insensitive completion for file names? Francisco Borges
@ 2014-07-03 12:08 ` Francisco Borges
  0 siblings, 0 replies; 2+ messages in thread
From: Francisco Borges @ 2014-07-03 12:08 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

Ok,

I had found out some things about the shell code then went to produce a
patch against the latest _git. Guess what? At the latest _git taken from
the git repository completion for git-add is case insensitive. At the
version I have from 5.0.5 stuff like git-diff is case insensitive but
git-add is not.



On Thu, Jun 19, 2014 at 1:15 PM, Francisco Borges <
francisco.borges@gmail.com> wrote:

> Hi,
>
> I have zsh set to do case insensitive completion when working with files.
> However, it does not work with Git.
>
> Any ideas? Using Zsh 5.0.5:
>
> % zsh -f
> % autoload -U compinit && compinit
> % zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
> % setopt nocasematch
> % touch Foo
> % ls fo[TAB]
> % ls Foo # completes to foo
> Foo
> % git add fo[TAB] # does not complete
>
>
> Kind regards,
> --
> Francisco
>



-- 
Francisco

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

end of thread, other threads:[~2014-07-03 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-19 11:15 git case insensitive completion for file names? Francisco Borges
2014-07-03 12:08 ` Francisco Borges

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