3 Here are the default keybindings in json form which is also how
4 you can rebind them to your liking.
10 "Right": "CursorRight",
12 "ShiftUp": "SelectUp",
13 "ShiftDown": "SelectDown",
14 "ShiftLeft": "SelectLeft",
15 "ShiftRight": "SelectRight",
16 "AltLeft": "WordLeft",
17 "AltRight": "WordRight",
18 "AltShiftRight": "SelectWordRight",
19 "AltShiftLeft": "SelectWordLeft",
20 "CtrlLeft": "StartOfLine",
21 "CtrlRight": "EndOfLine",
22 "CtrlShiftLeft": "SelectToStartOfLine",
23 "CtrlShiftRight": "SelectToEndOfLine",
24 "CtrlUp": "CursorStart",
25 "CtrlDown": "CursorEnd",
26 "CtrlShiftUp": "SelectToStart",
27 "CtrlShiftDown": "SelectToEnd",
28 "Enter": "InsertEnter",
29 "Space": "InsertSpace",
30 "Backspace": "Backspace",
31 "Backspace2": "Backspace",
32 "Alt-Backspace": "DeleteWordLeft",
33 "Alt-Backspace2": "DeleteWordLeft",
34 "Tab": "InsertTab,IndentSelection",
39 "CtrlP": "FindPrevious",
45 "CtrlD": "DuplicateLine",
49 "CtrlRightSq": "PreviousTab",
50 "CtrlBackslash": "NextTab",
53 "PageUp": "CursorPageUp",
54 "PageDown": "CursorPageDown",
55 "CtrlG": "ToggleHelp",
56 "CtrlR": "ToggleRuler",
62 "CtrlE": "CommandMode",
65 // Emacs-style keybindings
68 "Alt-a": "StartOfLine",
75 You can use the alt keys + arrows to move word by word.
76 Ctrl left and right move the cursor to the start and end of the line, and
77 ctrl up and down move the cursor the start and end of the buffer.
79 You can hold shift with all of these movement actions to select while moving.
83 The bindings may be rebound using the `~/.config/micro/bindings.json`
84 file. Each key is bound to an action.
86 For example, to bind `Ctrl-y` to undo and `Ctrl-z` to redo, you could put the
87 following in the `bindings.json` file.
96 You can also chain commands when rebinding. For example, if you want Alt-s to save
97 and quit you can bind it like so:
105 # Bindable actions and bindable keys
107 The list of default keybindings contains most of the possible actions and keys
108 which you can use, but not all of them. Here is a full list of both.
110 Full list of possible actions:
180 Here is the list of all possible keys you can bind:
309 Additionally, alt keys can be bound by using `Alt-key`. For example `Alt-a`
310 or `Alt-Up`. Micro supports an optional `-` between modifiers like `Alt` and `Ctrl`
311 so `Alt-a` could be rewritten as `Alta` (case matters for alt bindings). This is
312 why in the default keybindings you can see `AltShiftLeft` instead of `Alt-ShiftLeft`
313 (they are equivalent).