zsh-users
 help / color / mirror / code / Atom feed
From: Andy Spiegl <zsh.Andy@spiegl.de>
To: ZSH User List <zsh-users@sunsite.dk>
Subject: howto correct 7etc to /etc ?
Date: Wed, 6 Oct 2004 01:58:36 +0200	[thread overview]
Message-ID: <20041005235836.GA8546@spiegl.de> (raw)

I'd like to configure my completion so that when I type
 $ ls 7etc<TAB>

it corrects the mistyped 7 to   (note: on German keyboards / is shift-7)
 $ ls /etc
but only if the 7 is the first character of a path and if there isn't any
real file or directory that starts with a 7.  Unfortunately "_correct"
doesn't do the job in this case.

Can that be done?  My first guess was to take _expand_dots and modify it
but I must admit that I am still not enough of a zsh-guru to be able to do
it by myself.

Thanks for any hint,
 Andy.

-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Acupuncture is a jab well done.


             reply	other threads:[~2004-10-06  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-05 23:58 Andy Spiegl [this message]
2004-10-06 16:03 ` Bart Schaefer
2004-10-06 21:36   ` Andy Spiegl
2004-10-07  2:50     ` Bart Schaefer
2004-10-07  8:42       ` Andy Spiegl

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=20041005235836.GA8546@spiegl.de \
    --to=zsh.andy@spiegl.de \
    --cc=zsh-users@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).