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

RE: PATCH: Re: General comments on completion



                Maybe we should use a different config key for
> this -- if you are using _oldlist and find some strange behavior, tell
> me.
>

The following happens with _oldlist and the completion keys:

bor@itsrm2:~/test/match%> compconf -L
compconf correct_accept='2n'
compconf match_original='yes'
compconf completer='_oldlist:_complete:_match'
compconf dumpfile='/home/bor/.zcompdump'
compconf oldlist_list='_match'
compconf path_cursor='yes'
compconf match_insert='unambig'
compconf correct_prompt='correct to:'
bor@itsrm2:~/test/match%> ls /h/b/t/m/a?a/<12->TAB
bor@itsrm2:~/test/match%> ls /home/bor/test/match/a/\<12-\>
axa/  aya/                                         ^ cursor here; after TAB
bor@itsrm2:~/test/match%> l /home/bor/test/match/axa/\<12-\>CURSOR HERE
axa/  aya/                                                  ^

It happens if _oldlist is used *and* cursor is initially at the end of word. If
I move cursor inside of word, it works as expected:

bor@itsrm2:~/test/match%> ls /h/b/t/m/a?a/<12->TAB
                                   ^ cursor here
bor@itsrm2:~/test/match%> ls /home/bor/test/match/a/\<12-\>
axa/  aya/                                         ^ cursor here
bor@itsrm2:~/test/match%> ls /home/bor/test/match/axa/\<12-\>
axa/  aya/                                           ^ cursor here

I have only setopt nolistambiguous explicitly set. It remains from old zshrc.

/andrej




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