Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Interactive menu completion bug
- X-seq: zsh-users 26554
- From: "Paul" <GammaFunction@xxxxxxxxxxx>
- To: "Zsh MailingList" <zsh-users@xxxxxxx>
- Subject: Interactive menu completion bug
- Date: Mon, 22 Feb 2021 10:39:47 -0600
- Archived-at: <https://zsh.org/users/26554>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-02/C9G7HZ4AJF7B.17SN95JM7VB9A%40kbvv>
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 406C3BD065
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.vivaldi.net 384D6BD00E
- In-reply-to: <CADjGqHvGch-bdeDAv1p-AWc7zkJJzErBU3ampro=cFQ5QtnAwQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
This is unrelated to the previous bug I mentioned, and apologies if this
has been brought forward before. There is a more problematic issue with
the menu when in the `interactive` setting.
zmodload zsh/complist
setopt MENU_COMPLETE
zstyle ':completion:*:default' menu yes select interactive
autoload -Uz compinit
compinit
# for demo purposes:
touch ~/a{b,c}
The following and similar inputs show issues [1]:
echo $a<Tab>liases[<arrow-right>
echo ~/a<Tab>b <Tab><arrow-right>
The user finishes the token/word themselves instead of accepting one of
the menu's completions. The completer doesn't update the location to
insert the new completion. Instead, the new completion is inserted at
the original location rather than where it should be.
[1]: Demo: https://asciinema.org/a/dZXOf1HGc5zj8AWJ4Ea3lBiGr
Messages sorted by:
Reverse Date,
Date,
Thread,
Author