zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Fourhundred Thecat <400thecat@gmx.ch>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: minor annoyance when I use TAB completion
Date: Mon, 28 Oct 2019 16:41:46 +0100	[thread overview]
Message-ID: <CAKc7PVCu1w71id+LxrGbkVHEhfKRwL946UyrZog5xHw2_9XrMg@mail.gmail.com> (raw)
In-Reply-To: <5DB6EB5F.3010007@gmx.ch>

On Mon, 28 Oct 2019 at 14:22, Fourhundred Thecat <400thecat@gmx.ch> 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

  parent reply	other threads:[~2019-10-28 15:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-28 13:21 Fourhundred Thecat
2019-10-28 13:25 ` Roman Perepelitsa
2019-10-28 13:42   ` Fourhundred Thecat
2019-10-28 15:41 ` Sebastian Gniazdowski [this message]
2019-11-02 14:36   ` zzapper

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=CAKc7PVCu1w71id+LxrGbkVHEhfKRwL946UyrZog5xHw2_9XrMg@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=400thecat@gmx.ch \
    --cc=zsh-users@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).