[Pkg-zsh-devel] Bug#844710: Fwd: Re: Bug#844710: autocorrection suggested rm for typing mr without typing "y"

Daniel Shahaf d.s at daniel.shahaf.name
Sat Nov 19 12:21:19 UTC 2016


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))(



More information about the Pkg-zsh-devel mailing list