Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion issue



Little update:
I just fuound, that problem is in my
> zstyle ':completion:::::' completer _expand _force_rehash _complete _ignored _gnu_generic _approximate
> zstyle ':completion:*' completer _complete _ignored _gnu_generic _approximate _oldlist _force_rehash
and exactly in
> _gnu_generic
Which is in default Zsh box too, and contains only:
> _arguments '*:arg: _default' --

And, as I understand, the bug is in format of vim's --help:
> -V[N][fname]         Be verbose [level N] [log messages to fname]

And zsh doesn't like [] there and tries to interprete it as it's completion syntax (which is wrong).

So, as I understand, we need to somehow escape such symbols in "--help" output. Unfortunately, I've no idea how.

Could you help me, please?



Btw, it is also one more thing: in russian locale output of `vim --help` contains line separation (\n) on some lines (probably, because it tries to fit 80 cols despite of real terminal size).
So, when zsh parses it in _gnu_generic line-by-line it misses that parts on new lines. Is it possible to fix that too somehow?


В письме от Пн, 9 июня 2014 00:40:01 пользователь Vadim A. Misbakh-Soloviov написал:
> Hi there!
> 
> I experienced some issue, related to completion. Here is some summarizing of
> my debug-digging:
> When I have any (or both, like in my usual .zshrc) line of:
> > zstyle ':completion:::::' completer _expand _force_rehash _complete
> > _ignored _gnu_generic _approximate
> or:
> > zstyle ':completion:*' completer _complete _ignored _gnu_generic
> > _approximate _oldlist _force_rehash
> and trying to call completion of, for example, non-existant path on FS, I get error:
> > _arguments:comparguments:312: invalid option definition: -V[N]fname[Be
> > verbose (level N) (log messages to fname)]
> When I have also:
> > zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z} r:|[._-]=**
> > r:|=**' 'm:{a-z}={A-Z} m:{a-zA-Z}={A-Za-z} r:|[._-]=** r:|=** l:|=*'
> > 'm:{a-zA-Z}={A-Za-z} r:|[._-]=** r:|=** l:|=*' 'm:{a-zA-Z}={A-Za-z}
> > r:|[._-]=** r:|=** l:|=*'
> in my .zshrc then quoted error duplicates 4 times in a row.
> 
> Is it any way to fix it, but keep effects of that configuration?
> 
> 
> Thanks!

-- 
Best regsrds,
mva

Attachment: signature.asc
Description: This is a digitally signed message part.



Messages sorted by: Reverse Date, Date, Thread, Author