From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19160 invoked from network); 14 Nov 2020 10:36:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Nov 2020 10:36:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605350219; b=Z5xblE/atiW9o/lmbq/Nqu8k96sT7JrBCz+R5jB9pzZAArtE4f7/LMgnYSytHrST3dHH/+8Kxy Hb0Yr7TXvg//nzb4EF91Amj6xAWvHwiP1xN1vy24CXKdONoQeyqicpapwsltQBFTLYSowQboRW EjdzylOQGu6Cyp7ed1ckymd20gScMHi006VqHaRdRwtGY5dN5TBRZbOVhmIWg6O9lX7Buz3jmm mY7JZ8SoCnf4/Qju+Ln+1uesJ/2o6waxYLTWd2PU6dGjDtfGiax3xcTrKjcaZ99lT4RHcGaN6O 1Q0782ryX4k8isuLP8s+EjQB7vlGKEMHOMf43CoKaCAjeA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (know-smtprelay-omc-8.server.virginmedia.net) smtp.remote-ip=80.0.253.72; dkim=pass header.d=virgin.net header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=virgin.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605350219; bh=rbt/1AzXdUAbXKyajUNcXy5r9zBXd+PcE+q+biaXppA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:DKIM-Signature:DKIM-Signature; b=VMv3Tj9kne3+4m2ETfEUzi7XtP4jqLewukcO+uHmuHFaLE8MHHXdVqFIT36jXDtxtpUKctUyUU gngbwaUJpIZluUd27yscf9/z4tPJAtso0TZMtdqkWV0JKzF90e+nvydg1bbKg+KLWU4cUh7aFE 5sd42rOCHbzJQV+TgvFfT8+/SQhcugvPwBMPoJIBCj08uYROVpQmiTKJDOU9aZPsvtaPU9qu3q 4WG8Ty8b3G8a2RwA1+aBKXmeSbDbHxY312iW6zhGNimRQb2fCxQJhX9b+DoLCvqmbqQVbgjTn6 hITJVFX0j4ubNmjDHyxmhuXMBmgTUv+6kRDluIv8+HGF2w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Mime-Version:Message-Id:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=WOp6pUZ40ycGxVXFPKlr0CxRmbBvKuQi2kVV2X9/c54=; b=wQ8OG0C75jB9Pw1KV1ZNpfNwJ4 bKr3Dc4V5vPLja1FWoF0cPMkZ4+ZO8NKO5O2nfxVRRmzADayw8eWS7tL1sef+I6bJqhfRUl5IZ/qv r8fefaSddYy+q8Vq85ZkkKFktobqTqECTEorVmja/St4AEc7I+2iZ7pOlMjy+6E7kkfmb8edaxaec yWoxb71QvSNn77MY3TwNK8cByJi1aHlfaCzH4zHJSEbMkKFr7ZWmL05G9j6DJ0TNuVlvgcT4qp6ES EC3vxSZljOYDfD9t62LmJdXDdmu4l6qYtJLhHeFWIymibqGDcOFiDFTWq4F+JSugn4PNJt1p1X/mG V4DRx5AA==; Received: from authenticated user by zero.zsh.org with local id 1kdsvQ-00036J-0F; Sat, 14 Nov 2020 10:36:56 +0000 Authentication-Results: zsh.org; iprev=pass (know-smtprelay-omc-8.server.virginmedia.net) smtp.remote-ip=80.0.253.72; dkim=pass header.d=virgin.net header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=virgin.net; arc=none Received: from know-smtprelay-omc-8.server.virginmedia.net ([80.0.253.72]:48955) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kdsuv-0002k2-I1; Sat, 14 Nov 2020 10:36:26 +0000 Received: from cholatse.rt ([89.243.141.161]) by cmsmtp with ESMTPA id dsuukGNPScIlFdsuukf9FR; Sat, 14 Nov 2020 10:36:25 +0000 X-Originating-IP: [89.243.141.161] X-Authenticated-User: thomas.lauer@virgin.net X-Spam: 0 X-Authority: v=2.3 cv=KpdjJ1eN c=1 sm=1 tr=0 a=w3jeYb/JSqu79EOkiRxzhA==:117 a=w3jeYb/JSqu79EOkiRxzhA==:17 a=kj9zAlcOel0A:10 a=NLZbKm5LX-IpVZ1w92gA:9 a=CjuIK1q_8ugA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virgin.net; s=meg.feb2017; t=1605350185; bh=WOp6pUZ40ycGxVXFPKlr0CxRmbBvKuQi2kVV2X9/c54=; h=Date:From:To:Subject; b=WAsPisVmhJxVrUCFv21zXU3y7XeM0W0lLl/gvifA91+U8trasMKov/nQbDM/ufbu2 nNI83RnhNGdvqLsGOzUBcJiD///HNJ7jcdNUn2V14nB9L90bYNLr3qydgZiNtEqj9k 1s5SwRaxeTX4gUlOMOvCBgMnyO2m6GxMmWwIfR2oVlVYCS3DrHXwxnSMwIGhy1g9gL o1L0m2S9G5kguAj5LYiaspnchTj3NHRuvhqZ/fVaSwM1fE8wt7AoeKok1dJdithnAq b+6HrOehBlpNy+pIwFltSIYJcWlAE4gMvturrnkqNlxzAZPWr2KFuzNzD72ERgD/aa lknCXHCamd6sQ== Date: Sat, 14 Nov 2020 10:36:21 +0000 From: Thomas Lauer To: zsh-users@zsh.org Subject: zstyle ':completion:*' menu select=4 interactive Message-Id: <20201114103621.50ca012e079ba3bcd78a25a4@virgin.net> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKW/p99vMs0ecZrOP95vUPIcjYOJWPSAwbBcmDJlmx39w6M77ekJOU61W7fkk5YzdA59eGK1zeQvzcVsStgkMz39Y5Y1+DLwBrIdEvQWC2uCjTpDwqOv fwgaRLDSVhiCqftopbftkm/AVVxCxnT78U+Nv+ueaNnHFg7Q6JVAlG3R X-Seq: 26167 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Here's another long-standing problem I am having with zsh. I have googgled for hours but found nothing (Google search these days is like a cat: it brings home loads of things it thinks will please you but which are not really what you were looking for. Google just knows better than we do what we're searching for... But I digress.). I have the subject line in my .zshrc (BTW this is 5.7.1). The tab is bound to expand-or-complete-prefix. The trouble starts when the interactive part of this kicks in, ie there are four or more items (if there are fewer, all works fine) and if the cursor is somewhere in the middle of a line I am editing. So I do get the menu and I start navigating, with my current choice being copied into the line that's edited. The problem is that this choice overwrites part of the line I am editing. Consider this: $ bla D somestuff # cursor behind the D when I press tab) I get a few choices (say "D1/ Documents/ Dz2/ Dz3/ ..."), but nothing is as yet inserted into the line. Now I press and "Documents/" gets inserted, overwriting the first few characters of somestuff. The line now looks like this: $ bla Documents/estuff # cursor behind the /) Not what I want. So I have done an ugly hack to sort of solve this: ugly() { [[ ! -z $RBUFFER ]] && RBUFFER=" $RBUFFER" zle expand-or-complete-prefix } ... zle -N ugly with ugly() bound to the tab key. This (sort of) works but it's pretty 'orrible. I'm sure the zsh gurus have an idea what's going on here and can point out the problem :-) -- Tom