From: SZEDER Gábor Date: Wed, 01 Apr 2015 09:55:19 GMT Subject: Re: git-completion.tcsh Message-ID: <20150401115519.Horde.JM0TEyhacRn5LYAEffMggQ1@webmail.informatik.kit.edu> Quoting Perry Rajnovic : > When using the auto-completion included with git for tcsh, several > commands do directly completion with an additional space appended to > the end, which defeats the ability to complete to a deeper > sub-directory. > > For example, if I have a git repository including the following: > basedir/foo/bar/somefile.c > > (works as expected, git add) > $ cd basedir > $ git add f > $ git add foo/ > $ git add foo/b > $ git add foo/bar/ > $ git add foo/bar/s > $ git add foo/bar/somefile.c > > (works not as expected, git rm) > $ cd basedir > $ git rm f > $ git rm foo > $ git rm foo/b > $ git rm foo/bar > there’s a trailing space after foo and bar in the above lines, which > means it’s not possible to initiate completion or immediately start > typing, i must back-space before continuing. > > I’m fairly certain i’ve seen this for other commands as well, but > i’m not sure to what extent this occurs throughout the commands. > > Environment info: > OS: Darwin 14.1.0 Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 > PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64 (OSX 10.10.2) > Apple Terminal Version 2.5.1 (343.6) > git version 2.3.2 (via MacPorts) > tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-apple-darwin) options > wide,nls,dl,al,kan,sm,rh,color,filec The tcsh completion script is just a wrapper, it relies on the bash completion script to do the heavy lifting and tunnels its output int tcsh's completion infrastructure. Could you try bash completion in your environment first to see, whether it's a bash completion issue that I can't reproduce or an issue with the tcsh wrapper? Cc'ing Marc, author of the tcsh wrapper. Gábor