zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Bug in spell correction of directories for cd
Date: Thu, 08 May 2008 07:59:27 -0700	[thread overview]
Message-ID: <080508075927.ZM4098@torch.brasslantern.com> (raw)
In-Reply-To: <20080508095307.5dd54625@news01>

On May 8,  9:53am, Peter Stephenson wrote:
}
} Hmm... I wonder if there's scope for an even-more-magic-space command
} that sees if a shell argument has just been completed and if it
} should spell check it?

The trouble with that is that completion usually adds the trailing space,
so when would one ever type the space that invokes even-more-magic-space?

} You'd need a long list either of exceptions or inclusions, which might
} have to be narrowed down by argument position.

Here's a nutty idea.  In the same way that highlighting regions are
maintained for the buffer, maintain a list of regions that label how
that particular part of the buffer was filled: by ordinary self-insert,
by completion, by yanking from the kill ring, etc.  Then when global
correction makes its pass over the words, it could use those region
labels for context.

Of course one reason this is nutty is because of the ability for user-
defined widgets to manipulate BUFFER and friends directly.  The other
is that correction is in the main shell and doesn't necessarily have
anything to do with ZLE.


      reply	other threads:[~2008-05-08 14:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07 23:32 Vincent Lefevre
2008-05-08  8:53 ` Peter Stephenson
2008-05-08 14:59   ` Bart Schaefer [this message]

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=080508075927.ZM4098@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).