add

Function add 

Source
pub fn add<I, T>(
    output: &OutputHandle,
    tag_names: I,
) -> impl Iterator<Item = TagHandle> + use<I, T>
where I: IntoIterator<Item = T>, T: ToString,
Expand description

Adds tags to the specified output.

This will add tags with the given names to output and return TagHandles to all of them.

ยงExamples

// Add tags 1-5 to the focused output
if let Some(op) = output::get_focused() {
    let tags = tag::add(&op, ["1", "2", "3", "4", "5"]);
}