Re: join in new split window

Tristan Horn <[email protected]>
Newsgroups gmane.network.irc.irssi.user
Message-ID <[email protected]>
On Thu, Aug 17, 2006 at 06:35:34PM -0400, Joe Paxton wrote:
>After doing "/set autocreate_split_windows on", the following alias
>works
>
>alias WJ join #CHANNEL; window balance
>
>However, I would also like to have an alias that closes a given channel
>and balances the remaining windows. I tried
>
>alias WP part #CHANNEL; window balance
>
>The part works, but not the balance. Any ideas?

If the window is already getting properly destroyed when you part, then 
the problem may be the delay between the time that the PART message is 
issued to the server and the time that you receive the PART message 
back.

ircII had a hack that would let you do something immediately after a 
local server command completes (see /help wait in an ircII client for 
more details).  As far as I know, irssi doesn't have the same hack, 
although it does have a WAIT command.

This alias of mine does something entirely different, but I think you 
should be able to borrow the same principle:

Aliases:
wb         exec screen -X fit;timer add screenfit 1 1 win bal

(This implementation needs http://irssi.org/scripts/scripts/timer.pl.  I 
wonder if irssi's builtin WAIT would work?)

hope this helps,
Tris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.