John Maguire

How to configure a Weechat ignore list toggle


I spend a bit too much time on IRC. Spend enough time and you’ll run into someone you’d rather not engage with.

While Weechat offers the ability to ignore users, until recently you couldn’t retroactively disable the ignore to see what was said. This can be a problem if you’ve ignored someone who ends up involved in a conversation you’re actually interested in.

Helpfully, Weechat 4.2.0 added a new option irc.look.ignore_tag_messages which allows you to tag messages from ignored users instead of removing them. You can then add a manual filter for the tagged messages, which can be enabled or disabled dynamically.

To enable the feature, you can run the following in Weechat:

/set irc.look.ignore_tag_messages on
/filter add ignored * irc_ignored *

Then manage your ignores as usual (e.g. /ignore add <nick>) and messages from those users will be hidden. The following commands will toggle visibility of ignored users’ messages:

/filter disable ignored
/filter enable ignored

Or, for quicker access, bind toggle to a key (hint: run /key bind meta-i first to make sure it’s not already bound):

/key bind meta-i /filter toggle ignored

Happy idling!