Multiline support in weechat

Published 2019-09-03 16:00:52

By default weechat doesn’t support multiline messages, but you can have that using the multiline.pl. In order to install it just run weechat and write /script. There you’ll see a lot of nice scripts to customize weechat. Write multiline and press return to filter the plugins by that keyword. Then just select it if it’s not selected already and then write i then return. Then you’ll have multiline enabled :).

You’ll notice that when you press return it does have some kind of delay, that’s part of the plugin. By default you’ll be waiting for each message, but we can avoid that.

Using this configuration you’ll have the regular return and multiline with Alt+return:

/key bind meta-ctrl-M /input insert \x0a
/set plugins.var.perl.multiline.magic_enter_time "1"

With this you’ll be able to also edit pasted multilines :).

Enjoy!

References: