Displaying only selected tags in taglist
Add taglist.filter.selected() for displaying only currently selected tags
This commit is contained in:
parent
30b313f77a
commit
ac5f8c69a7
|
@ -196,6 +196,14 @@ function taglist.filter.noempty(t, args)
|
||||||
return #t:clients() > 0 or t.selected
|
return #t:clients() > 0 or t.selected
|
||||||
end
|
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.
|
--- Filtering function to include all tags on the screen.
|
||||||
-- @param t The tag.
|
-- @param t The tag.
|
||||||
-- @param args unused list of extra arguments.
|
-- @param args unused list of extra arguments.
|
||||||
|
|
Loading…
Reference in New Issue