Skip to content

Instantly share code, notes, and snippets.

@lacygoill
lacygoill / cycle_cond.md
Created August 10, 2023 16:07 — forked from pascalpoitras/cycle_cond.md
made for someone on IRC

WeeChat Screenshot

Aliases

/alias add cycle_build /mute /unset plugins.var.buffer_cycle;/mute /set plugins.var.buffer_cycle_cond $*;/allbuf /eval /${if:${eval_cond:${plugins.var.buffer_cycle_cond}}!=?mute set plugins.var.buffer_cycle ${plugins.var.buffer_cycle} ${buffer.name}}
/alias add cycle_cond /cycle_build $*;/eval /mute /buffer cycle ${plugins.var.buffer_cycle}

Examples

/cycle_cond ${channel} =~ l