# man n bind for help on this stuff

# %W means the window where the key was pressed
# ^ is shorthand for Control-

echo off

/bind F1 /away away
/bind F2 /ts
/bind F3 /log on
/bind F5 /savebuf
/bind F6 /url
/bind F7 NotifyWindow
/bind ^l /clear
/bind ^s /save
/bind ^z /hide
/bind ^o /mode +o \$nick

# insert bold char or kill line
#/bind ^u {%W insert insert \x1f}
/bind ^u {%W delete 0 end}

# insert mirc color code
#/bind ^k {%W insert insert \x03}

# insert beep
/bind ^g {%W insert insert \a}

# insert reverse char
#/bind ^r {%W insert insert \x16}

# Alt-Enter inserts newline
/bind Alt-Return {%W insert insert \n}

# launch the most recent url
/bind ^w /url last

# Alt + arrow keys move the nicklist selection
/bind Alt-Up {nicklistselection %W up}
/bind Alt-Down {nicklistselection %W down}

# switch windows
/bind ^Tab {circulate forwards}
/bind ^Shift-Tab {circulate backwards}

echo on
