From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4611 invoked by alias); 30 Apr 2018 16:26:49 -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: 42737 Received: (qmail 1304 invoked by uid 1010); 30 Apr 2018 16:26:49 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-2.server.virginmedia.net 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(80.0.253.66):SA:0(-1.9/5.0):. Processed in 0.488242 secs); 30 Apr 2018 16:26:49 -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,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dave@dawoodfall.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [82.40.94.2] X-Authenticated-User: X-Spam: 0 X-Authority: v=2.3 cv=Ab+f4UfG c=1 sm=1 tr=0 a=EH02hVpzcg1gP5HQFHlsKw==:117 a=EH02hVpzcg1gP5HQFHlsKw==:17 a=IkcTkHD0fZMA:10 a=hTAPVOLJ5fDBBlpJ8c0A:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 Date: Mon, 30 Apr 2018 17:26:44 +0100 From: David Woodfall To: Zsh Workers Subject: Using menu completion after predict Message-ID: <20180430162644.GG24131@blackswan> Mail-Followup-To: Zsh Workers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline User-Agent: Mutt/1.9.4+99 (e250c602) (2018-03-15) X-CMAE-Envelope: MS4wfH4Vxw6LR5SPEJY1S9khJI510HI5UZT50Hoy6sWorwwwNvoDgmB47bMAo3Sgz2cH1NoXuvmQXxRaQ677ifHFJxep4tvOLwDYOcBbwfrjpt9vyPJ2rByr k53Gk+wZpmzj0OMph8wKemitpobIlQDdoppoCO4TRdWREYg/fEJOC8g8 Hi I've been experimenting with the predict completer and it works well. There is something that I haven't been able to figure out yet though. When using, say, cdr with menu complete, when I first type 'cdr ' predict brings up the last match in history. Let's say: crd 4 I press tab for menu complete to activate but the '4' stays on the command line, which means that after selecting an entry from the list I now have two numbers, say: cdr 4 1 Of course cdr will give an error if I try to execute the command. Is there a way of clearing the prompt line when certain menu completions activate, like cdr, so that this doesn't occur? I know I can use a bind to kill to eol, but I'd rather have some filter or completion option for ':completion:*:*:cdr:*:*' that would clear to the end of the line before entering the selection menu. These are my current settings: zstyle ':completion:*' menu select yes=long-list select=long-list zstyle ':completion:*' completer _complete _match _approximate \ _correct _expand _prefix zstyle ':completion::prefix:*' completer _complete zstyle ':completion:*:*:cdr:*:*' menu selection zstyle ':completion:*:*:cdr:*:*' completer _complete zstyle ':completion:predict:*' completer _history zstyle ':predict' menu select no zstyle ':predict' toggle true zstyle ':predict' verbose true zstyle ':predict' cursor complete Any help is greatly appreciated. -Dave