Re: Re: Re: [dwm] dwm-0.9 / dmenu-0.4

From: Tube <tube_AT_count0.net>
Date: Wed, 16 Aug 2006 10:23:14 +0200

On Wed, Aug 16, 2006 at 10:10:39AM +0200, Anselm R. Garbe wrote:
>
> In the following the '*' character indicates a selected tag.
>
> 0 1 *2 *3
>
> The situation means, that 2 and 3 are selected.
> What should a viewprev() do in this scenario?
> What should a viewnext() do in this scenario?
>
> Now assume this:
>
> *1 *2 *3
>
> What should a viewprev() do in this scenario?
> What should a viewnext() do in this scenario?
>
> Where is the general case? Where is predictability?

i got your point ;) it could be as simple as:
if ( > 1 tag is selected )
then
  deselect all tags
  jump to first (i.e. the hardcoded one in the list of tags) tag
  select that first tag
else
  go to next tag
endif

or won't that work?

tube

-- 
tube_AT_count0.net
http://count0.net
Received on Wed Aug 16 2006 - 10:23:17 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:10 UTC