diff options
author | Timo Sirainen <cras@irssi.org> | 2001-05-11 13:44:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-05-11 13:44:23 +0000 |
commit | 4e06d502553cc8414f9164e2bb9a4d2b4bfc6448 (patch) | |
tree | d8f05bc8b5f7641f30495aaa8761debe4380eccd /docs/help/in/bind.in | |
parent | c7274cb00e46ab55adfaa2cc7aae8c30709b9905 (diff) | |
download | irssi-4e06d502553cc8414f9164e2bb9a4d2b4bfc6448.zip |
updated /BIND help, removed special_char bind command and added insert_text.
It can be used to add text to entry line, $variables also works with it (eg.
/BIND ^T /TOPIC $topic)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1476 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'docs/help/in/bind.in')
-rw-r--r-- | docs/help/in/bind.in | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/docs/help/in/bind.in b/docs/help/in/bind.in index c6785e99..0d0d2ab1 100644 --- a/docs/help/in/bind.in +++ b/docs/help/in/bind.in @@ -1,28 +1,43 @@ @SYNTAX:bind@ -Bind some action to specified keystroke. +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. -Keystroke can have modifiers: +Most most commonly used keystrokes are: - ctrl-x - alt-x - alt-shift-x + ^X - Ctrl-X + meta-x - Meta-x (Meta is quite often Alt-key in PCs, ESC-x works too) -Where x being either a single character, or one of the special keys: +Irssi has by default also defined several other keys which you can use: - Backspace Delete - Home End Prior Next - Up Down Left Right - Insert Return Tab + return - The return/enter key + up, down, left, right - Arrow keys + 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 -(these key specifications will some day change to be more epic-like -when I have time to implement it) Command can be one of: - command - Run any IRC command (you could use /command directly without - specifying this) + command - Run any /COMMAND (you could use /COMMAND directly without + specifying this) (Cursor movement) backward_character @@ -73,14 +88,13 @@ Command can be one of: refresh_screen yank_from_cutbuffer - "Undelete" line transpose_characters - Swap current and previous character - special_char - Insert special character, data specifies the character. - This is used mostly for setting bold, underline, color, etc. + insert_text - Insert data to entry line, data may contain $variables. Examples: Clear screen: - /BIND Alt-C /CLEAR + /BIND meta-c /CLEAR -People with qwertz layout probably want to swap Alt-Y and Alt-Z: - /BIND Alt-Z change_window 16 - /BIND -delete Alt-Y +People with qwertz layout probably want to swap meta-y and meta-z: + /BIND meta-z change_window 16 + /BIND -delete meta-y |