2001-02-17 05:30:06 -05:00
|
|
|
|
|
|
|
@SYNTAX:bind@
|
|
|
|
|
2001-05-11 09:44:23 -04:00
|
|
|
Bind some action to specified keystroke. Remember that all characters
|
|
|
|
in keystrokes are case-sensitive! Uppercase letter usually means that
|
|
|
|
you need to keep SHIFT pressed to get the key to work.
|
2001-02-17 05:30:06 -05:00
|
|
|
|
2001-05-11 09:44:23 -04:00
|
|
|
Most most commonly used keystrokes are:
|
2001-02-17 05:30:06 -05:00
|
|
|
|
2001-05-11 09:44:23 -04:00
|
|
|
^X - Ctrl-X
|
|
|
|
meta-x - Meta-x (Meta is quite often Alt-key in PCs, ESC-x works too)
|
2001-02-17 05:30:06 -05:00
|
|
|
|
2001-05-11 09:44:23 -04:00
|
|
|
Irssi has by default also defined several other keys which you can use:
|
2001-02-17 05:30:06 -05:00
|
|
|
|
2001-05-11 09:44:23 -04:00
|
|
|
return - The return/enter key
|
2002-02-16 07:08:45 -05:00
|
|
|
space, backspace - Space / backspace
|
2001-05-11 09:44:23 -04:00
|
|
|
up, down, left, right - Arrow keys
|
2002-02-16 07:08:45 -05:00
|
|
|
cleft, cright - Ctrl-left/right
|
2001-05-11 09:44:23 -04:00
|
|
|
home, end, prior, next - prior = Page Up, next = Page Down
|
|
|
|
insert, delete
|
|
|
|
|
|
|
|
The keystroke can contain as many key presses as you want, and you can
|
|
|
|
define names for different key sequences to use them more easily (the
|
|
|
|
keys above are done like that). For example, you may want to manage
|
|
|
|
windows with ^W key, so that ^W^C creates new window, ^W^K kills the
|
|
|
|
active window, etc. you may do it like:
|
|
|
|
|
|
|
|
/BIND ^W^C /WINDOW NEW HIDE
|
|
|
|
/BIND ^W^K /WINDOW KILL
|
|
|
|
|
|
|
|
But maybe you wish to give these binds to other people who want to use
|
|
|
|
some other key than ^W, then it would be better done as:
|
|
|
|
|
|
|
|
/BIND ^W key window
|
|
|
|
/BIND window-^C /WINDOW NEW HIDE
|
|
|
|
/BIND window-^K /WINDOW KILL
|
2001-02-17 05:30:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
Command can be one of:
|
|
|
|
|
2001-05-11 09:44:23 -04:00
|
|
|
command - Run any /COMMAND (you could use /COMMAND directly without
|
|
|
|
specifying this)
|
2001-02-17 05:30:06 -05:00
|
|
|
|
|
|
|
(Cursor movement)
|
|
|
|
backward_character
|
|
|
|
forward_character
|
|
|
|
backward_word
|
|
|
|
forward_word
|
|
|
|
beginning_of_line
|
|
|
|
end_of_line
|
|
|
|
|
|
|
|
(Scrollback movement)
|
|
|
|
scroll_backward - Previous page
|
|
|
|
scroll_forward - Next page
|
|
|
|
scroll_start - Beginning of the window
|
|
|
|
scroll_end - End of the window
|
|
|
|
|
|
|
|
(Switching windows)
|
|
|
|
change_window
|
|
|
|
previous_window
|
|
|
|
next_window
|
|
|
|
upper_window
|
|
|
|
lower_window
|
|
|
|
active_window - Go to next window with the highest activity
|
|
|
|
next_window_item - Next channel/query. In empty windows change
|
|
|
|
to next server
|
|
|
|
previous_window_item - Previous channel/query. In empty windows change
|
|
|
|
to previous server
|
|
|
|
|
|
|
|
(History)
|
|
|
|
backward_history
|
|
|
|
forward_history
|
|
|
|
|
|
|
|
(Deleting text)
|
|
|
|
backspace
|
|
|
|
delete_character
|
|
|
|
delete_character
|
|
|
|
delete_next_word
|
|
|
|
delete_previous_word
|
2001-10-14 07:33:13 -04:00
|
|
|
delete_to_next_space
|
2001-02-17 05:30:06 -05:00
|
|
|
delete_to_previous_space
|
|
|
|
erase_line
|
|
|
|
erase_to_beg_of_line
|
|
|
|
erase_to_end_of_line
|
|
|
|
|
|
|
|
(Word completion)
|
|
|
|
word_completion
|
2002-02-16 07:08:45 -05:00
|
|
|
erase_completion
|
2001-02-17 05:30:06 -05:00
|
|
|
check_replaces - Check word replaces
|
|
|
|
|
|
|
|
(Misc)
|
|
|
|
refresh_screen
|
|
|
|
yank_from_cutbuffer - "Undelete" line
|
|
|
|
transpose_characters - Swap current and previous character
|
2002-02-18 15:59:40 -05:00
|
|
|
escape_char - Insert the next character exactly as-is to input line
|
2001-05-11 09:44:23 -04:00
|
|
|
insert_text - Insert data to entry line, data may contain $variables.
|
2002-02-16 07:08:45 -05:00
|
|
|
stop_irc - Send SIGSTOP to client (^Z)
|
2001-02-17 05:30:06 -05:00
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
Clear screen:
|
2001-05-11 09:44:23 -04:00
|
|
|
/BIND meta-c /CLEAR
|
2001-02-17 05:30:06 -05:00
|
|
|
|
2001-05-11 09:44:23 -04:00
|
|
|
People with qwertz layout probably want to swap meta-y and meta-z:
|
|
|
|
/BIND meta-z change_window 16
|
|
|
|
/BIND -delete meta-y
|