From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21443 invoked by alias); 24 Oct 2014 11:01:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19283 Received: (qmail 11959 invoked from network); 24 Oct 2014 11:00:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Fri, 24 Oct 2014 12:54:07 +0200 From: Eric Smith To: Zsh Users Subject: spell check on the command line Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Dear zshellers I make frequent typos (which I like to blame on my apple keyboard). These are either in commands themselves or in long filenames concatenated with underscores as arguments to commands. (Of course autocorrect in a command could be dangerous, but then so could a typo). But especially interesting is a spell check for my long_filenames_with_useful_tags_as_metadata.pdf How could I implement and autocorrect function that is run when I press enter and on suspected spell error beeps and guesses what I meant and would give me a chance to review the correction? -- Eric Smith