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",
67 // Emacs-style keybindings
70 "Alt-a": "StartOfLine",
77 You can use the alt keys + arrows to move word by word.
78 Ctrl left and right move the cursor to the start and end of the line, and
79 ctrl up and down move the cursor the start and end of the buffer.
81 You can hold shift with all of these movement actions to select while moving.
85 The bindings may be rebound using the `~/.config/micro/bindings.json`
86 file. Each key is bound to an action.
88 For example, to bind `Ctrl-y` to undo and `Ctrl-z` to redo, you could put the
89 following in the `bindings.json` file.
98 You can also chain commands when rebinding. For example, if you want Alt-s to save
99 and quit you can bind it like so:
107 # Bindable actions and bindable keys
109 The list of default keybindings contains most of the possible actions and keys
110 which you can use, but not all of them. Here is a full list of both.
112 Full list of possible actions:
182 Here is the list of all possible keys you can bind:
311 Additionally, alt keys can be bound by using `Alt-key`. For example `Alt-a`
312 or `Alt-Up`. Micro supports an optional `-` between modifiers like `Alt` and `Ctrl`
313 so `Alt-a` could be rewritten as `Alta` (case matters for alt bindings). This is
314 why in the default keybindings you can see `AltShiftLeft` instead of `Alt-ShiftLeft`
315 (they are equivalent).