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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30416 invoked from network); 22 Feb 2021 21:51:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Feb 2021 21:51:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614030691; b=eoMNiLemna5pC0ThQuMIcfUGrm4gbELBm2hd9YfFzlnz0YfYlqgBgI27j6p6ftWSN72s5YELI3 /N3cPVUiHzFADSgQAyf0UJ6e3Mka99O6i3yyOWUp4OoOS34uczWKxAd1a6BXIYGMCSyTfXM0HX iwSyG2yj9nyD0Ki1FPvJzJd3lODnlEfk21LD2QTFFkeDLqvdVmjylrDJjyYOOWxE6CcJPiw3mc rmKg5K03FepP0DfGSkFkJIuynaHOjrBq9jlHUxkLSd1kerZnUjdGmNtalu0P0uHyhNPUXTHptY 2jg9jYpSjWCh7geStMeNP1m4sxk8X+sgliRUz46ZKl+i0A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614030691; bh=/npKyY6F4E4voWAx+OePz0Nfh6w58GiJMXIxdUUNXTM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=ccjwszwhXwfvm8uKJR9F6nhdyjDXZlOFv1fzrmp2kus1xFalxGTBwy8G6L6B/9V44bxX05JDNn grgaJPipbcFoxEgLrY3XcFRMKghzdM+DAYylyFNkNSgLymj5hid8axlcikbOlHqQKS7J2TIUdb bGSzihAK0L98S5JTlMxsGkStyG7CTCRZx/hH9HvNz7eqmFOEH+VKeAHE/DD2m4UGSsZce/9Aqv SEK0L/R1heIhCTYg6IJKuvHACc0IgxByeusbJIDoqoHNItoMDIcQ5UoeR1r5zVQ0p6ErUsI+RJ wHC9wvXt5i2F2aFYW0PwJTfrXn9HDo7GBHazXjeaWS5eJQ==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=bhN2/obZAcVUqVsWaLuTM7es2Z5JR/4cnoO/4wNDO1U=; b=BlRkafr35KLbynLmlpZV5ur3Rx JaJoqz3x7rRsCJdDJ9ux9zELKqRggFHyjn0C/j5roUcjnBKHvJNmfSYPMdkYP1nv0WNzPpq5nM1ra efZrOjk64kfOi9uKBD9JOaclH/a+s3s9ebMOuSHWhk3F8s6/av0jZRmjdzFyRzSBt6Ff7QQAxg/H0 Lv6s8NGUDNs9Gv49pEEGmjjvp72iUR4yyFZRIGNazZrtFXMxW9sYUzSuZv8iJ+dMcsg3vGU047qLk i+lY0un2NaI6SrVfSqUYKHqpaEk9m3QlDJOfUU5Y1LIYbtzj3KlqAUol4Y/OENTPrkVr/ftI1P2RU pUH3WIUw==; Received: from authenticated user by zero.zsh.org with local id 1lEJ74-000G6y-2j; Mon, 22 Feb 2021 21:51:30 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f49.google.com ([209.85.210.49]:36894) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lEJ6c-000Fk6-LX; Mon, 22 Feb 2021 21:51:03 +0000 Received: by mail-ot1-f49.google.com with SMTP id s6so13556500otk.4 for ; Mon, 22 Feb 2021 13:51:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bhN2/obZAcVUqVsWaLuTM7es2Z5JR/4cnoO/4wNDO1U=; b=OfvgEtrkiYjQmA0dbXOM2Tlkx92X4Arn8V7XCwykc2/Dmnp/xtSCEumeED0jdceDwA PTpvp8TPxZtU8e51KsWsZSFHO+hzagKGw6ei7qiZtFXM4ntYgfyRtk09anwdk+vIoEdT GrAcZbul7pQJfWjXwGAemTJkTnLvTowFgvEWh1Q2DfuzI1+b1+4hKzcb7YQ7ljcUHzEZ kUHwH0AZa43IN/729QkTgvEvEZvBB/NxQsGJ9QXJVWcfRIgmN4Fn/PdruIZMTaFc0cFo Qn3uHRjG3kVmR9/nr6CIZbr7yttp94KPqGgcEH+VxGi/VllJbSZNCx9GE57pB3ouW9Gi O/tg== 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=bhN2/obZAcVUqVsWaLuTM7es2Z5JR/4cnoO/4wNDO1U=; b=qLKWlpTmNTMm0YBIzKK1cXwI8eZ1wqaujlRBFzsgfaBNwMKCGLgO16wHErajUPyxla ttw7H7X86d3ZsaLRWjsoykBu63+PfuoLMr+im3Kd2+ge4EluQ/+E6nGylNkYFcDvJ07U 1hv2P5XGVa0DlMPP1wDJjDyEUXdQJqbgGtIoDluBOVKDkpcP/xIxP0kTasHLYIeoUAls hMPXstUBEtiRFtbCvgej8A04QesOJnkfO8dx0BUXR1jrRjmMMWB8XMrktzNZk3hRXUTE 7Hh2jnht6AACTS8ek/qvg12oIyzIIs2TC2flhuc0be2XusYMuU1iW0qVuazF83bina0y rW7w== X-Gm-Message-State: AOAM533+TVsCjWrtzSFQzHTux4IjqtFZth7xewHA5uMQqgEOAzqbo57Z HG6magw3L6xnpBi1B4tieXxPmscls28APX27AKC8d5IVhGMEglvyLqY= X-Google-Smtp-Source: ABdhPJwe+vYbNikiJSpaHnhmrH75rg8mpfsS4AkWgjyU4jqAeC4Y08k8FyApfzCueU+7bGE7fLaCq72XTscwo1iiug4= X-Received: by 2002:a9d:6358:: with SMTP id y24mr18048568otk.229.1614030661215; Mon, 22 Feb 2021 13:51:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 22 Feb 2021 13:50:50 -0800 Message-ID: Subject: Re: Interactive menu completion bug To: Paul Cc: Zsh MailingList Content-Type: text/plain; charset="UTF-8" X-Seq: 26555 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: On Mon, Feb 22, 2021 at 8:58 AM Paul wrote: > > 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. > echo ~/ab I think the issue here is that typing SPACE does not end the interactive completion, so even though the buffer has advanced, you're still interactively completing the same word as previously. This one is fixed by doing bindkey -M menuselect " " accept-line > echo $aliases[ This one is more problematic. You can at least prevent the word so far from being clobbered by doing bindkey -M menuselect "[" .self-insert but there's probably a context-dependent set of characters that could be typed at the end of a word, some of which should self-insert and then end the completion, but others of which should have the effect of ending the current word, self-inserting, and then resuming completion.