All keys and mouse actions can be customized with the /key command.

Command line

Cursor movement

Key Description Command


Shift+
Ctrl+b

Go to previous char in command line.

/input move_previous_char


Shift+
Ctrl+f

Go to next char in command line.

/input move_next_char

Shift+

Go to previous line.

/input move_previous_line

Shift+

Go to next line.

/input move_next_line

Ctrl+
Alt+b

Go to previous word in command line.

/input move_previous_word

Ctrl+
Alt+f

Go to next word in command line.

/input move_next_word

Home
Ctrl+a

Go to the beginning of current line.

/input move_beginning_of_line

Shift+Home

Go to the beginning of command line.

/input move_beginning_of_input

End
Ctrl+e

Go to the end of current line.

/input move_end_of_line

Shift+End

Go to the end of command line.

/input move_end_of_input

Editing

Key Description Command

Del
Ctrl+d

Delete next char in command line.

/input delete_next_char

Backspace
Ctrl+h

Delete previous char in command line.

/input delete_previous_char

Ctrl+k

Delete from cursor until end of current line (deleted string is copied to the internal clipboard).

/input delete_end_of_line

Alt+Ctrl+k

Delete from cursor until end of command line (deleted string is copied to the internal clipboard).

/input delete_end_of_input

Ctrl+t

Transpose chars.

/input transpose_chars

Ctrl+u

Delete from cursor until beginning of current line (deleted string is copied to the internal clipboard).

/input delete_beginning_of_line

Alt+Ctrl+u

Delete from cursor until beginning of command line (deleted string is copied to the internal clipboard).

/input delete_beginning_of_input

Alt+Backspace

Delete previous word of command line (deleted string is copied to the internal clipboard).

/input delete_previous_word

Ctrl+w

Delete previous word of command line until whitespace (deleted string is copied to the internal clipboard).

/input delete_previous_word_whitespace

Ctrl+y

Paste the internal clipboard content.

/input clipboard_paste

Ctrl+_

Undo last action on command line.

/input undo

Alt+_

Redo last action on command line.

/input redo

Tab

Complete command or nick (Tab again: find next completion).

/input complete_next

Shift+Tab

Without completion: do a partial completion, with pending completion: complete with previous completion.

/input complete_previous

Enter
Ctrl+j
Ctrl+m

Execute command or send message (in search mode: stop search).

/input return

Ctrl+o

Execute the command found in history and insert the next one in the command line.

/input history_use_get_next

Alt+Enter

Insert a newline.

/input insert \n

Alt+d

Delete next word in command line (deleted string is copied to the internal clipboard).

/input delete_next_word

Alt+k

Grab a key and insert its code (and command bound if key exists) in command line.

/input grab_key_command

Alt+r

Delete current line.

/input delete_line

Alt+R

Delete entire command line.

/input delete_input

Color codes

Key Description Command

Ctrl+c, b

Insert code for bold text.

/input insert \x02

Ctrl+c, c

Insert code for colored text.

/input insert \x03

Ctrl+c, d

Insert code for colored text (RGB color, as hexadecimal).

/input insert \x04

Ctrl+c, i

Insert code for italic text.

/input insert \x1D

Ctrl+c, o

Insert code for color reset.

/input insert \x0F

Ctrl+c, s

Insert code for strikethrough text.

/input insert \x1E

Ctrl+c, v

Insert code for reverse color.

/input insert \x16

Ctrl+c, _

Insert code for underlined text.

/input insert \x1F

Command history

Key Description Command

Call previous command/message (in search mode: search up).

/input history_previous

Call next command/message (in search mode: search down).

/input history_next

Ctrl+

Call previous command/message in global history (common for all buffers).

/input history_global_previous

Ctrl+

Call next command/message in global history (common for all buffers).

/input history_global_next

System

Key Description Command

Ctrl+z

Suspend WeeChat process.

/sys suspend

Buffers

Key Description Command

Ctrl+r

Search for text in commands history (see keys for context "histsearch").

/input search_history

Ctrl+s

Search for text in buffer lines (see keys for context "search").

/input search_text_here

Ctrl+x

Switch current buffer if buffers are merged with same number, for example switch to another IRC server buffer.

/buffer switch

Alt+x

Zoom on merged buffer (Alt+x again: display all merged buffers).

/buffer zoom

PgUp

Scroll up one page in buffer history.

/window page_up

PgDn

Scroll down one page in buffer history.

/window page_down

Alt+PgUp

Scroll up a few lines in buffer history.

/window scroll_up

Alt+PgDn

Scroll down a few lines in buffer history.

/window scroll_down

Alt+Home

Scroll to top of buffer.

/window scroll_top

Alt+End

Scroll to bottom of buffer.

/window scroll_bottom

Alt+
Alt+
Ctrl+p
F5

Switch to previous buffer.

/buffer -1

Alt+
Alt+
Ctrl+n
F6

Switch to next buffer.

/buffer +1

Alt+j, Alt+f

Switch to first buffer.

/buffer -

Alt+j, Alt+l (L)

Switch to last buffer.

/buffer +

Alt+j, Alt+r

Switch to IRC raw buffer.

/server raw

Alt+j, Alt+s

Switch to IRC server buffer.

/server jump

Alt+0…​9

Switch to buffer by number (0 = 10).

/buffer *N

Alt+j, 01…​99

Switch to buffer by number.

/buffer *NN

Alt+n

Scroll to next highlight.

/window scroll_next_highlight

Alt+p

Scroll to previous highlight.

/window scroll_previous_highlight

Alt+u

Scroll to first unread line in buffer.

/window scroll_unread

Alt+Shift+U

Set unread marker on all buffers.

/allbuf /buffer set unread

Alt+<

Switch to previous buffer in list of visited buffers.

/buffer jump prev_visited

Alt+>

Switch to next buffer in list of visited buffers.

/buffer jump next_visited

Alt+/

Switch to last buffer displayed (before last jump to a buffer).

/buffer jump last_displayed

Windows

Key Description Command

Ctrl+l (L)

Redraw whole window.

/window refresh

Alt+l (L)

Toggle bare display.

/window bare

F7

Switch to previous window.

/window -1

F8

Switch to next window.

/window +1

Alt+w, Alt+

Switch to window above.

/window up

Alt+w, Alt+

Switch to window below.

/window down

Alt+w, Alt+

Switch to window on the left.

/window left

Alt+w, Alt+

Switch to window on the right.

/window right

Alt+w, Alt+b

Balance the sizes of all windows.

/window balance

Alt+w, Alt+s

Swap buffers of two windows.

/window swap

Alt+z

Zoom on current window (Alt+z again: restore initial windows state, before zoom).

/window zoom

Bars

Key Description Command

F1
Ctrl+F1

Scroll up one page in buflist.

/bar scroll buflist * -100%

F2
Ctrl+F2

Scroll down one page in buflist.

/bar scroll buflist * +100%

Alt+F1

Go to the beginning of buflist.

/bar scroll buflist * b

Alt+F2

Go to the end of buflist.

/bar scroll buflist * e

F9

Scroll buffer’s title on the left.

/bar scroll title * -30%

F10

Scroll buffer’s title on the right.

/bar scroll title * +30%

F11
Ctrl+F11

Scroll up one page in nicklist.

/bar scroll nicklist * -100%

F12
Ctrl+F12

Scroll down one page in nicklist.

/bar scroll nicklist * +100%

Alt+F11

Go to the beginning of nicklist.

/bar scroll nicklist * b

Alt+F12

Go to the end of nicklist.

/bar scroll nicklist * e

Alt+Shift+B

Toggle buflist.

/buflist toggle

Alt+Shift+N

Toggle nicklist bar.

/bar toggle nicklist

Hotlist

Key Description Command

Alt+a

Switch to next buffer with activity (with priority: highlight, message, other).

/buffer jump smart

Alt+h, Alt+c

Clear hotlist (activity notification on buffers).

/hotlist clear

Alt+h, Alt+m

Remove current buffer from hotlist.

/hotlist remove

Alt+h, Alt+r

Restore latest hotlist removed in the current buffer.

/hotlist restore

Alt+h, Alt+Shift+R

Restore latest hotlist removed in all buffers.

/hotlist restore -all

Toggle keys

Key Description Command

Alt+m

Toggle mouse.

/mouse toggle

Alt+s

Toggle spell checker.

/mute spell toggle

Alt+=

Toggle filters.

/filter toggle

Alt+-

Toggle filters in current buffer.

/filter toggle @

Alt+Ctrl+l (L)

Toggle between remote and local commands on a remote buffer (relay "api").

/remote togglecmd

Search context

These keys are used in context "search" (when Ctrl+s is pressed to search text in buffer lines).

Key Description Command

Ctrl+x

Switch search type: string (default), regular expression.

/input search_switch_regex

Alt+c

Switch exact case for search.

/input search_switch_case

Tab

Switch search in: messages (default), prefixes, prefixes + messages.

/input search_switch_where

Ctrl+r

Search previous line.

/input search_previous

Ctrl+s

Search next line.

/input search_next

Enter
Ctrl+j
Ctrl+m

Stop search at current position.

/input search_stop_here

Ctrl+q

Stop search and reset scroll to pre-text search state.

/input search_stop

History search context

These keys are used in context "histsearch" (when Ctrl+r is pressed to search text in commands history).

Key Description Command

Ctrl+x

Switch search type: string (default), regular expression.

/input search_switch_regex

Alt+c

Switch exact case for search.

/input search_switch_case

Tab

Switch search in: buffer local history (default), global history.

/input search_switch_where

Ctrl+r

Search in previous (older) history entries.

/input search_previous

Ctrl+s

Search in next (newer) history entries.

/input search_next

Enter
Ctrl+j
Ctrl+m

Stop search and use matching input.

/input search_stop_here

Ctrl+o

Execute the command found in history and insert the next one in the command line.

/input history_use_get_next

Ctrl+q

Stop search and restore input to its initial value.

/input search_stop

Cursor context

These keys are used in context "cursor" (free movement of cursor on screen), see Cursor mode.

Key Area Description Command

-

Move cursor one line up.

/cursor move up

-

Move cursor one line down.

/cursor move down

-

Move cursor one column left.

/cursor move left

-

Move cursor one column right.

/cursor move right

Alt+

-

Move cursor to the first line of the area.

/cursor move edge_top

Alt+

-

Move cursor to the last line of the area.

/cursor move edge_bottom

Alt+

-

Move cursor to the first column of the area.

/cursor move edge_left

Alt+

-

Move cursor to the last column of the area.

/cursor move edge_right

Alt+Home

-

Move cursor to the top left corner of the area.

/cursor move top_left

Alt+End

-

Move cursor to the bottom right corner of the area.

/cursor move bottom_right

Alt+Shift+

-

Move cursor one area up.

/cursor move area_up

Alt+Shift+

-

Move cursor one area down.

/cursor move area_down

Alt+Shift+

-

Move cursor one area left.

/cursor move area_left

Alt+Shift+

-

Move cursor one area right.

/cursor move area_right

m

chat

Quote message.

hsignal:chat_quote_message;/cursor stop

l

chat

Quote focused line.

hsignal:chat_quote_focused_line;/cursor stop

q

chat

Quote prefix + message.

hsignal:chat_quote_prefix_message;/cursor stop

Q

chat

Quote time + prefix + message.

hsignal:chat_quote_time_prefix_message;/cursor stop

b

nicklist

Ban nick.

/window ${_window_number};/ban ${nick}

k

nicklist

Kick nick.

/window ${_window_number};/kick ${nick}

K

nicklist

Kick and ban nick.

/window ${_window_number};/kickban ${nick}

q

nicklist

Open query with nick.

/window ${_window_number};/query ${nick};/cursor stop

w

nicklist

Do a whois on nick.

/window ${_window_number};/whois ${nick}

Enter
Ctrl+j
Ctrl+m

-

Stop cursor mode

/cursor stop

Mouse

These mouse actions are possible only if mouse is enabled with key Alt+m (command: /mouse toggle).

Button/Wheel (1) Gesture Area Description Command

■ □ □

-

chat

Switch to window.

/window ${_window_number}

■ □ □

left

chat

Switch to previous buffer.

/window ${_window_number};/buffer +1

■ □ □

right

chat

Switch to next buffer.

/window ${_window_number};/buffer +1

■ □ □

left (long)

chat

Switch to first buffer.

/window ${_window_number};/buffer 1

■ □ □

right (long)

chat

Switch to last buffer.

/window ${_window_number};/buffer +

-

chat

Scroll up a few lines in buffer history.

/window scroll_up -window ${_window_number}

-

chat

Scroll down a few lines in buffer history.

/window scroll_down -window ${_window_number}

Ctrl+

-

chat

Scroll horizontally to the left.

/window scroll_horiz -window ${_window_number} -10%

Ctrl+

-

chat

Scroll horizontally to the right.

/window scroll_horiz -window ${_window_number} +10%

-

chat: fset buffer

Move five lines up in fset buffer.

/fset -up 5

-

chat: fset buffer

Move five lines down in fset buffer.

/fset -down 5

■ □ □

-

chat: fset buffer

Select line in fset buffer.

/window ${_window_number};/fset -go ${fset_option_index}

□ □ ■

-

chat: fset buffer

Toggle boolean (on/off) or edit the option value.

hsignal:fset_mouse

□ □ ■

left

chat: fset buffer

Decrease value for integer/color/enum, set/append to value for other types.

hsignal:fset_mouse

□ □ ■

right

chat: fset buffer

Increase value for integer/color/enum, set/append to value for other types.

hsignal:fset_mouse

□ □ ■

up / down

chat: fset buffer

Mark/unmark multiple options.

hsignal:fset_mouse

-

chat: /list buffer

Move five lines up in /list buffer.

/list -up 5

-

chat: /list buffer

Move five lines down in /list buffer.

/list -down 5

■ □ □

-

chat: /list buffer

Select line in /list buffer.

/window ${_window_number};/list -go ${_chat_line_y}

□ □ ■

-

chat: /list buffer

Join IRC channel on selected line.

hsignal:irc_list_mouse

-

chat: script buffer

Move five lines up in script buffer.

/script -up 5

-

chat: script buffer

Move five lines down in script buffer.

/script -down 5

■ □ □

-

chat: script buffer

Select line in script buffer.

/script -go ${_chat_line_y}

□ □ ■

-

chat: script buffer

Install/remove script.

/script -go ${_chat_line_y};/script installremove -q ${script_name_with_extension}

■ □ □

up / left

buflist

Move buffer to a lower number.

Signal buflist_mouse.

■ □ □

down / right

buflist

Move buffer to a higher number.

Signal buflist_mouse.

■ □ □

-

buflist

Switch to buffer (previously visited buffer if the buffer is the current one).

Signal buflist_mouse.

□ □ ■

-

buflist

Switch to next visited buffer if the buffer is the current one.

Signal buflist_mouse.

Ctrl+

-

buflist

Switch to previous buffer.

Signal buflist_mouse.

Ctrl+

-

buflist

Switch to next buffer.

Signal buflist_mouse.

■ □ □

up

nicklist

Scroll up one page in nicklist.

/bar scroll nicklist ${_window_number} -100%

■ □ □

down

nicklist

Scroll down one page in nicklist.

/bar scroll nicklist ${_window_number} +100%

■ □ □

up (long)

nicklist

Go to the beginning of nicklist.

/bar scroll nicklist ${_window_number} b

■ □ □

down (long)

nicklist

Go to the end of nicklist.

/bar scroll nicklist ${_window_number} e

■ □ □

-

nicklist

Open query with nick.

/window ${_window_number};/query ${nick}

□ □ ■

-

nicklist

Do a whois on nick.

/window ${_window_number};/whois ${nick}

■ □ □

left

nicklist

Kick nick.

/window ${_window_number};/kick ${nick}

■ □ □

left (long)

nicklist

Kick and ban nick.

/window ${_window_number};/kickban ${nick}

□ □ ■

left

nicklist

Ban nick.

/window ${_window_number};/ban ${nick}

□ □ ■

-

input

Grab a mouse event and insert its code in command line.

/input grab_mouse_area

-

any bar

Scroll bar by -20%.

/bar scroll ${_bar_name} ${_window_number} -20%

-

any bar

Scroll bar by +20%.

/bar scroll ${_bar_name} ${_window_number} +20%

□ ■ □

-

anywhere

Start cursor mode at this point.

/cursor go ${_x},${_y}

Note
(1) Buttons:
◼ □ □: click on left button
□ ◼ □: click on middle button
□ □ ◼: click on right button
Wheel:
: wheel up
: wheel down

Fset buffer

These keys and actions are used on the fset buffer (see Fset plugin).

Key Action (1) Description Command

Move one line up.

/fset -up

Move one line down.

/fset -down

PgUp

Move one page up.

/window page_up

PgDn

Move one page down.

/window page_down

Alt+Home

<<

Move to first line.

/fset -go 0

Alt+End

>>

Move to last line.

/fset -go end

F11

<

Scroll horizontally on the left.

/fset -left

F12

>

Scroll horizontally on the right.

/fset -right

Alt+Space

t

Toggle boolean value.

/fset -toggle

Alt+-

-

Subtract 1 from value for integer/color/enum, set value for other types.

/fset -add -1

Alt++

+

Add 1 to value for integer/color/enum, append to value for other types.

/fset -add 1

Alt+f, Alt+r

r

Reset value.

/fset -reset

Alt+f, Alt+u

u

Unset value.

/fset -unset

Alt+Enter

s

Set value.

/fset -set

Alt+f, Alt+n

n

Set new value.

/fset -setnew

Alt+f, Alt+a

a

Append to value.

/fset -append

Alt+,

,

Mark/unmark option.

/fset -mark 1

Shift+

Move one line up and mark/unmark option.

/fset -up; /fset -mark

Shift+

Mark/unmark option and move one line down.

/fset -mark; /fset -down

m:xxx

Mark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see /fset command).

u:xxx

Unmark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see /fset command).

Ctrl+l (L)

Refresh options and whole screen.

/fset -refresh

$

Refresh options (keep marked options).

$$

Refresh options (unmark all options).

Alt+p

p

Toggle plugin description options (plugins.desc.*).

/mute /set fset.look.show_plugins_desc toggle

Alt+v

v

Toggle help bar.

/bar toggle fset

s:x,y

Sort options by fields x,y (see option fset.look.sort).

/mute /set fset.look.sort x,y

s:

Reset sort to its default value (see option fset.look.sort).

/mute /unset fset.look.sort

w:xxx

Export options in file "xxx".

/fset -export xxx

w-:xxx

Export options in file "xxx" without help.

/fset -export -nohelp xxx

w+:xxx

Export options in file "xxx" with help.

/fset -export -help xxx

Ctrl+x

x

Switch the format used to display options.

/fset -format

q

Close fset buffer.

/buffer close

Note
(1) The action must be entered as input on the command line, followed by Enter.

IRC /list buffer

These keys and actions are used on the IRC /list buffer (see command /list).

Key Action (1) Description Command

Move one line up.

/list -up

Move one line down.

/list -down

PgUp

Move one page up.

/window page_up

PgDn

Move one page down.

/window page_down

Alt+Home

<<

Move to first line.

/list -go 0

Alt+End

>>

Move to last line.

/list -go end

F11

<

Scroll horizontally on the left.

/list -left

F12

>

Scroll horizontally on the right.

/list -right

Ctrl+j

j

Join IRC channel on selected line.

/list -join

xxx

Show only channels with "xxx" in name or topic (case-insensitive).

n:xxx

Show only channels with "xxx" in name (case-insensitive).

t:xxx

Show only channels with "xxx" in topic (case-insensitive).

u:n

Show only channels with at least "n" users.

u:>n

Show only channels with more than "n" users.

u:<n

Show only channels with less than "n" users.

c:xxx

Show only channels matching the evaluated condition "xxx", using following variables: name, name2, users, topic.

s:x,y

Sort channels by fields x,y (see command /list).

s:

Reset sort to its default value (see command /list).

$

Refresh list (run again command /list).

q

Close buffer.

/buffer close

Note
(1) The action must be entered as input on the command line, followed by Enter.

Script buffer

These keys and actions are used on the script buffer (see script manager).

Key Action (1) Description Command

Move one line up.

/script -up

Move one line down.

/script -down

PgUp

Move one page up.

/window page_up

PgDn

Move one page down.

/window page_down

Alt+i

i

Install script.

/script install

Alt+r

r

Remove script.

/script remove

Alt+l

l

Load script.

/script load

Alt+L

L

Reload script.

/script reload

Alt+u

u

Unload script.

/script unload

Alt+Shift+A

A

Autoload script.

/script toggleautoload

Alt+h

h

Hold/unhold script.

/script hold

Alt+v

v

View script.

/script show

s:x,y

Sort scripts by fields x,y (see option script.look.sort).

s:

Reset sort to its default value (see option script.look.sort).

$

Refresh list.

q

Close buffer.

/buffer close

Note
(1) The action must be entered as input on the command line, followed by Enter.