From: Matthew Braun <matthew@ans.net>
To: zsh-users@math.gatech.edu
Subject: tcsh's autocorrect functionality wanted
Date: Mon, 11 Nov 1996 21:24:49 -0500 [thread overview]
Message-ID: <199611120224.VAA24020@sassy.aa.ans.net> (raw)
I would like to get this tcsh functionality in zsh:
autocorrect (+)
If set, the spell-word editor command is invoked
automatically before each completion attempt.
Example of tcsh with this option:
sassy:~> cat /ect/pass<tab key pressed>
produces:
sassy:~> cat /etc/passwd
It corrected the spelling of "/etc" and then did the filename completion
of "passwd".
If this isn't something that can be done (please add it someone!), then
I'd like to at least get the functionality of "spell-word" combined with
the my current definition of the tab key.
What I was thinking:
function spell-expand-or-complete-prefix {
spell-word
expand-or-complete-prefix
}
bindkey ^i spell-expand-or-complete-prefix
But this doesn't work:
sassy:~> bindkey ^i spell-expand-or-complete-prefix
zsh: undefined function: spell-expand-or-complete-prefix
Any ideas on either the autocorrect or bindkey to a custom function?
sassy:~> uname -sr
SunOS 5.5.1
sassy:~> echo $ZSH_VERSION
3.0.1
Thanks,
Matthew.
next reply other threads:[~1996-11-12 3:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-12 2:24 Matthew Braun [this message]
1996-11-14 8:23 ` Bart Schaefer
1996-11-14 23:18 Matthew Braun
1996-11-15 8:50 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199611120224.VAA24020@sassy.aa.ans.net \
--to=matthew@ans.net \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).