Changes between Version 7 and Version 8 of KeyBindings
- Timestamp:
- 09/15/09 00:39:20 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
KeyBindings
v7 v8 5 5 As of version 0.5, the user may specify [CustomKeyBindings custom key bindings] in their `.haskeline` file. 6 6 7 Commands marked with (*) are available in version 0.6.2 and later. 8 7 9 Definitions: 8 10 - `^A`: Control-A 9 11 - `M-A`: Option-A 10 - {{{[ printable char]}}}: Any Unicode printable character (`Data.Char.isPrint` returns `True`)12 - {{{[c]}}}: Any Unicode printable character (`Data.Char.isPrint` returns `True`) 11 13 - {{{[kill]}}}: the console's 'kill' character (usually `^U`) 12 14 == Commands shared by both bindings == … … 15 17 ||Backspace||delete the character left of the cursor|| 16 18 ||Delete|| delete the character right of the cursor|| 17 ||{{{[ printable char]}}} ||insert a character||19 ||{{{[c]}}} ||insert a character|| 18 20 ||Up/down arrow|| move backwards/forwards in the command history|| 19 21 ||Tab|| run tab completion|| … … 51 53 ||R|| replace many characters|| 52 54 ||u|| undo|| 53 || . or{{{^R}}}||redo||55 ||{{{^R}}}||redo|| 54 56 ||[n][movement]|| do a movement, repeated n times|| 55 57 ||[n]d[movement]|| delete the characters the movement would move past|| 56 58 ||[n]c[movement]|| delete the characters the movement would move past, and enter insert mode|| 57 59 ||[n]x|| delete the character under the cursor (repeated n times)|| 60 ||[n]X|| delete the character before the cursor (repeated n times) (*)|| 61 ||[n].|| repeat the previous command n times (*)|| 58 62 ||dd|| delete the whole line|| 59 ||cc|| delete the whole line and enter insertmode|| 63 ||cc|| delete the whole line and enter insert mode|| 64 ||D|| delete until the end of the line (*) || 65 ||C|| delete the rest of the line and enter insert mode (*)|| 66 ||j|| previous line in the history (*)|| 67 ||k|| next line in the history (*)|| 68 ||p|| paste after the cursor (*)|| 69 ||P|| paste before the cursor (*)|| 70 ||/|| search backwards through the history (*) || 71 ||?|| search forwards through the history (*) || 72 ||n|| continue the current history search (*) || 73 ||N|| reverse the current history search (*) || 74 ||~|| toggle case (*) || 75 || !^W || erase previous word (*)|| 76 ||!^D||enter, when the line is not empty (*)|| 77 78 60 79 61 80 The movement commands are: … … 63 82 ||l||right one character|| 64 83 ||{{{[space]}}}||right one character|| 84 ||0||move to the start of the line|| 85 ||$||move to the end of the line|| 65 86 ||w||right one word|| 66 87 ||b||left one word|| 67 88 ||W||right one bigword|| 68 89 ||B||left one bigword|| 69 ||0||move to the start of the line|| 70 ||$||move to the end of the line|| 71 72 Missing commands and workarounds are documented at ViModeCompatibility. 90 ||e||end of word (*)|| 91 ||E||end of bigword (*)|| 92 ||!^||first non-whitespace character in the line (*)|| 93 ||f`[c]`||next appearance of character `[c]` (*)|| 94 ||F[c]||previous appearance of character `[c]` (*)|| 95 ||t`[c]`||to the left of the next appearance of character `[c]` (*)|| 96 ||T`[c]`||to the left of the previous appearance of character `[c]` (*)|| 97 ||%|| jump to the brace matching the one under the cursor (`(), {} or []`) (*)||
