From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 9471c77e for ; Mon, 28 Oct 2019 15:42:43 +0000 (UTC) Received: (qmail 18312 invoked by alias); 28 Oct 2019 15:42:34 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24392 Received: (qmail 22745 invoked by uid 1010); 28 Oct 2019 15:42:34 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk1-f181.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25615. spamassassin: 3.4.2. Clear:RC:0(209.85.221.181):SA:0(-2.0/5.0):. Processed in 2.439659 secs); 28 Oct 2019 15:42:34 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.181 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i0bOOL7lPlYOzQ9tUrSH8Qs+vvjcGQVW2jHm4QoL0Nk=; b=N/RexE2JUM3rXUysSlyyqRfUwnfBjaq2qOpXLPe4rb0BdguJItT/tem5+8MYHoe++J gPgtN1H45r18wj+JUXEhJwEHiR5/gPNZnxIvp1Mha4IHkfEijMR0/vwjoqZq4WMaUaSn PEMBFfE9pe/lF3SgCPdsTMBTCQBOGA4mi8fo6aeILqYlBplOhBmrNdMLVVbQETmYOXkk 1gtn6ZTo9gyXBCyoER7CVI2A+j10Vuedjlu4YLg7XqM0L9DbbhEL4DTC0HVW1QIrbOWI 05BGEhea/iu2CHiv+IhVT4LnAIwS8UMYUKogVWQRK83vM/WGTtbuCARYcT9NkymrVa+Z JyGw== X-Gm-Message-State: APjAAAXBtgujT8lRPJeDUl9jyrt2kK1EWBzGMrlOLQ1cv11RgCUS48bQ z85FV5tbKub0gibtnHZFncdQfxyT8LLUXfJMbfO2Eo5j X-Google-Smtp-Source: APXvYqwWk7/AKoFY2iRXvAShwvEcZlnABMi41RSTvSa2iKn6dl0cCoLtxU0chdu27R2efzI+wbeVi/3Q5M1Csky+Ggc= X-Received: by 2002:ac5:cc59:: with SMTP id l25mr8528853vkm.40.1572277317477; Mon, 28 Oct 2019 08:41:57 -0700 (PDT) MIME-Version: 1.0 References: <5DB6EB5F.3010007@gmx.ch> In-Reply-To: <5DB6EB5F.3010007@gmx.ch> From: Sebastian Gniazdowski Date: Mon, 28 Oct 2019 16:41:46 +0100 Message-ID: Subject: Re: minor annoyance when I use TAB completion To: Fourhundred Thecat <400thecat@gmx.ch> Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" 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 > > the completion successfully completes to "lsof" and my commandline looks > like this: > > lsof > > 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