Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: insert-tab default



Peter Stephenson wrote:

> Sven Wischnowsky wrote:
> > Oops.  That's from:
> > 
> >   zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
> > 
> > in _main_complete.  Should we change the code or the docs?
> 
> The traditional behaviour of tab at the start of line seems to be `true',
> as the doc suggests, so I suggest we change the code to use that.

That's what I'd prefer, too.

> > > By the way, I was having some problem with another apparently trivial
> > > widget, expand-or-complete() { zle .expand-or-complete; }, which frequently
> > > made the shell crash.  Unfortunately, it doesn't do this with the default
> > > settings and I haven't traced what was doing it.
> > 
> > Hm, can't reproduce that.  Will keep trying...
> 
> May not be worth it until I can localise it a bit better.  It doesn't seem
> to be happening here, although it was easy to find at home last night.

Ok.

> > P.S.: longest=( ${(M)array:#${~${(O@)array//?/?}[1]}} )
> 
> Hmmph.  Not sure if I want to change that section or not, now.

I didn't mean to say it should be changed (especially because it
doesn't use the (l:...:) trick).

Interesting reading again, Peter, well done.


Bye
  Sven

Index: Completion/Base/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Core/_main_complete,v
retrieving revision 1.3
diff -u -r1.3 _main_complete
--- Completion/Base/Core/_main_complete	2001/06/20 17:42:15	1.3
+++ Completion/Base/Core/_main_complete	2001/08/17 10:29:40
@@ -33,7 +33,7 @@
 
 [[ -z "$curcontext" ]] && curcontext=:::
 
-zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=no
+zstyle -s ":completion:${curcontext}:" insert-tab tmp || tmp=yes
 
 if [[ ( "$tmp" = *pending(|[[:blank:]]*) && PENDING -gt 0 ) ||
       ( "$tmp" = *pending=(#b)([0-9]##)(|[[:blank:]]*) &&

-- 
Sven Wischnowsky                    wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author