zsh-users
 help / color / mirror / code / Atom feed
From: Tomasz Pala <gotar@polanet.pl>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@zsh.org
Subject: Re: cd /u/N/v/ tab expansion
Date: Sat, 16 Apr 2022 16:17:01 +0200	[thread overview]
Message-ID: <20220416141701.GA19146@polanet.pl> (raw)
In-Reply-To: <20220410180509.GA26578@polanet.pl>

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@pld-linux.org>


  reply	other threads:[~2022-04-16 14:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 12:40 zzapper
2022-04-07 20:11 ` Bart Schaefer
2022-04-07 20:20   ` zzapper
2022-04-07 23:11     ` Bart Schaefer
2022-04-08  9:53       ` zzapper
2022-04-08 17:57         ` Bart Schaefer
2022-04-08 10:22       ` david rayner
2022-04-08 18:09         ` Bart Schaefer
2022-04-10  1:04       ` Tomasz Pala
2022-04-10 14:32         ` Tomasz Pala
2022-04-10 16:27           ` Tomasz Pala
2022-04-10 16:32             ` Tomasz Pala
2022-04-10 17:45               ` Tomasz Pala
2022-04-10 18:05                 ` Tomasz Pala
2022-04-16 14:17                   ` Tomasz Pala [this message]
2022-04-17  3:00           ` Bart Schaefer
2022-04-17 16:17             ` Tomasz Pala
2022-04-17 18:15               ` Bart Schaefer
2022-04-17 18:44                 ` Bart Schaefer
2022-04-17 18:32               ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220416141701.GA19146@polanet.pl \
    --to=gotar@polanet.pl \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    --subject='Re: cd /u/N/v/ tab expansion' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).