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