Version: WeeChat 1.8
Operating system: Archlinux (Linux my-laptop 4.11.3-1-ARCH #1 SMP PREEMPT Sun May 28 10:40:17 CEST 2017 x86_64 GNU/Linux)
Steps to reproduce: open a buffer with a really long name.
Actual result: the sidebar will grow too much to be able to display this name.
Expected result: the sidebar should truncate names that are too long, to avoid having a tiny buffer window.
Thanks to add this improvement to avoid having sidebar too wide.
The maximum size of the buflist is 18 characters by default, you can change it using /set weechat.bar.buflist.size_max <new value>. If you're still using buffers.pl, the setting is named weechat.bar.buffers.size_max.
You can also cut names of buffers inside the bar using ${cut:...} or ${cutscr:...} in evaluated formats of buflist (see /help eval for the syntax).
Oh, for some reason, my size_max was set to 0.
Thanks.
The size_max is 0 for the buflist bar by default (so it has no max size, like the nicklist).
Example:
/set buflist.format.buffer ${format_number}${cut:20,...,${format_nick_prefix}${format_name}}
Most helpful comment
The maximum size of the buflist is 18 characters by default, you can change it using
/set weechat.bar.buflist.size_max <new value>. If you're still using buffers.pl, the setting is namedweechat.bar.buffers.size_max.