1 require("bindings/default/content-buffer/normal.js");
3 var content_buffer_text_keymap = new keymap($parent = content_buffer_normal_keymap);
5 define_key(content_buffer_text_keymap, "C-a", "cmd_beginLine");
6 define_key(content_buffer_text_keymap, "C-e", "cmd_endLine");
7 define_key(content_buffer_text_keymap, "back_space", "cmd_deleteCharBackward");
8 define_key(content_buffer_text_keymap, "M-back_space", "cmd_deleteWordBackward");
9 define_key(content_buffer_text_keymap, "C-d", "cmd_deleteCharForward");
10 define_key(content_buffer_text_keymap, "delete", "cmd_deleteCharForward");
11 define_key(content_buffer_text_keymap, "M-d", "cmd_deleteWordForward");
12 define_key(content_buffer_text_keymap, "C-b", "cmd_charPrevious");
13 define_key(content_buffer_text_keymap, "left", "cmd_charPrevious");
14 define_key(content_buffer_text_keymap, "M-b", "cmd_wordPrevious");
15 define_key(content_buffer_text_keymap, "C-f", "cmd_charNext");
16 define_key(content_buffer_text_keymap, "right", "cmd_charNext");
17 define_key(content_buffer_text_keymap, "M-f", "cmd_wordNext");
18 define_key(content_buffer_text_keymap, "M-w", "cmd_copy");
19 define_key(content_buffer_text_keymap, "C-k", "cmd_deleteToEndOfLine");
22 define_key(content_buffer_text_keymap, "home", "cmd_beginLine");
23 define_key(content_buffer_text_keymap, "end", "cmd_endLine");
24 define_key(content_buffer_text_keymap, "S-home", "cmd_selectBeginLine");
25 define_key(content_buffer_text_keymap, "S-end", "cmd_selectEndLine");
26 define_key(content_buffer_text_keymap, "C-back_space", "cmd_deleteWordBackward");
27 define_key(content_buffer_text_keymap, "C-S-left", "cmd_selectWordPrevious");
28 define_key(content_buffer_text_keymap, "C-S-right", "cmd_selectWordNext");
31 define_key(content_buffer_text_keymap, "C-r","cmd_redo");
34 define_key(content_buffer_text_keymap, "C-S-subtract", "cmd_undo");
35 define_key(content_buffer_text_keymap, "C-x u", "cmd_undo");
37 define_key(content_buffer_text_keymap, "C-y", "cmd_paste");
38 define_key(content_buffer_text_keymap, "C-w", "cmd_cut");
39 define_key(content_buffer_text_keymap, "S-delete", "cmd_cut");
41 define_key(content_buffer_text_keymap, "C-i", "edit-current-field-in-external-editor");
43 // This must be at the end of content_buffer_text_keymap defs so it's matched last.
44 define_key(content_buffer_text_keymap, match_any_unmodified_key, null, $fallthrough);