Description
hi there
buffers.pl
has this option called detach_buffer_immediately
. when i read the description, it seems to be the thing which should do exactly what i want to do:
https://github.com/weechat/scripts/blob/master/perl/buffers.pl#L781-L788
"detach_buffer_immediately" => [
"detach_buffer_immediately", "string",
"comma separated list of buffers to detach immediately. A query and ".
"highlight message will attach buffer again. Allows \"*\" wildcard. ".
"Ex: \"BitlBee,freenode.*\"",
"", 0, 0, "", "", 0,
"", "", "buffers_signal_config_detach_buffer_immediately", "", "", ""
],
However setting it does not in fact fully close my unwanted buffer windows. I honestly wish it would. This is so supress many znc *status
buffers, which keep auto-opening.
With it set to:
detach_buffer_immediately = "*status,*q,*sasl"
There is an effect... What happens is to merely hide them from being indicated in the buffers bar while they are inactive. If scrolling left - right (to be cycling through all the buffers), then it reveals these buffers when they become active.
They are still open, buffers are not closed.
When I check through the buffers.pl source code, and I cannot find any place where it actually tries to close the buffer. It currently does a 'next' (skip) operation when it is building the buffers bar list... Which is not enough.
What I would like to do, is improve this buffers.pl code option do some actual part / detach / and buffer close operation. So those window are gone... Until the user manually opens again with a /query *status
etc and so on as is already described in the setting's description comment. Is that OK? Or do we need another 2nd option?