awful.tag: fix and improve tag history
commit529502ffbf9c99bd8cdf0c819610651f652db31d
authorkoniu <gkusnierz@gmail.com>
Thu, 27 Aug 2009 14:03:45 +0000 (27 15:03 +0100)
committerJulien Danjou <julien@danjou.info>
Mon, 31 Aug 2009 08:44:33 +0000 (31 10:44 +0200)
treeb0909e6fdb524b61ff203b7ae716443232da74da
parent3145e3145e5469ac4efc1eea3d31fa644a4fc26f
awful.tag: fix and improve tag history

This fixes a long standing tag history breakage. To store history
of tag switching we rely on a special signal "tag::history::update"
which needs to be emitted by any function which deals with tag
selection.

History is multi-level with a configurable limit:
awful.tag.history.limit = 20 (by default).

awful.tag.history.restore function gets a new argument 'idx' which can
be either 'previous' (default) which will revert to the previously
selected set of tags, or a numerical index in the tag history table.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful/tag.lua.in