A second stab at some functions to ease dynamic tagging.

I'm still not sure the best way to tackle Uli's complaints about my last
hack on a tag.rename function - so I'm staying a rewrite of that for now.

Thought sending this could elucidate some more comments though.
Especially I wonder what peoples opinions are on how sticky clients are
handled for deleting and moving tags to different screens.

In delete() the function bails if #clients > 0 and #tags = 1, so we
can't have any untagged clients.

In move_screen() if there is only one tag on a screen and also a
stickied client, then the tag is still moved, but so is the stickied
client.

I don't know how much I like this, but otherwise its clients with empty
tag tables. So then when they are un-stickied they disappear...

comments appreciated.

[PATCH 1/5] tag.lua: add() create tags with full table of properties
[PATCH 2/5] tag.lua: delete() intelligently delete tags
[PATCH 3/5] tag.lua: move() re-index tags
[PATCH 4/5] tag.lua: getidx() returns index of tag
[PATCH 5/5] tag.lua: move_screen() moves tag to another screen

-- 
perry

-- 
To unsubscribe, send mail to [email protected].

Reply via email to