* zsh git completion offers different parameters then current prefix
@ 2014-08-02 19:05 DS
2014-08-02 19:26 ` Axel Beckert
0 siblings, 1 reply; 4+ messages in thread
From: DS @ 2014-08-02 19:05 UTC (permalink / raw)
To: zsh-workers
Hi!
Typing in zsh
% git diff --ca<hit TAB>
offers
--cached -1 -3 -C -M -R -U -l -q -w
-0 -2 -B -G -O -S -b -p -u -z
so there are completions completely out of the current typed prefix. How can I fix it?
My completion configuration is:
autoload -Uz compinit
compinit
unsetopt AUTO_MENU MENU_COMPLETE COMPLETE_IN_WORD
zstyle ':completion:*' completer _complete
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
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}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose false
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh git completion offers different parameters then current prefix
2014-08-02 19:05 zsh git completion offers different parameters then current prefix DS
@ 2014-08-02 19:26 ` Axel Beckert
0 siblings, 0 replies; 4+ messages in thread
From: Axel Beckert @ 2014-08-02 19:26 UTC (permalink / raw)
To: zsh-workers
Hi,
On Sat, Aug 02, 2014 at 09:05:57PM +0200, DS wrote:
> Typing in zsh
>
> % git diff --ca<hit TAB>
>
> offers
>
> --cached -1 -3 -C -M -R -U
> -l -q -w -0 -2 -B
> -G -O -S -b -p -u -z
>
> so there are completions completely out of the current typed prefix.
I can reproduce this here on Debian with zsh 5.0.5 and grml's zshrc:
→ git diff --ca<Tab>
completing option
--cached -- show diff between index and named commit
-0 -- omit diff output for unmerged entries
-1 -- diff against "base" version
-2 -- diff against "our branch" version
-3 -- diff against "their branch" version
-B -- break complete rewrite changes into pairs of given size
-C -- detect copies as well as renames with given scope
-D -- omit the preimage for deletes
-G -- look for differences whose added or removed line matches the given regex
-M -- Detect renames with given scope
-O -- output patch in the order of glob-pattern lines in given file
-R -- do a reverse diff
-S -- look for differences that add or remove the given string
-U -- generate diff with given lines of context
-b -- ignore changes in amount of white space
-l -- limit number of rename/copy targets to run
-s -- suppress diff output
-u -p -- generate diff in patch format
-w -- ignore white space when comparing lines
-z -- use NUL termination on output
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail)
X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh git completion offers different parameters then current prefix
2014-08-02 19:34 David Siroky
@ 2014-08-03 14:03 ` m0viefreak
0 siblings, 0 replies; 4+ messages in thread
From: m0viefreak @ 2014-08-03 14:03 UTC (permalink / raw)
To: zsh-workers
> % git diff --ca<hit TAB>
>
> offers
>
> ...
This is fixed in the latest code in git:
http://www.zsh.org/mla/workers/2014/msg00388.html
http://sourceforge.net/p/zsh/code/ci/f5fe52c49587cabdc7df18aeb83ca80f2a41ff97/
^ permalink raw reply [flat|nested] 4+ messages in thread
* zsh git completion offers different parameters then current prefix
@ 2014-08-02 19:34 David Siroky
2014-08-03 14:03 ` m0viefreak
0 siblings, 1 reply; 4+ messages in thread
From: David Siroky @ 2014-08-02 19:34 UTC (permalink / raw)
To: zsh-workers
Hi!
Typing in zsh
% git diff --ca<hit TAB>
offers
--cached -1 -3 -C -M -R -U -l -q -w
-0 -2 -B -G -O -S -b -p -u -z
so there are completions completely out of the current typed prefix. How can I fix it?
My completion configuration is:
autoload -Uz compinit
compinit
unsetopt AUTO_MENU MENU_COMPLETE COMPLETE_IN_WORD
zstyle ':completion:*' completer _complete
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
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}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose false
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-03 14:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-02 19:05 zsh git completion offers different parameters then current prefix DS
2014-08-02 19:26 ` Axel Beckert
2014-08-02 19:34 David Siroky
2014-08-03 14:03 ` m0viefreak
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).