From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26237 invoked by alias); 1 Jul 2018 06:26:02 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43116 Received: (qmail 11971 invoked by uid 1010); 1 Jul 2018 06:26:01 -0000 X-Qmail-Scanner-Diagnostics: from mail-io0-f172.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.223.172):SA:0(-1.9/5.0):. Processed in 1.386571 secs); 01 Jul 2018 06:26:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: astrothayne@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CR4we0wbJ72tslw/+gREEcnHnthqc7AW/beE4ciAtS0=; b=KYV2LATGKXWDg1Ai3qalbH6pW5fTu5aU6lXDmZ5QZULLG/Bj0UaolD2JNLmRteibmK 6S60eQPTwIzwOYI/kAOhzXBRGSjnqiNy/eJRiesSuyzIGBurJF0uOH+GY2OcrgiOTNW+ bGaVPSMeNnJxwD6I3EE2lx8wx4rSqpM7/OGmRICqjlY8y8kFinDIjbzVxEQDtztGUVZs iWcEdbH8StkKxfaueMFCQ+4TfzZMB/6dI6f/Wdea6CyXcgfOdwKrmzyELQcxCpqcVtSx KFPVFbZdT6/+C6iutQZXcMcxsYMZcePuJvCGybKu08Zq0Kxt5WHJFxL+E2KoHegmXKTU pJLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CR4we0wbJ72tslw/+gREEcnHnthqc7AW/beE4ciAtS0=; b=PukmljBEjxNuh6guU4RrJoSHDGh2YsCyTS4nxjaPA22I6kuBqDurvhrWUyNe6smX+3 In9UTadGsxYgB7xNKWenQYbyKx9xa4dqIdmf6C1/3jvD/ufxbkuztfRThDpNTLu3hkYU AWDB/969M0WI3DuIt3WBnmr2xYe4DQ6hbPFZMN6FghiYOy8Z3R4tj1eRtkDlQ2eQwBHd ftLsky0dF5WIinDs6PIwDB1OL0wRJNZ7mJoINxiw2C1wh6vBAap3kVd4T2vmWDG82O4e Mvrb+ZVuDPtwu9kNah9ZIhXmNjHHS4+oceKBbBgxwrem5Xs2XZrXkI5O3RXLA44dvaUt 2yDw== X-Gm-Message-State: APt69E1+5TQQqnCfvNtnodJttqZzbSchxqUgaI48pDpKwUH2T6XYol9D +mNShnPca/hKk3WCVq7pEgUXStwo1PTM8osVabPpLCHt X-Google-Smtp-Source: AAOMgpfDdftQ9IGd+qHrfoeDmGoPr5DK45c/TVoIcyynAssxwIZUxu+1KkcN1WUfyYaNTDrCMOCYiOB8dOYevpqNshg= X-Received: by 2002:a6b:1884:: with SMTP id 126-v6mr16228576ioy.183.1530426356940; Sat, 30 Jun 2018 23:25:56 -0700 (PDT) MIME-Version: 1.0 From: Thayne Date: Sun, 1 Jul 2018 00:25:45 -0600 Message-ID: Subject: Space in interactive menu select To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="0000000000005c543c056fea27b1" --0000000000005c543c056fea27b1 Content-Type: text/plain; charset="UTF-8" With the following (minimal) .zshrc: zmodload zsh/complist zstyle ':completion:*' menu select yes interactive autoload -Uz compinit compinit If I finish the word that is being completed myself, then press space, it starts completing for the next word, but if I then accept a completion for that word, it then replaces *both* words that I typed during completion. https://asciinema.org/a/189304 shows an illustration of this. This is very unexpected behaviour. I would expect pressing a space during interactive menu selection to stop the current completion and insert a space after what has been typed so far. Or at least that is how I would like it to happen, but as far as I can tell there isn't a way to accomplish that. I have tried using `bindkey -M menuselect ' ' self-insert`, but that doesn't make a difference. `bindkey -M menuselect ' ' accept-line` makes it so a space is treated the same as enter, which is less surprising, but is a little annoying if I start the completion, realize that the completion doesn't have the option I actually need, type the real option, then press space. I've also tried creating a custom zle widget that calls `zle send-break` and then `zle self-insert`. And bind space to that widget, but that doesn't work either (it looks like it acts the same as `accept-line`. This seems like a bug to me. Thayne McCombs --0000000000005c543c056fea27b1--