Re: [PATCH 00/14] completion: a bunch of updates
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 30, 2020, 17:19 UTC
- Message-ID
- <xmqqh7qb3a3r.fsf@gitster.c.googlers.com>
- In-Reply-To
- <010c6222-4365-7446-a666-333ac7b4d415@haller-berlin.de>
Stefan Haller <lists@haller-berlin.de> writes:
>> How is that completion script developed, maintained and distributed?
I think we should ask this question to those in Zsh development community.
Show 6 quoted lines
>> By "by default" I believe you mean that it gets installed when you >> install zsh automatically. Is the situation different on macOS land >> (which I can believe, unfortunately)? > > It's the same on Mac; I get zsh's builtin git completion when I don't > install ours.
I see. That makes sense.
Show 11 quoted lines
>> Stefan? If at least some people argue what comes with zsh by >> default is more complete than the one we have in contrib/, what led >> you choose to "symlink" the less complete one to use it instead? > > I'm not sure I can answer the question which one is more complete. Ours > is certainly complete enough for my daily use, but this might not mean much. > > The reason why I chose ours over the one that comes with zsh is that > ours is *way* faster. If I type "git log origin/mas<tab>", with zsh's > completion it takes between one and two seconds to auto-complete this to > "origin/master". With ours it's instantaneous.
That is a very good data point. I re-read the blurb on the "gitfast" thing (below) in ohmyzsh and learned that ...
Show 7 quoted lines
>> Another question (this is for Felipe). Is >> >> https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/gitfast >> >> the one that comes with zsh by default, or is it something else >> (perhaps it is the go-to version for those who are not satisfied >> with the version that comes with zsh by default???)?
... it repackages what we have in contrib/ and promises a faster completion (which aligns with the reason you stated why you chose ours) than the Zsh default one and being always fresh (by frequent updates from our contrib/). In other words, my understanding is that it is positioned as a competitor to the Zsh default.
After making a brief observation for my previous message in the thread, I understand that oh-my-zsh is a very popular colleciton of third-party stuff for Zsh users, so it seems to me that the real useful choices, if I or somebody else were to become a new Zsh user, are between sticking with the Zsh default or grabbing the improved version from oh-my-zsh collection. I could also use from our contrib/ but I would have to ask myself twice why should I, as a (hypothetical) new Zsh user, bother, especially when the latter promises to be always fresh anyway.
Thanks.