From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id OAA18583 for ; Tue, 12 Nov 1996 14:01:34 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id VAA26406; Mon, 11 Nov 1996 21:44:46 -0500 (EST) Resent-Date: Mon, 11 Nov 1996 21:24:37 -0500 (EST) Message-Id: <199611120224.VAA24020@sassy.aa.ans.net> From: Matthew Braun Date: Mon, 11 Nov 1996 21:24:49 -0500 X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: zsh-users@math.gatech.edu Subject: tcsh's autocorrect functionality wanted Resent-Message-ID: <"TKd1i1.0.KJ6.a_zXo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/500 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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 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.