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 "CtrlHome": "CursorStart",
54 "CtrlEnd": "CursorEnd",
55 "PageUp": "CursorPageUp",
56 "PageDown": "CursorPageDown",
57 "CtrlG": "ToggleHelp",
58 "CtrlR": "ToggleRuler",
64 "CtrlE": "CommandMode",
66 "CtrlU": "ToggleMacro",
69 // Emacs-style keybindings
72 "Alt-a": "StartOfLine",
77 // Integration with file managers
87 You can use the alt keys + arrows to move word by word.
88 Ctrl left and right move the cursor to the start and end of the line, and
89 ctrl up and down move the cursor the start and end of the buffer.
91 You can hold shift with all of these movement actions to select while moving.
95 The bindings may be rebound using the `~/.config/micro/bindings.json`
96 file. Each key is bound to an action.
98 For example, to bind `Ctrl-y` to undo and `Ctrl-z` to redo, you could put the
99 following in the `bindings.json` file.
108 You can also chain commands when rebinding. For example, if you want Alt-s to save
109 and quit you can bind it like so:
117 # Bindable actions and bindable keys
119 The list of default keybindings contains most of the possible actions and keys
120 which you can use, but not all of them. Here is a full list of both.
122 Full list of possible actions:
194 Here is the list of all possible keys you can bind:
323 Additionally, alt keys can be bound by using `Alt-key`. For example `Alt-a`
324 or `Alt-Up`. Micro supports an optional `-` between modifiers like `Alt` and `Ctrl`
325 so `Alt-a` could be rewritten as `Alta` (case matters for alt bindings). This is
326 why in the default keybindings you can see `AltShiftLeft` instead of `Alt-ShiftLeft`
327 (they are equivalent).