Hi Josh
I think we all agree that we'd like to see patches in unified diff format at
least. Unified diff gives some (3 lines above and beneath) context as to where
to insert and remove code lines which are edited, since you also didn't specify
if you used the current stable version or mercurial tip, which would be
preferred.
cheers!
mar77i
I think this is only useful for the vertical dmenu mode. Wouldn't it
be more useful to determine the width dynamically instead for the
longest menu item in such a case? (Initially full screen width, but
once all input items have been processed a resize would do). Thus an
additional flage wouldn't be required either.
Cheers,
Anselm
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.
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