Displaying only selected tags in taglist

Add taglist.filter.selected() for displaying only currently selected tags
This commit is contained in:
Rastislav Barlik 2015-01-06 12:49:19 +01:00
parent 30b313f77a
commit ac5f8c69a7
1 changed files with 8 additions and 0 deletions

View File

@ -196,6 +196,14 @@ function taglist.filter.noempty(t, args)
return #t:clients() > 0 or t.selected
end
--- Filtering function to include selected tags on the screen.
-- @param t The tag.
-- @param args unused list of extra arguments.
-- @return true if t is not empty, else false
function taglist.filter.selected(t, args)
return t.selected
end
--- Filtering function to include all tags on the screen.
-- @param t The tag.
-- @param args unused list of extra arguments.