Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: minor annoyance when I use TAB completion
- X-seq: zsh-users 24392
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Fourhundred Thecat <400thecat@xxxxxx>
- Subject: Re: minor annoyance when I use TAB completion
- Date: Mon, 28 Oct 2019 16:41:46 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i0bOOL7lPlYOzQ9tUrSH8Qs+vvjcGQVW2jHm4QoL0Nk=; b=Qb0ArhX+sUJ1vwESpYUQ1S1AGs9uFVxKliuX0Pk5PQV2ttgfdgais6t9hUJIkoThv/ TfIIEB1VFCDTOHT+5t7pD+oVO4T11Gt3khQyDiFWCh61NTfYUrks7NVZEDJMaNKtWg1p sS8wvYadhbrCMiLIcvLsFfHekz2qqhrIvLWBL2H/1H2pQoZx7LHgOTaByimrdvjgrF1x C+LQJmFt9tIqPvCnj4R+GNbEvmdY+Wkkj7i+qK/PmH7l7qT9dGxCvUIeln7fTCB+b0I8 DpY/V1icGWnJsuzVMd4PikLdyG+xcZqJCRj0No2DHy0ZT6GDpdAJDyacnasSAUzPcM0J 6O+g==
- In-reply-to: <5DB6EB5F.3010007@gmx.ch>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <5DB6EB5F.3010007@gmx.ch>
On Mon, 28 Oct 2019 at 14:22, Fourhundred Thecat <400thecat@xxxxxx> wrote:
>
> Hello,
>
> I have minor annoyance when I use TAB completion in zsh:
>
> When I type "lso" and hit TAB to complete:
>
> lso<TAB>
>
> the completion successfully completes to "lsof" and my commandline looks
> like this:
>
> lsof <cursor>
>
> notice the one space between lsof and the cursor. But when I start
> typing, the space disappears (cursor jumps back), and whatever I typed
> is glued to lsof, ie
>
> lsof| grep
>
> instead of
>
> lsof | grep
>
> could anybody please advise how to fix this, before it drives me crazy ?
> The problem is when I use ctrl+w to delete word backwards, I want to
> delete "|" as one word and not "lsof|"
>
> thanks,
I have somewhat a reversed issue. I use:
zstyle ':completion:*:*:*:default' menu yes select search
so I can search through the completions. When I accept an entry,
either with a double-enter or a space:
bindkey -M menuselect ' ' .accept-line
I then have a space added after the accepted entry. And it doesn't get
removed when I continue typing, like in the author's post. I would
like to have it removed. Note, that it's not possible to bind custom
widgets to the menuselect key map.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author