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

Re: PATCH: Re: 3.1.7-pre-1: Problem with scrolled completion listings



On Apr 25,  2:17pm, Sven Wischnowsky wrote:
} Subject: PATCH: Re: 3.1.7-pre-1: Problem with scrolled completion listings
}
} Bart Schaefer wrote:
} 
} > that the selection disappears, and you're now stuck repeatedly selecting
} > the file name that would be visible if only the status line weren't there.
} 
} I forgot to re-calculate the number of the line the mark is on for the 
} completion widgets inside menu-selection.

This works now, thanks.

However, I'm confused.  I don't want scrolling.  I have LISTMAX=100, not
LISTMAX=scroll.  Yet still I get scrolling.

Minor nit:  The prompt ending in "... continue?" makes me think I should
hit `n' to stop.  But that inserts an `n'.  The prompt shouldn't ask a
question, it should make a statement about what to do next, which is a
bit difficult in the space that's left after "Current position at top:".
How about something like

LISTPROMPT='%SAt %p: Hit TAB for more, or the character to insert%s'
SELECTPROMPT='%SScrolling: current selection at %p%s'

Finally, I'm a bit worried that SELECTPROMPT is going to be confused with
PROMPT3/PS3.  Not greatly worried, but worried.  Hmm; radical suggestion:
let's rename some variables:

	SELECTMIN	-->	MENUSELECT
	SELECTPROMPT	-->	MENUPROMPT
	SELECTSCROLL	-->	MENUSCROLL

I realize the first breaks symmetry with LISTMAX, but of course even
LISTMAX is now a misnomer since it doesn't have to have a numeric value.
Since LISTMAX is used by compctl, it'd probably be better to not overload
it in that way, and instead add another variable (or a style) for scroll.

} I would like to hear what you think about this going-back in
} completion lists (non-menu-selection) and about the make-listing-look-
} like-menu-selection-probably-even-keeping-the-prompt-on-the-line
} thing. As opposed to the current should-work-on-almost-every-terminal
} version we have now. Or maybe you don't care?

You're going to have to explain a bit more, or point me at article numbers.
There was a lot of stuff from the week I was gone that I just skimmed over.
I suspect I'm going to say that I think it should stay as it is (modulo my
being able to turn it off), but ...

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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