3 Here are the default keybindings in json format. You can rebind them to your liking, following the same format.
9 "Right": "CursorRight",
11 "ShiftUp": "SelectUp",
12 "ShiftDown": "SelectDown",
13 "ShiftLeft": "SelectLeft",
14 "ShiftRight": "SelectRight",
15 "AltLeft": "WordLeft",
16 "AltRight": "WordRight",
17 "AltShiftRight": "SelectWordRight",
18 "AltShiftLeft": "SelectWordLeft",
19 "AltUp": "MoveLinesUp",
20 "AltDown": "MoveLinesDown",
21 "CtrlLeft": "StartOfLine",
22 "CtrlRight": "EndOfLine",
23 "CtrlShiftLeft": "SelectToStartOfLine",
24 "CtrlShiftRight": "SelectToEndOfLine",
25 "CtrlUp": "CursorStart",
26 "CtrlDown": "CursorEnd",
27 "CtrlShiftUp": "SelectToStart",
28 "CtrlShiftDown": "SelectToEnd",
29 "Enter": "InsertNewline",
30 "Space": "InsertSpace",
32 "Backspace": "Backspace",
33 "Alt-CtrlH": "DeleteWordLeft",
34 "Alt-Backspace": "DeleteWordLeft",
35 "Tab": "IndentSelection,InsertTab",
36 "Backtab": "OutdentSelection",
41 "CtrlP": "FindPrevious",
47 "CtrlD": "DuplicateLine",
51 "CtrlRightSq": "PreviousTab",
52 "CtrlBackslash": "NextTab",
53 "Home": "StartOfLine",
55 "CtrlHome": "CursorStart",
56 "CtrlEnd": "CursorEnd",
57 "PageUp": "CursorPageUp",
58 "PageDown": "CursorPageDown",
59 "CtrlG": "ToggleHelp",
60 "CtrlR": "ToggleRuler",
65 "CtrlE": "CommandMode",
67 "CtrlU": "ToggleMacro",
70 // Emacs-style keybindings
73 "Alt-a": "StartOfLine",
76 "Alt-n": "CursorDown",
78 // Integration with file managers
88 You can use the alt keys + arrows to move word by word.
89 Ctrl left and right move the cursor to the start and end of the line, and
90 ctrl up and down move the cursor the start and end of the buffer.
92 You can hold shift with all of these movement actions to select while moving.
96 The bindings may be rebound using the `~/.config/micro/bindings.json`
97 file. Each key is bound to an action.
99 For example, to bind `Ctrl-y` to undo and `Ctrl-z` to redo, you could put the
100 following in the `bindings.json` file.
109 You can also chain commands when rebinding. For example, if you want Alt-s to save
110 and quit you can bind it like so:
118 # Bindable actions and bindable keys
120 The list of default keybindings contains most of the possible actions and keys
121 which you can use, but not all of them. Here is a full list of both.
123 Full list of possible actions:
201 Here is the list of all possible keys you can bind:
329 Note: On some old terminal emulators and on Windows machines, `CtrlH` should be used
332 Additionally, alt keys can be bound by using `Alt-key`. For example `Alt-a`
333 or `Alt-Up`. Micro supports an optional `-` between modifiers like `Alt` and `Ctrl`
334 so `Alt-a` could be rewritten as `Alta` (case matters for alt bindings). This is
335 why in the default keybindings you can see `AltShiftLeft` instead of `Alt-ShiftLeft`
336 (they are equivalent).