zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Samy Dulor <samy.dulor@orange.fr>
Cc: zsh-workers@zsh.org
Subject: Re: [BUG] complist interactive mode overwrites command line
Date: Mon, 4 Mar 2024 14:38:20 -0800	[thread overview]
Message-ID: <CAH+w=7ZKN6VaYZ2XwBvEoGsvL_Os0eD55WRqLfUjgiXrSbdr+w@mail.gmail.com> (raw)
In-Reply-To: <8a90a759-2853-b6e1-8d9b-5824afbc8f47@orange.fr>

On Mon, Mar 4, 2024 at 3:30 AM Samy Dulor <samy.dulor@orange.fr> wrote:
>
> However, is it not another bug that the one that concerned me in the
> first place?

It all comes back to approximately the same thing:  Interactive
completion has "forgotten" where its input position is and how much it
inserted to the right of that.

> So, trying your test case on the clean Arch repo's zsh package,
> I noticed that if you don't press <TAB> on step 3., pressing the arrow
> will give you this:
> % ls Src/
>
> Is it really the expected behavior?

No, it isn't.

> Would it not be better if it left
> you with:
> % ls autom4te.cache config Src/

That is what's wanted, yes.

> Also, back at my initial issue and my patch, I noticed I made an
> assumption that might be wrong about the expected behavior:
>
> Marlon's test case from the 2021 thread was:
>
> > % touch test{1,2}
> > % : ; foobar
> >      ^ 1. Type the above line in its entirety.
> >        2. Place the cursor before the ;
> >        3. Press Tab.
> >        4. Press Enter.
> > % : test1 bar
> >      ^ Completion is written over existing buffer contents.
>
> In that case, should the ';' still be present?
> ie. % : test1; foobar

I believe so, yes.


  reply	other threads:[~2024-03-04 22:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04 16:30 Marlon Richert
2024-03-04  1:44 ` Samy Dulor
2024-03-04  2:05   ` Bart Schaefer
2024-03-04  6:33     ` Bart Schaefer
2024-03-04 11:30       ` Samy Dulor
2024-03-04 22:38         ` Bart Schaefer [this message]
     [not found] <8964126.CDJkKcVGEf.ref@phy-nordri>
2022-07-15 13:39 ` Andrea Manenti
2022-07-16 18:11   ` Bart Schaefer
2022-07-16 22:57     ` Bart Schaefer
     [not found]       ` <2844417.e9J7NaK4W3@phy-nordri>
2022-07-22 16:32         ` Bart Schaefer
2022-07-22 17:55           ` Bart Schaefer
2022-07-22 18:23             ` Bart Schaefer
2022-07-22 19:10               ` Andrea Manenti
2023-11-17  3:35     ` 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='CAH+w=7ZKN6VaYZ2XwBvEoGsvL_Os0eD55WRqLfUjgiXrSbdr+w@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=samy.dulor@orange.fr \
    --cc=zsh-workers@zsh.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).