zsh-users
 help / color / mirror / code / Atom feed
* howto correct 7etc to /etc ?
@ 2004-10-05 23:58 Andy Spiegl
  2004-10-06 16:03 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Spiegl @ 2004-10-05 23:58 UTC (permalink / raw)
  To: ZSH User List

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-07  8:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-05 23:58 howto correct 7etc to /etc ? Andy Spiegl
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

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).