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

Re: gripes



Clint Adams wrote:

> ...
> 
> Also, this is from a user:
> 
> -----------------
> I set:
> 	setopt nomenucomplete bashautolist noautomenu
> but, after pressing TAB a few times, it still starts cycling.
> Also, there does not appear to be an option to put the cursor below the
> listed possible completions. These abberations are especially annoying
> for people who are addicted to bash's tab-completion but would like to
> switch to zsh for its more advanced feature-set.
> 
> ------------------
> 
> I assume that he is using the new completion system, since it does start
> cycling even if the options are set as he says.

Yep. This was never easy. The patch below fixes it for me. It isn't
nice (because it tests the AUTO_MENU option), but the whole logic of
it is getting too complicated for me.

Bye
  Sven

Index: Src/Zle/compcore.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compcore.c,v
retrieving revision 1.51
diff -u -r1.51 compcore.c
--- Src/Zle/compcore.c	2001/10/09 09:50:21	1.51
+++ Src/Zle/compcore.c	2002/01/07 14:41:46
@@ -842,7 +842,8 @@
 	}
 	startauto = ((compinsert &&
 		      !strcmp(compinsert, "automenu-unambiguous")) ||
-		     (bashlistfirst && (!compinsert || !*compinsert)));
+		     (bashlistfirst && isset(AUTOMENU) &&
+                      (!compinsert || !*compinsert)));
 	useexact = (compexact && !strcmp(compexact, "accept"));
 
 	if (!comptoend || !*comptoend)

-- 
Sven Wischnowsky                           wischnow@xxxxxxxxx



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