* Re: zsh-equivalent for tcsh option "set complete=enhance"?
@ 1997-03-05 21:22 Zoltan Hidvegi
1997-03-11 17:19 ` Peter Stephenson
0 siblings, 1 reply; 4+ messages in thread
From: Zoltan Hidvegi @ 1997-03-05 21:22 UTC (permalink / raw)
To: Zsh workers list, fessler
Armin Fessler wrote:
>Is there any equivalent in the zsh for the above option that makes completion
>ignore case (and also `.', `-' and `_')? Or has anybody written a tool for it?
>For some people that is the only reason why not to use zsh instead of tcsh.
>I also think it is a nice feature.
Unfortunately zsh does not have this feature, although something similar is
programmable with compctl -K (see Functions/multicomp for example).
Sven sent me a patch some time ago which was not up-to-date. Here I
forward the complete letter from Sven. Note that it contains a patch which
should be modified before it can be used in the current zsh. I was
planning to look at this patch after zsh-3.0 is finalized.
Zoltan
----- Forwarded message from Sven Wischnowsky -----
>From wischnow@informatik.hu-berlin.de Thu Oct 31 13:06:39 1996
Message-Id: <m0vIvuv-0003wOC@adler.informatik.hu-berlin.de>
Date: Thu, 31 Oct 96 13:08 MET
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: hzoli@cs.elte.hu
Subject: Zsh patch
X-Status:
Hello
I was planning to become more active on the list again, but will be
away for the next ten or twelve months (having to go to the army).
Because of that I won't be able to port the patch below to a newer
version, so I'm sending it for 2.6beta19 (sorry).
It contains some thing I was playing with for some years now, in
short:
- Completion character equivalence classes: some characters can stand
for others when completing (e.g. `-' can stand for `-' and `_'),
this is under complete user control.
- An option to make completion case-insensitive.
- The possibility to complete parts of words: words are considered to
contain multiply parts separated by certain characters (which ones
is under user control) and completion works on all parts
simultaneously, if `.' is a separator, `c.s.u<TAB>' may turn into
`comp.sources.unix'. The separation charcaters are given in a new
special parameter. The funny thing: if this contains `/', some
multi-comp like path completion is done (but without the need for
menucomplete being set and somewhat faster).
- An option for automatic glob completion. This works by temporarily
turning on glob_complete (if the normal completion didn't give any
result), inserting `*' at the beginning and end of the word and the
current cursor position and then trying again. This is handy if you
know a unique substring in one of the completions. Typing this and
hitting tab will give you the word with the substring.
- Internally, the patch makes whole words be stored in the list of
matches, which allows some simplifications (I guess you know ;-).
Ok, the names of the parameters and for the options are probably not
the best ones, the code for the option handling has to be changed and
since this is very old code, there may be some other things to change
to port it to the current version, but I hope the description above
sounds promising enough to try it...
Anyway, I have to go now, good bye
Sven
begin 600 comp-patch.gz
M'XL("#N3>#(``V-O;7`M<&%T8V@`U#S[6]LXMC]G_@K!?#LDP:1)(#S+[+(M
MG>&[E/8"\[K=+JO8"GAQ;&,Y4#K#_W[/.7I8<IP6.KMWY_*UU)&/I/-^26D4
M3R9L+61G1?CL,LG&O9#U>L^R)'I6C7S5[78=@-;YU8R]YO=LN,X&&[O]]=W1
M%AOL[&Q^M;:V-C^[]:J(%?@&Z^\`[.Z@K\"[_@]M,QCU-X/!:+#.:(BQ5HO!
M3YBE99S.Q!Z-/.NRO!"3^`/C:<3D;$*/A6`?$\'*(@ZO17'/NL\(.)ZP]E(4
M%Y)]\PU;"K,D2Z=9!!^^6M*+M]N(Z04L22"R+/+)!SL6L$G:Z5A@]MMO3+V#
M?0V\-/`PIN!A1C/NB$Z437D97K4G:<#"@%U.+M(,IT=9*3L=]JN="H0"?'D5
M2Y;RJ6`T3<*`8#DO2U&DO5X/"47.5ZR#3VO_$=:%3^5=^$=@7E2S`9[(WE5=
MD6G0LP0::;W.4J7=?32&]9U/&8.:X=C#8+`[ZN\.AHOM87.X'FP.MY4UX))J
M8,?(&']^7>;)';^792;2:#E@!\<_'?QR=O[F\.3E0U#!Y#F\!FZ467&/4&_?
M`L#W1P!X^HL+-RNSD);YX?S-"UQAU7F#9(39-$]$*33,=\=O_OKBS>NWQX?G
MA[5U$MA-0QW#1K6W4Y'.]-O7AR<_U-ZBS%#W-,3)P>O#ET>G9P#5R*?UK6!S
M8^CP:7T;!C9\/H41'R?BEM.J+UX>_/7X\,<#6M-"7'$IDCB])HCO#\X.CX].
M_LN#T-3S)`90`M/$'QP?`?R9PS$#.P$M"`':`7[UYOCE"P!O6#E.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F6D(J901!^C)7)6-TD;S\V260@HGJ\2O>0P
M(I[2_,#>2`E8L@6QJG@1-:T$!(2-BM";HR<_G9W\<JSX_"+X%"]6"Z^(_S!$
M8B5+`'+XH>-I<-WS^`Y"N/"28"E*),>8F*4TE%PN5VG(:T'*5IU-FZG9RG@K
*_1^QD6PV?ZX``-WS
`
end
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
----- End of forwarded message from Sven Wischnowsky -----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh-equivalent for tcsh option "set complete=enhance"?
1997-03-05 21:22 zsh-equivalent for tcsh option "set complete=enhance"? Zoltan Hidvegi
@ 1997-03-11 17:19 ` Peter Stephenson
0 siblings, 0 replies; 4+ messages in thread
From: Peter Stephenson @ 1997-03-11 17:19 UTC (permalink / raw)
To: Zsh hackers list
Zoltan Hidvegi wrote:
> >From wischnow@informatik.hu-berlin.de Thu Oct 31 13:06:39 1996
> Because of that I won't be able to port the patch below to a newer
> version, so I'm sending it for 2.6beta19 (sorry).
>
> It contains some thing I was playing with for some years now, in
> short:
>
> - Completion character equivalence classes: some characters can stand
> for others when completing (e.g. `-' can stand for `-' and `_'),
> this is under complete user control.
> - An option to make completion case-insensitive.
I thought about this and (although I don't myself writing it without
several years more experience in the relevant code) I don't see why it
shouldn't be a little more general and in some sense zsh-like.
What I had in mind was that instead of using global arrays there is an
extra option to compctl (say -M for modify match) that says what can
be done to the command argument to make it match the candidate. For
example,
-M 'c,E[[-_],],e[no,],E[\?,[A-Za-z]]'
says:
- this completion is to be performed with case-fold search (you'll see
this is the same as E[[A-Za-z],[A-Za-z]], but this is probably common
enough for a shorthand)
- any _ or - in the argument matches the empty string in the candidate
(and hence should be discarded) --- E specifies pattern matching
- likewise, the string 'no' is to be replaced with an empty one; (e
for a string; the e/E distinction is like extended completion) [this
replaces all no's, not just at the beginning, haven't thought what to
do about that]
- a real ? (because quoted) in the argument is equivalent to a single
alphabetic character in the candidate.
So, with the above
setopt no_SH_WO?D_SP<TAB> -> no_SH_WO?D_SPlit
^ not actually any use,
just an example
Maybe a general pattern behaviour like this is too difficult and it
needs instead to involve character classes and strings instead. I've
really no idea whether this double pattern matching is feasible in an
efficient fashion. In fact, this is obviously going to be a lot
slower than Sven's proposal, although one only gets the overhead when
one needs it.
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: zsh-equivalent for tcsh option "set complete=enhance"?
@ 1997-03-15 12:09 Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 1997-03-15 12:09 UTC (permalink / raw)
To: zsh-workers
Zoltan Hidvegi wrote:
>
> Armin Fessler wrote:
> >Is there any equivalent in the zsh for the above option that makes completion
> >ignore case (and also `.', `-' and `_')? Or has anybody written a tool for it?
> >For some people that is the only reason why not to use zsh instead of tcsh.
> >I also think it is a nice feature.
>
> Unfortunately zsh does not have this feature, although something similar is
> programmable with compctl -K (see Functions/multicomp for example).
>
> Sven sent me a patch some time ago which was not up-to-date. Here I
> forward the complete letter from Sven. Note that it contains a patch which
> should be modified before it can be used in the current zsh. I was
> planning to look at this patch after zsh-3.0 is finalized.
>
> Zoltan
>
> ----- Forwarded message from Sven Wischnowsky -----
>
> >From wischnow@informatik.hu-berlin.de Thu Oct 31 13:06:39 1996
> Message-Id: <m0vIvuv-0003wOC@adler.informatik.hu-berlin.de>
> Date: Thu, 31 Oct 96 13:08 MET
> From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
> To: hzoli@cs.elte.hu
> Subject: Zsh patch
> X-Status:
>
>
> Hello
>
> I was planning to become more active on the list again, but will be
> away for the next ten or twelve months (having to go to the army).
>
> Because of that I won't be able to port the patch below to a newer
> version, so I'm sending it for 2.6beta19 (sorry).
>
> It contains some thing I was playing with for some years now, in
> short:
>
> - Completion character equivalence classes: some characters can stand
> for others when completing (e.g. `-' can stand for `-' and `_'),
> this is under complete user control.
> - An option to make completion case-insensitive.
> - The possibility to complete parts of words: words are considered to
> contain multiply parts separated by certain characters (which ones
> is under user control) and completion works on all parts
> simultaneously, if `.' is a separator, `c.s.u<TAB>' may turn into
> `comp.sources.unix'. The separation charcaters are given in a new
> special parameter. The funny thing: if this contains `/', some
> multi-comp like path completion is done (but without the need for
> menucomplete being set and somewhat faster).
> - An option for automatic glob completion. This works by temporarily
> turning on glob_complete (if the normal completion didn't give any
> result), inserting `*' at the beginning and end of the word and the
> current cursor position and then trying again. This is handy if you
> know a unique substring in one of the completions. Typing this and
> hitting tab will give you the word with the substring.
>
> - Internally, the patch makes whole words be stored in the list of
> matches, which allows some simplifications (I guess you know ;-).
>
> Ok, the names of the parameters and for the options are probably not
> the best ones, the code for the option handling has to be changed and
> since this is very old code, there may be some other things to change
> to port it to the current version, but I hope the description above
> sounds promising enough to try it...
>
I still only have the weekends here, but I tried to port the whole
thing to 3.1.1. If you find errors, I can probably try to fix them
next weekend.
One comment to Peter, who wrote:
>
> I thought about this and (although I don't myself writing it without
> several years more experience in the relevant code) I don't see why it
> shouldn't be a little more general and in some sense zsh-like.
>
> What I had in mind was that instead of using global arrays there is an
> extra option to compctl (say -M for modify match) that says what can
> be done to the command argument to make it match the candidate. For
> example,
>
> -M 'c,E[[-_],],e[no,],E[\?,[A-Za-z]]'
>
> says:
>
> - this completion is to be performed with case-fold search (you'll see
> this is the same as E[[A-Za-z],[A-Za-z]], but this is probably common
> enough for a shorthand)
>
> - any _ or - in the argument matches the empty string in the candidate
> (and hence should be discarded) --- E specifies pattern matching
>
> - likewise, the string 'no' is to be replaced with an empty one; (e
> for a string; the e/E distinction is like extended completion) [this
> replaces all no's, not just at the beginning, haven't thought what to
> do about that]
>
> - a real ? (because quoted) in the argument is equivalent to a single
> alphabetic character in the candidate.
>
> So, with the above
>
> setopt no_SH_WO?D_SP<TAB> -> no_SH_WO?D_SPlit
> ^ not actually any use,
> just an example
>
> Maybe a general pattern behaviour like this is too difficult and it
> needs instead to involve character classes and strings instead. I've
> really no idea whether this double pattern matching is feasible in an
> efficient fashion. In fact, this is obviously going to be a lot
> slower than Sven's proposal, although one only gets the overhead when
> one needs it.
>
Sure, the thing below is a bit un-zshish (while still more zshish than
the simple tcsh-thing). And I agree that some more flexibility would
be a good thing. The one reason I didn't use compctl-flags was that I
wanted the whole things to be usable for all completions, even for
those for which compctl are defined (I had the same wish for a more
general approach when thinking about the same example: options. The
`-_' thing was nagging at me for quite some time.). This was, as I
just realised, stupid, since we can use the combination with the -T
flag for those kind of completion-word-modifications.
Hm. I'll think some more about this, but don't hold your breath.
Bye
Sven
P.S.: I hope the yodl-stuff is correct, we don't have it here so I
couldn't try it out.
begin 600 patch.gz
M'XL("%B+*C,"`W!A=&-H`,P[:U?C1K*?G5_1L'N";&2/'Q@PA.PR#)/E+@-S
M@#G99#(ALMS&6F1)HY8Q3,+][;>J^J%N63"9S=F[R\D0J=5575WOJFXFT73*
MVB&[S,,7-W$Z[H2LTWGQ2<Q>E"-?M5HM:T+C<I&P_PD2UANQWM;>H+LWV(;G
MT<Y7[79[%;IQ&13L39`SMDO3^WN]+3F]Y?[0,H/=@3\8=1D-,-98SJ*8,\^;
M)NR`?<IY,)E$N1>GX:W/>LTF^_IKML;S?!H'-TWV*T(P^'G18EG.I]$]"Y()
M$XLI/>:<?0)D11Z%MSQ_8*T7>GXT9=X:(!:$+TSC-)FG$WCY:HTU&IZ'.[D&
MC/19%'DVO3=C/ILFS29-9+_]QN0X+*GG"CT7QN1<F`WK-L(T*:)DP?=M*B;I
M/"C"&>S79Z'/;J;728K0D[003;7#!FP/YA:S2+`DF'-&(`(&.,N"HN!YTNET
M<'LH$,U1>&[_EW(T_!*6AO]AGDXJ%A/$HC.KJCT-.G9#(\9TV)#U^WO=G;U!
M[TG341"6]0S1>@:#IZUGN[?C;_?[TGH0I1S8UL)G\._X'U?'%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Q@O9J<>M:,%1YK8;NTMM#.UO?%EE78@B?`-%?DLKZ8&5WO9
M1H/BFK?2P741(MIF962P\BM9%'#SU["C:EP.[67P`$*DG5KP:X9:L!7A?$F*
M<&`-&]G-M@:,4H?*?E<_6)GXW:+#?^)?-PMGX<G4<F&J?<FJVJ%LK9[(VT/Z
MDSZ8*2?#84WEL7FP3P0P]XPD=-WLS"N0]KOR"3#Z!K/,;T8>7]SH)N0YAMT3
MS`5+GA'L^2=C?Y#A9VL+;8H=:#/S\D.X+"!70Q[N5>/+L*@'D@LOE/Y"Z:I]
M&#:&IQ_BX_"6DCZ6`=5[U(Y'=2]ZAX=`?/HKU#?<.W=,RRK/0=2X(JG!E.0F
M,V=+?L.1(H,_*YW^$<:BH=Y;<!L>L&M[@=[^<`AVR+`*M1SGF"F4K$N,FBKB
M#Z?>F)\0Z'PNUKXJZX=RF?)+\W59-,6J?;=<ERW_N+\.;?C+>YN/DQ%<O4[3
MN)B16\6DLD);:"DN"%,FZ.D-'0-]XQ[9XNF2=UG70)WC9!+X]0QRR8[N`"+/
M!KP/+@.V0R=JB'9;7F,'RB5-L`@\X7!%#KJC87O0]=ZN3YSC'>>0YRB<G-N?
M%6SU*KK?C.:^CY](Y_JU-1YC'$HO7%LU].%(,4.E^KDQ'OB]IEJ7=\FX?/'L
MU1,*3_N;+<0K!$3V>?W*KNA7MJU?F>L7_>5@Y@X=C&?%'Z"&=+A>8(X?4:['
G&-_L[7!L1];4R:@]Z'4J:^K+SNUG+\#;6\J?0[__!0W#G,"'J@``
`
end
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* zsh-equivalent for tcsh option "set complete=enhance"?
@ 1997-03-05 20:45 Armin Fessler
0 siblings, 0 replies; 4+ messages in thread
From: Armin Fessler @ 1997-03-05 20:45 UTC (permalink / raw)
To: zsh-workers
Is there any equivalent in the zsh for the above option that makes completion
ignore case (and also `.', `-' and `_')? Or has anybody written a tool for it?
For some people that is the only reason why not to use zsh instead of tcsh.
I also think it is a nice feature.
Thanks,
Armin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-03-15 12:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-05 21:22 zsh-equivalent for tcsh option "set complete=enhance"? Zoltan Hidvegi
1997-03-11 17:19 ` Peter Stephenson
-- strict thread matches above, loose matches on Subject: below --
1997-03-15 12:09 Sven Wischnowsky
1997-03-05 20:45 Armin Fessler
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).