|
1 | 1 | # Micro Text Editor |
2 | 2 |
|
3 | | -## Default Keybindings |
4 | | -```Up``` |
5 | | -```Down``` |
6 | | -```Right``` |
7 | | -```Left``` |
8 | | -```ShiftUp``` |
9 | | -```ShiftDown``` |
10 | | -```ShiftLeft``` |
11 | | -```ShiftRight``` |
12 | | -```AltLeft``` |
13 | | -```AltRight``` |
14 | | -```AltUp``` |
15 | | -```AltDown``` |
16 | | -```CtrlShiftRight``` |
17 | | -```CtrlShiftLeft``` |
18 | | -```AltShiftRight``` |
19 | | -```AltShiftLeft``` |
20 | | -```CtrlLeft``` |
21 | | -```CtrlRight``` |
22 | | -```ShiftHome``` |
23 | | -```ShiftEnd``` |
24 | | -```CtrlUp``` |
25 | | -```CtrlDown``` |
26 | | -```CtrlShiftUp``` |
27 | | -```CtrlShiftDown``` |
28 | | -```Alt-{``` |
29 | | -```Alt-}``` |
30 | | -```Enter``` |
31 | | -```Ctrl-h``` |
32 | | -```Backspace``` |
33 | | -```Alt-CtrlH``` |
34 | | -```Alt-Backspace``` |
35 | | -```Tab``` |
36 | | -```Backtab``` |
37 | | -```Ctrl-o``` |
38 | | -```Ctrl-s``` |
39 | | -```Ctrl-f``` |
40 | | -```Alt-F``` |
41 | | -```Ctrl-n``` |
42 | | -```Ctrl-p``` |
43 | | -```Ctrl-z``` |
44 | | -```Ctrl-y``` |
45 | | -```Ctrl-c``` |
46 | | -```Ctrl-x``` |
47 | | -```Ctrl-k``` |
48 | | -```Ctrl-d``` |
49 | | -```Ctrl-v``` |
50 | | -```Ctrl-a``` |
51 | | -```Ctrl-t``` |
52 | | -```Alt-,``` |
53 | | -```Alt-.``` |
54 | | -```Home``` |
55 | | -```End``` |
56 | | -```CtrlHome``` |
57 | | -```CtrlEnd``` |
58 | | -```PageUp``` |
59 | | -```PageDown``` |
60 | | -```CtrlPageUp``` |
61 | | -```CtrlPageDown``` |
62 | | -```Ctrl-g``` |
63 | | -```Alt-g``` |
64 | | -```Ctrl-r``` |
65 | | -```Ctrl-l``` |
66 | | -```Delete``` |
67 | | -```Ctrl-b``` |
68 | | -```Ctrl-q``` |
69 | | -```Ctrl-e``` |
70 | | -```Ctrl-w``` |
71 | | -```Ctrl-u``` |
72 | | -```Ctrl-j``` |
73 | | -```Insert``` |
74 | | - |
75 | | -## Emacs-style Keybindings |
76 | | -```Alt-f``` |
77 | | -```Alt-b``` |
78 | | -```Alt-a``` |
79 | | -```Alt-e``` |
80 | | - |
81 | | -## File Manager Integration |
82 | | -```F2``` |
83 | | -```F3``` |
84 | | -```F4``` |
85 | | -```F7``` |
86 | | -```F10``` |
87 | | -```Esc``` |
88 | | - |
89 | | -## Mouse Bindings |
90 | | -```MouseWheelUp``` |
91 | | -```MouseWheelDown``` |
92 | | -```MouseLeft``` |
93 | | -```MouseMiddle``` |
94 | | -```Ctrl-MouseLeft``` |
95 | | -```Alt-n``` |
96 | | -```AltShiftUp``` |
97 | | -```AltShiftDown``` |
98 | | -```Alt-m``` |
99 | | -```Alt-p``` |
100 | | -```Alt-c``` |
101 | | -```Alt-x``` |
| 3 | +## Getting Started |
| 4 | +Micro is a modern terminal text editor with intuitive keybindings. If you know **Ctrl+S** to save and **Ctrl+Z** to undo, you already know the basics. |
| 5 | +```[micro](/man/micro) textfile.txt``` |
| 6 | + |
| 7 | +| Key | Description | |
| 8 | +|-----|-------------| |
| 9 | +| **Ctrl+q** | Quit micro | |
| 10 | +| **Ctrl+s** | Save current file | |
| 11 | +| **Ctrl+o** | Open a file | |
| 12 | +| **Ctrl+g** | Open the help menu | |
| 13 | +| **Ctrl+e** | Open the command bar | |
| 14 | + |
| 15 | +## Navigation |
| 16 | +Standard arrow keys, Home, End, Page Up, and Page Down all work as expected. These shortcuts provide additional movement. |
| 17 | + |
| 18 | +| Key | Description | |
| 19 | +|-----|-------------| |
| 20 | +| **Ctrl+Left** | Move to previous word | |
| 21 | +| **Ctrl+Right** | Move to next word | |
| 22 | +| **Ctrl+Up** | Scroll up without moving cursor | |
| 23 | +| **Ctrl+Down** | Scroll down without moving cursor | |
| 24 | +| **Home** | Move to beginning of line | |
| 25 | +| **End** | Move to end of line | |
| 26 | +| **Ctrl+Home** | Move to start of file | |
| 27 | +| **Ctrl+End** | Move to end of file | |
| 28 | + |
| 29 | +## Selection |
| 30 | +Hold **Shift** with any movement key to select text. These shortcuts select larger regions. |
| 31 | + |
| 32 | +| Key | Description | |
| 33 | +|-----|-------------| |
| 34 | +| **Shift+Arrow** | Extend selection by one character or line | |
| 35 | +| **Ctrl+Shift+Left** | Select to previous word | |
| 36 | +| **Ctrl+Shift+Right** | Select to next word | |
| 37 | +| **Shift+Home** | Select to beginning of line | |
| 38 | +| **Shift+End** | Select to end of line | |
| 39 | +| **Ctrl+a** | Select all text | |
| 40 | + |
| 41 | +## Editing |
| 42 | +Copy, cut, and paste use the familiar system shortcuts. |
| 43 | + |
| 44 | +| Key | Description | |
| 45 | +|-----|-------------| |
| 46 | +| **Ctrl+z** | Undo | |
| 47 | +| **Ctrl+y** | Redo | |
| 48 | +| **Ctrl+c** | Copy selected text | |
| 49 | +| **Ctrl+x** | Cut selected text | |
| 50 | +| **Ctrl+v** | Paste from clipboard | |
| 51 | +| **Ctrl+k** | Cut the current line | |
| 52 | +| **Ctrl+d** | Duplicate the current line | |
| 53 | +| **Ctrl+u** | Upper/lowercase selection toggle | |
| 54 | +| **Tab** | Indent selection or insert tab | |
| 55 | +| **Backtab** | Unindent selection | |
| 56 | + |
| 57 | +## Search and Replace |
| 58 | +Micro supports incremental search and regex-aware find and replace. |
| 59 | + |
| 60 | +| Key | Description | |
| 61 | +|-----|-------------| |
| 62 | +| **Ctrl+f** | Find | |
| 63 | +| **Ctrl+n** | Find next match | |
| 64 | +| **Ctrl+p** | Find previous match | |
| 65 | +| **Ctrl+r** | Toggle find and replace | |
| 66 | +| **Alt+F** | Find literal (no regex) | |
| 67 | + |
| 68 | +## Tabs and Splits |
| 69 | +Micro supports multiple open files in tabs and split views. |
| 70 | + |
| 71 | +| Key | Description | |
| 72 | +|-----|-------------| |
| 73 | +| **Ctrl+t** | Open a new tab | |
| 74 | +| **Alt+,** | Switch to previous tab | |
| 75 | +| **Alt+.** | Switch to next tab | |
| 76 | +| **Ctrl+w** | Close current tab | |
| 77 | +| **Ctrl+b** | Run a shell command | |
| 78 | +| **Ctrl+j** | Jump to a matching bracket | |
| 79 | +| **Ctrl+l** | Toggle line numbers | |
| 80 | +| **Alt+g** | Toggle gutter | |
| 81 | + |
| 82 | +## Mouse |
| 83 | +Micro has built-in mouse support. Click to place the cursor, scroll to navigate, and drag to select text. |
| 84 | + |
| 85 | +| Key | Description | |
| 86 | +|-----|-------------| |
| 87 | +| **Mouse wheel** | Scroll up and down | |
| 88 | +| **Click** | Place cursor | |
| 89 | +| **Drag** | Select text | |
| 90 | +| **Ctrl+Click** | Place additional cursor (multi-cursor mode) | |
| 91 | +| **Alt+n** | Spawn a multi-cursor at next search match | |
| 92 | +| **Alt+m** | Spawn a multi-cursor on every search match | |
| 93 | +| **Alt+p** | Remove the last multi-cursor | |
| 94 | +| **Alt+c** | Remove all multi-cursors | |
| 95 | +| **Alt+x** | Skip current multi-cursor match | |
| 96 | + |
| 97 | +## Emacs-style Navigation |
| 98 | +These alternative keybindings are available for Emacs users. |
| 99 | + |
| 100 | +| Key | Description | |
| 101 | +|-----|-------------| |
| 102 | +| **Alt+f** | Move forward one word | |
| 103 | +| **Alt+b** | Move backward one word | |
| 104 | +| **Alt+a** | Move to beginning of line | |
| 105 | +| **Alt+e** | Move to end of line | |
0 commit comments