From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2826 invoked by alias); 19 Nov 2016 12:23:46 -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: X-Seq: 39985 Received: (qmail 7783 invoked from network); 19 Nov 2016 12:23:46 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.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(66.111.4.26):SA:0(-0.7/5.0):. Processed in 1.150137 secs); 19 Nov 2016 12:23:46 -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=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=BbN6nl4wZT+byVp 1yM4NTsXpfg0=; b=jhPpPw27jpkjKE+A3EhYx7O0kJcGH+lrll37y+S+kuSaMl8 EZlR6V08Tqp/Hgk6LCM6UOA0K9xlRbVccyZzR3q6L+Gv7whtWBnqw76ALsXGuzJu j708lCPe5CPDYkB86PJKYgiyqap4dViMsGSIT8vXDuQeqx/vBaH9i1xbziEk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=BbN6nl4wZT+byV p1yM4NTsXpfg0=; b=OiCsKZQxlBhP8bJAfQyOptg96yLtcQz0CDEEx8mGWIGse5 ndzIoFHAR9wjA8Kr8nfE3Fxb2z4rx30l24xa0fka3aPch5GiGhBTGQviUi93yZbT jLJk8exzvwdie1es9IqQU2eAV5VXgFlwOZpzIUvhl4aw7rNS55CGcpiHK0Pww= X-ME-Sender: X-Sasl-enc: zQy3kjotK6ANQLvSFPsl8vBFePoTk2PJIp1LhBhDE26S 1479558220 Date: Sat, 19 Nov 2016 12:21:19 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org, 844710@bugs.debian.org Subject: Re: Bug#844710: Fwd: Re: [Pkg-zsh-devel] Bug#844710: autocorrection suggested rm for typing mr without typing "y" Message-ID: <20161119122119.GA4754@fujitsu.shahaf.local2> References: <3574167.p9ErITdPmY@merkaba> <20161119075542.GA6750@fujitsu.shahaf.local2> <7714408.9UiMmvpNuW@merkaba> <87k2bzzo7x.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87k2bzzo7x.fsf@ft.bewatermyfriend.org> User-Agent: Mutt/1.5.23 (2014-03-12) Frank Terbeck wrote on Sat, Nov 19, 2016 at 12:46:42 +0100: > >> On a tangent: what do "nyae" mean? I couldn't find the answer in the > >> manual. > > > (Y)es, (N)o, (A)bort, (E)dit. diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index c7d84b9..0db8a1c 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -1458,6 +1458,14 @@ The prompt used for spelling correction. The sequence `tt(%R)' expands to the string which presumably needs spelling correction, and `tt(%r)' expands to the proposed correction. All other prompt escapes are also allowed. + +The actions available at the prompt are tt([nyae]): +startsitem() +sitem(tt(n) +LPAR()`no'+RPAR() +LPAR()default+RPAR())(Discard the correction and run the command.) +sitem(tt(y) +LPAR()`yes'+RPAR())(Make the correction and run the command.) +sitem(tt(a) +LPAR()`abort'+RPAR())(Discard the entire command line without running it.) +sitem(tt(e) +LPAR()`edit'+RPAR())(Resume editing the command line.) +endsitem() ) vindex(STTY) item(tt(STTY))(