Irssi Notes:

default

 
Change color of joins, parts, quits to dark grey
-----------------------------------------------
The default global theme can be in different locations.
On arch:
/usr/share/irssi/themes

Inside irssi if you save the config /save it will copy the theme
to ~/.irssi and edits will only change for current user.

Part, Joins, Quits can be overwhelming sometimes. If you
don't want to hide them, you can change the color, so they
are not clashing with useful chat. 

To change the hostname color and join message to dark grey,
change %c and %n to %K: (%K = dark grey)
In default.theme find this line:
# highlighted nick/host is printed (joins)
Change both these lines:
channick_hilight = "%C$*%n";
chanhost_hilight = "{nickhost %c$*%n}";
To be:
channick_hilight = "%K$*%K";
chanhost_hilight = "{nickhost %K$*%K}";

Can do the same thing for parts, quits:
# nick/host is printed (parts, quits, etc.)
channick = "%c$*%n";
chanhost = "{nickhost $*}";
To be:
channick = "%K$*%K";
chanhost = "{nickhost %K$*}";

end-Change color of joins, parts, quits to dark grey
----------------------------------------------------

/connect - connect to a network. Can connect to more than one server
/connect irc.choosenServer.com -p 6667
/connect irc.ircServer2.edu
-p = port
^x can be used to switch between the servers

/server irc.anotherServer.com
# Will disconnect you from current server, and connect to another
# Use /connect serverName and you can connect to more than one

[22:18] [joeMammies(+iwx)] [5:ircNetz/#roomName]
[22:23] [joeMammy(+iwx)] [1:ircNetz (change with ^X)]
The status bar will show what network is active 

alt-# - change window 1-9
alt-(q-o) - change to window 11-19
alt-leftArrow - jump to previous window
^p - previous window
alt-rightArrow - jump to next window
^n - next window
Use arrows if more than 19 windows are open. alt-o to jump to 19,
then alt-rightArrow to jump to 20, etc. Could also alt-leftArrow
from from window 1 to get to last window
alt-a - jump to the next most important window (activity change, etc)

/window last
go to the last window you were in
/bind ^z command window last
If you use irssi inside tmux/screen sending to background (the default),
may not be as useful as jumping to the last window.

/window goto #
Go to window 1-9, etc
/window goto nickNamed
Go to window with that nickname
/window goto channelName
Go to window housing chosen channel name

/alias w /window goto
Now /w can be used instead of /window goto /w 5 
*This will replace the default of /w = /who,
so if you bind this use /who , as needed.


Esc-# - change window 1-9
Esc-(q-o) - change to window 11-19
Escape can also be used if meta key is preoccupied. When using
escape, don't hold it down. Press Esc, let go, then press 1.
Useful inside a tiling window manager, that uses alt for meta.


/bind - bind new shortcut keys
/help bind
for more info (displays help on status window)

/bind -list
To see a list of all bindable commands

/bind home command /sb home
/bind end command /sb end
Binds home/end keys to jump to top and bottom of window.
*By default these go to front and start of input line.
*Normal bash shortcut keys can be used for this: ^a ^e

^u - delete entire line (differs from bash)
^w - delete from cursor to beginning of word
^k - delete from cursor to end of line

PageUp
alt+p
scroll window up half a page

PageDn
alt+n
scroll down half a page 

/scrollback home
/sb home
Go to top of page

/scrollback end
/sb end
Go to bottom of page

/scrollback goto 08:00
/sb goto 16:22
Scroll log back to certain time in current day

/sb goto -120
Scroll back 120 lines

/sb goto +23
Scroll forwards 23 liens

/scrollback clear
Clear screen and free all memory from text in window's buffer

alt+1
Window 1 (status window by default)


/disconnect - disconnects from a network

/join #help - join help channel
/j help - shorter method to join help

/list - list channels on server

/query joeMammy 
Open private chat with  joeMammy

/window close
/wc
close window

/help
Displays help

/help levels
Displays help on chosen topic

/set activity_hide_level QUITS JOINS PARTS KICKS MODES TOPIC NICKS
Stops activity/status bar from updating as new content when someone
joins, parts, gets kicked, etc


/ignore -regexp -pattern ^l[aoeui]+w?lz?|r[aoeui]+[lfk][lfk]z?$
Use regexp to ignore particular messages, adjust as desired


/SET autolog ON
Turn on logging

/SET autolog_path ~/irclogs/%Y/$tag/$0.%m-%d.log
Save logs in folder by year then channel and month/day

/set autolog_level ALL -CRAP -CLIENTCRAP -CTCPS -JOINS -PARTS -QUITS
Log everything except some junk

/mode usrName +D
sets deaf to channel messages

/MODE +o nick
Give operator status to person


Troubleshooting
---------------

############################################
# Irrsi keeps trying to connect to a server:
#-------------------------------------------
; 23:40 [srvrNm] -!- Irssi: Looking up srvrNm.smNet.net
; 23:40 [srvrNm] -!- Irssi: Unable to connect server srvrNm.smNet.net 
          port 6667 [Name or service not known]

/server
# Displays a list of servers. There will be at tag for the servers.
# TagName: irc.tagName.net:PortNum (tag name will have ":" at end)
# Usually the reconnecters will have Recon-1/2/3/47
# RECON-1: irc.tagName.net:6667
# To stop the recons do:

/disconnect recon-1
; 00:03 -!- Irssi: Removed reconnection to server irc.tagname.net port 
          6667

/rmreconns
# Lazy way
# This will stop all reconnects. Use at own discretion

# end-Irrsi keeps trying to connect to a server:
################################################

default