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

Re: cd /u/N/v/ tab expansion



Anyone on zsh-workers? If that was TL and DR, _path_files obviously
requires this change:

-            [[ -n "$compstate[pattern_match]" ]] && SUFFIX="${SUFFIX:s./.*/}*"
+            [[ -n "$compstate[pattern_match]" ]] && SUFFIX="${SUFFIX:gs./.*/}*"

and _might_ (not sure about this) work better with:

-             compadd "$tmp4[@]" $listopts - "$i"
+             compadd "$tmp4[@]" -U $listopts - "$i"



The following problem still exists, however it's apparently not
related to MBEGIN/MEND, needs more investigation.

On Sun, Apr 10, 2022 at 20:05:09 +0200, Tomasz Pala wrote:

>> $ ls a/b/d/e/g[tab]
>> b1/d/e1/g/  b1/d/e2/g/  b2/d/e1/g/  b2/d/e2/g/
>> 
>> [ctrl-g]
>> $ ls a/b/d/e/g[tab]
>> $ ls a/b1/d/e1/ /g
>>                ^ cursor position
>> b1/d/e1/  b1/d/e2/  b2/d/e1/  b2/d/e2/
>> 
>> [ctrl-g]
>> $ ls a/b/d/e/g[tab]
>> b1/d/e1/g/  b1/d/e2/g/  b2/d/e1/g/  b2/d/e2/g/
>> 
>> and so on, over and over again.
> 
> This cycling (ctrl-g toggling of behaviour) means something is not being
> reset/unset properly and should be fixed.
> 
> However the latter case:
> 
>> $ zstyle -d :completion:\* add-space
>> $ ls a/b/d/e/g[tab]
>> $ ls a/b1/d/e1//g
>> b1/d/e1/  b1/d/e2/  b2/d/e1/  b2/d/e2/
> 
> with cursor over first of "//" also differs from the first run (the
> correct one).
> 
> 
> This is caused by MBEGIN and MEND variables being set in both cases
[...]

-- 
Tomasz Pala <gotar@xxxxxxxxxxxxx>




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