zsh-users
 help / color / mirror / code / Atom feed
* zsh versus tcsh's "complete=enhance"
@ 2006-04-30 16:01 Jörgen Grahn
  2006-05-01  9:40 ` Stephane Chazelas
  2006-05-01 15:28 ` Thorsten Kampe
  0 siblings, 2 replies; 5+ messages in thread
From: Jörgen Grahn @ 2006-04-30 16:01 UTC (permalink / raw)
  To: zsh-users

Hi,

Before I switched from tcsh (used it for approximately fifteen years) to zsh,
I depended heavily on the complete=enhance setting. From tcsh(1):

    If the complete shell variable is set to enhance', completion 1) ignores
    case and 2) considers periods, hyphens and underscores (.', -' and _')
    to be word separators and hyphens and underscores to be equivalent.

For example, ~/News/c.o.l.an might expand to ~/News/Comp.os.linux.announce.
And it works on commands too: s_ad expands to ssh-add.

Zsh has the case-insensitive part of it, which is nice. How about the rest?
I googled around a bit, but I have only seen the question raised (as early
as in 1997), not answered.

And part two of the question: if it doesn't exist, and I want to hack it on
my copious spare time, where should I start? I have no problem implementing
the algorithm (string, fs) -> list of matches, but zsh is so large that I
wouldn't know where to place it. Or if it should be done in some command
language rather than C.

And by the way, thanks for a very nice interactive shell!

BR,
Jörgen
(not on the mailing lists, so I'd appreciate a Cc:)

-- 
  // Jörgen Grahn       "Koka lopplummer, bada Ross, loppor borta."
\X/ <grahn@snipabacken.dyndns.org>                        -- Jonas


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

end of thread, other threads:[~2006-05-02  9:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-30 16:01 zsh versus tcsh's "complete=enhance" Jörgen Grahn
2006-05-01  9:40 ` Stephane Chazelas
2006-05-01 15:28 ` Thorsten Kampe
2006-05-01 21:06   ` zsh versus tcsh's "complete=enhance" (for Germans) Andy Spiegl
2006-05-02  9:56     ` Peter Stephenson

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