4

How to list windows in irssi? I'm looking for the equivalent of :ls in vim (which lists the buffers).

For example, if I want to switch to a specific window (channel that I've joined), I have to search for it with ctrl-n and ctrl-p, sometimes switching through ~10 windows in the process. It would be preferable to list the windows with their titles and indeces, so that I could switch simply with alt-[index].

3

/win list

The command /win list yields something like this:

20:56 Ref  Name                 Active item     Server          Level
20:56 1    (status)                             Freenode        ALL
20:56 2                         #dailyminutes   DM              
20:56 3                         #lhspodcast     Freenode  
0

On #irssi @freenode, user named 'vague' gave an alias that prints the index and window's name:

/alias listwinanditems script exec print join" ",map{"\cD4/".$$_->{refnum}.":(\cD3/".((join"\cD6/,\cD3/",map$$_->{name},$$_->items)||$$_->get_active_name)."\cD4/)"}sort{$$a->{refnum}<=>$$b->{refnum}}Irssi::windows

He referred to it as Nei's alias.

I gave this alias the shorter name ls. So the usage is to switch to first window (alt-1) and enter /ls.

0

Nei, whose alias is in the other answer, suggested using iko_switcher. It requires uberprompt. Instructions on how to load and autoload scripts can be found here.

iko_switcher uses an interactive search dialog in the bottom bar that let's you do something similar to fuzzy searching (but it's called flex mode), and has a host of other interesting features. Its biggest advantage over Nei's alias in the other answer is that it doesn't polute the chat area.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.