Re: [dev] dmenu idea and diff, Ability to set menu width

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Sat, 17 Mar 2012 18:45:10 +0100

On 17 March 2012 18:39, Josh Hogan <josh_AT_sarafynn.org> wrote:
> This particular flag was built with vertical in mind.  The only use in
> Horizontal mode would be if there were parts of your status bar you didn't
> want hidden (dmenu everything but the tray & clock for example).

Ok

> While I like the idea of dynamic resizing in general It does cause some
> inconsistent behaviors.  You have a consistently shrinking menu as you type
> that will grow again as you are making corrections and can be a bit
> disorienting as you're typing.  It also means that you will need to walk
> through the entire result list every time you press a character to recalc
> the width.  Walking through the visible options could work but that means
> that as you're scrolling through results your menu will keep resizing.  Also
> starting with full width means that as soon as you load up dmenu you are
> welcomed with a large amount of your screen covered with non-useful
> whitespace.

I wasn't suggesting resizing it depending on the match, but resizing
it to the given font metrics for the longest item read from stdin
instead (only once at the start of dmenu).

Cheers,
Anselm
Received on Sat Mar 17 2012 - 18:45:10 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 17 2012 - 18:48:06 CET