bunmicro 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.0] - 2026-06-03
4
+ - Added more alt- key bindings
5
+ - Alt-s for Selection mode
6
+ - Alt-d for unindent/dedent/outdent
7
+ - Updated help md documents
8
+ - js/python builtin objects autocomplete
9
+ - autocomplete includes language keywords
10
+ - Fixed unicode/emoji for term and editor
11
+
12
+ ## [0.8.3] - 2026-06-02
13
+ - Fixed Linux failed to parse php.yaml crashes the whole program
14
+ - Fixed Linux espeak-ng args passing
15
+
3
16
  ## [0.8.2] - 2026-06-02
4
17
  - Fixed Windows TTS function
5
18
  - Added ttslang for Windows
package/README.md CHANGED
@@ -21,6 +21,7 @@
21
21
  - Ctrl-E ttspitch 1.1
22
22
  ## Easy selection
23
23
  - Mouse click on line numbers to select a range of lines
24
+ - Alt-s to enter selection mode
24
25
  - Useful without a mouse on Android
25
26
  - Also available: Ctrl-E act SelectRight
26
27
  ## js plugin
@@ -42,6 +43,13 @@
42
43
  - Press Tab and use arrow keys to select items
43
44
  ## action/js commands
44
45
  - A complete help is at the end
46
+ ## Portability
47
+ - One codebase. One folder.
48
+ - Runs on Windows, Android, Linux
49
+ - No per-platform builds
50
+ - No native bindings
51
+ - No recompilation
52
+ - Just Copy folder -> Run with Bun
45
53
  ## Version shows backends
46
54
  - bunmicro --version shows http/clipboard/tts backends
47
55
 
@@ -120,8 +128,11 @@ bun x bunmicro
120
128
  - Common editor features such as undo/redo, line numbers, Unicode support, soft wrapping, etc
121
129
 
122
130
  # Useful key bindings:
131
+ - For a detailed help:
132
+ - Ctrl+E > help defaultkeys
123
133
 
124
134
  - `Ctrl-Q`: Close current tab/pane, quits if it is the last tab/pane; prompts if modified
135
+ - `Alt-q`: Close current tab/pane, quits if it is the last tab/pane; prompts if modified
125
136
  - `Ctrl-S`: Save
126
137
  - `Ctrl-O`: Open
127
138
  - `Ctrl-G`: Toggle help pane
@@ -134,9 +145,13 @@ bun x bunmicro
134
145
  - `Ctrl-B`: Shell prompt
135
146
  - `Ctrl-D`: Duplicate Line/Selection
136
147
  - `Ctrl-T`: Open a new tab
137
- - `Alt-G`: Toggle nano-like key bindings menu
148
+ - `Alt-g`: Toggle nano-like key bindings menu
149
+ - `Alt-h`: replace [-l] `text1` `text2`
150
+ - `Alt-c`: Toggle comment
151
+ - `Alt-s`: Selection mode
138
152
  - `Alt-,` / `Alt-p`: Previous tab
139
153
  - `Alt-.` / `Alt-t`: Next tab
154
+ - `Alt-k` / `Alt-j`: Move lines Up/Down
140
155
  - `Tab`: Triggers autocomplete
141
156
  - `Esc`: close command/shell prompt or terminal pane, rehighlight long lines
142
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunmicro",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "Bun JavaScript rewrite of the micro editor originally in Golang",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -52,6 +52,8 @@ can change it!
52
52
  | Ctrl-n | Find next instance of current search |
53
53
  | Ctrl-p | Find previous instance of current search |
54
54
 
55
+ | Alt-h | Open command prompt to replace keywords |
56
+
55
57
  Note: `Ctrl-n` and `Ctrl-p` should be used from the main buffer, not from inside
56
58
  the search prompt. After `Ctrl-f`, press enter to complete the search and then
57
59
  you can use `Ctrl-n` and `Ctrl-p` to cycle through matches.
@@ -87,7 +89,10 @@ you can use `Ctrl-n` and `Ctrl-p` to cycle through matches.
87
89
  | Alt-DownArrow Alt-j | Move current line or selected lines down |
88
90
  | Alt-Backspace or Alt-Ctrl-h | Delete word left |
89
91
  | Ctrl-a | Select all |
92
+ | Alt-s | Enter Selection mode |
93
+ | Alt-c | Toggle comment for lines |
90
94
  | Tab | Indent selected text |
95
+ | Alt-d | Dedent selected text |
91
96
  | Shift-Tab | Unindent selected text |
92
97
 
93
98
  ### Macros(not implemented yet)
@@ -119,6 +124,7 @@ you can use `Ctrl-n` and `Ctrl-p` to cycle through matches.
119
124
  | Ctrl-r | Toggle the line number ruler |
120
125
 
121
126
  ### Emacs style actions
127
+ - not implemented yet
122
128
 
123
129
  | Key | Description of function |
124
130
  |---------- |-------------------------- |
@@ -128,6 +134,7 @@ you can use `Ctrl-n` and `Ctrl-p` to cycle through matches.
128
134
  | Alt-e | Move to end of line |
129
135
 
130
136
  ### Function keys.
137
+ - not implemented yet
131
138
 
132
139
  Warning! The function keys may not work in all terminals!
133
140
 
@@ -18,13 +18,16 @@ To quit, press `Ctrl-q`. Save by pressing `Ctrl-s`. Press `Ctrl-e`, as previousl
18
18
  mentioned, to start typing commands. To see which commands are available, at the
19
19
  prompt, press tab, or view the help topic with `> help commands`.
20
20
 
21
- Move the cursor around with the mouse or with the arrow keys. Enter text simply
22
- by pressing character keys.
21
+ - Move the cursor around with the mouse or with the arrow keys.
22
+ - Enter text simply by pressing character keys.
23
+
24
+ - If the colorscheme doesn't look good, change it with either of the below:
25
+ `> set colorscheme ...`
26
+ `> theme ...` (bunmicro only)
27
+ - You can press tab to see the available colorschemes, and preview with arrow keys
28
+ - see more information about colorschemes and syntax highlighting with
29
+ - `> help colors`
23
30
 
24
- If the colorscheme doesn't look good, you can change it with
25
- `> set colorscheme ...`. You can press tab to see the available colorschemes,
26
- or see more information about colorschemes and syntax highlighting with `> help
27
- colors`.
28
31
 
29
32
  Press `Ctrl-w` to move between splits, and type `> vsplit filename` or
30
33
  `> hsplit filename` to open a new split.
@@ -33,9 +36,11 @@ Press `Ctrl-w` to move between splits, and type `> vsplit filename` or
33
36
 
34
37
  Micro has a built-in help system which can be accessed with the `> help` command.
35
38
 
36
- To view help for the various available topics, press `Ctrl-e` to access command
37
- mode and type in `> help` followed by a topic. Typing just `> help` will open
38
- this page.
39
+ - To view help for a specific topic,
40
+ - press `Ctrl-e` to access command mode and type in `> help` followed by a topic.
41
+ - Use Tab to see available topics
42
+ - Typing just `> help` will open this page.
43
+
39
44
 
40
45
  Here are the available help topics:
41
46
 
@@ -1,18 +1,22 @@
1
1
  # Keybindings
2
2
 
3
- Micro has a plethora of hotkeys that make it easy and powerful to use and all
4
- hotkeys are fully customizable to your liking.
3
+ - bunmicro has a plethora of hotkeys that make it easy and powerful to use.
5
4
 
6
- Custom keybindings are stored internally in micro if changed with the `> bind`
7
- command or can also be added in the file `~/.config/micro/bindings.json` as
8
- discussed below. For a list of the default keybindings in the json format used
9
- by micro, please see the end of this file. For a more user-friendly list with
10
- explanations of what the default hotkeys are and what they do, please see
11
- `> help defaultkeys` (a json formatted list of default keys is included
12
- at the end of this document).
5
+ - Custom keybindings are not implemented in bunmicro for now
6
+ - For a list of actions like CursorUp
7
+ - Press Ctrl+E to show command prompt
8
+ - `> help actions`
9
+ - It is recommended to use jsplugins to register a command for such purposes
10
+ - Examples under runtime/jsplugins
11
+ - If you really wish to rebind keys, edit src/index.js and look for things like alt-d
12
+
13
+
14
+ - For a more user-friendly list with
15
+ explanations of what the default hotkeys are and what they do
16
+ - Press Ctrl+E to show command prompt
17
+ - `> help defaultkeys`
18
+ - a json formatted list of default keys is included at the end of this document
13
19
 
14
- If `~/.config/micro/bindings.json` does not exist, you can simply create it.
15
- Micro will know what to do with it.
16
20
 
17
21
  You can use Ctrl + arrows to move word by word (Alt + arrows for Mac). Alt + left and right
18
22
  move the cursor to the start and end of the line (Ctrl + left/right for Mac), and Ctrl + up and down move the
@@ -20,171 +24,14 @@ cursor to the start and end of the buffer.
20
24
 
21
25
  You can hold shift with all of these movement actions to select while moving.
22
26
 
23
- ## Rebinding keys
24
-
25
- The bindings may be rebound using the `~/.config/micro/bindings.json` file.
26
- Each key is bound to an action.
27
-
28
- For example, to bind `Ctrl-y` to undo and `Ctrl-z` to redo, you could put the
29
- following in the `bindings.json` file.
30
-
31
- ```json
32
- {
33
- "Ctrl-y": "Undo",
34
- "Ctrl-z": "Redo"
35
- }
36
- ```
37
-
38
- **Note:** The syntax `<Modifier><key>` is equivalent to `<Modifier>-<key>`. In
39
- addition, `Ctrl-Shift` bindings are not supported by terminals, and are the same
40
- as simply `Ctrl` bindings. This means that `CtrlG`, `Ctrl-G`, and `Ctrl-g` all
41
- mean the same thing. However, for `Alt` this is not the case: `AltG` and `Alt-G`
42
- mean `Alt-Shift-g`, while `Alt-g` does not require the Shift modifier.
43
-
44
- In addition to editing your `~/.config/micro/bindings.json`, you can run
45
- `>bind <keycombo> <action>` For a list of bindable actions, see below.
46
-
47
- You can also chain commands when rebinding. For example, if you want `Alt-s` to
48
- save and quit you can bind it like so:
49
-
50
- ```json
51
- {
52
- "Alt-s": "Save,Quit"
53
- }
54
- ```
55
-
56
- Each action will return a success flag. Actions can be chained such that
57
- the chain only continues when there are successes, or failures, or either.
58
- The `,` separator will always chain to the next action. The `|` separator
59
- will abort the chain if the action preceding it succeeds, and the `&` will
60
- abort the chain if the action preceding it fails. For example, in the default
61
- bindings, tab is bound as
62
-
63
- ```
64
- "Tab": "Autocomplete|IndentSelection|InsertTab"
65
- ```
66
-
67
- This means that if the `Autocomplete` action is successful, the chain will
68
- abort. Otherwise, it will try `IndentSelection`, and if that fails too, it
69
- will execute `InsertTab`. To use `,`, `|` or `&` in an action (as an argument
70
- to a command, for example), escape it with `\` or wrap it in single or double
71
- quotes.
72
-
73
- If the action has an `onAction` lua callback, for example `onAutocomplete` (see
74
- `> help plugins`), then the action is only considered successful if the action
75
- itself succeeded *and* the callback returned true. If there are multiple
76
- `onAction` callbacks for this action, registered by multiple plugins, then the
77
- action is only considered successful if the action itself succeeded and all the
78
- callbacks returned true.
79
-
80
- ## Binding commands
81
-
82
- You can also bind a key to execute a command in command mode (see
83
- `help commands`). Simply prepend the binding with `command:`. For example:
84
27
 
85
- ```json
86
- {
87
- "Alt-p": "command:pwd"
88
- }
89
- ```
90
-
91
- **Note for macOS**: By default, macOS terminals do not forward alt events and
28
+ ## Note for macOS
29
+ - By default, macOS terminals do not forward alt events and
92
30
  instead insert unicode characters. To fix this, do the following:
93
31
 
94
32
  * iTerm2: select `Esc+` for `Left Option Key` in `Preferences->Profiles->Keys`.
95
33
  * Terminal.app: Enable `Use Option key as Meta key` in `Preferences->Profiles->Keyboard`.
96
34
 
97
- Now when you press `Alt-p` the `pwd` command will be executed which will show
98
- your working directory in the infobar.
99
-
100
- You can also bind an "editable" command with `command-edit:`. This means that
101
- micro won't immediately execute the command when you press the binding, but
102
- instead just place the string in the infobar in command mode. For example,
103
- you could rebind `Ctrl-g` to `> help`:
104
-
105
- ```json
106
- {
107
- "Ctrl-g": "command-edit:help "
108
- }
109
- ```
110
-
111
- Now when you press `Ctrl-g`, `help` will appear in the command bar and your
112
- cursor will be placed after it (note the space in the json that controls the
113
- cursor placement).
114
-
115
- ## Binding Lua functions
116
-
117
- You can also bind a key to a Lua function provided by a plugin, or by your own
118
- `~/.config/micro/init.lua`. For example:
119
-
120
- ```json
121
- {
122
- "Alt-q": "lua:foo.bar"
123
- }
124
- ```
125
-
126
- where `foo` is the name of the plugin and `bar` is the name of the lua function
127
- in it, e.g.:
128
-
129
- ```lua
130
- local micro = import("micro")
131
-
132
- function bar(bp)
133
- micro.InfoBar():Message("Bar action triggered")
134
- return true
135
- end
136
- ```
137
-
138
- See `> help plugins` for more informations on how to write lua functions.
139
-
140
- For `~/.config/micro/init.lua` the plugin name is `initlua` (so the keybinding
141
- in this example would be `"Alt-q": "lua:initlua.bar"`).
142
-
143
- The currently active bufpane is passed to the lua function as the argument. If
144
- the key is a mouse button, e.g. `MouseLeft` or `MouseWheelUp`, the mouse event
145
- info is passed to the lua function as the second argument, of type
146
- `*tcell.EventMouse`. See https://pkg.go.dev/github.com/micro-editor/tcell/v2#EventMouse
147
- for the description of this type and its methods.
148
-
149
- The return value of the lua function defines whether the action has succeeded.
150
- This is used when chaining lua functions with other actions. They can be chained
151
- the same way as regular actions as described above, for example:
152
-
153
- ```
154
- "Alt-q": "lua:initlua.bar|Quit"
155
- ```
156
-
157
- ## Binding raw escape sequences
158
-
159
- Only read this section if you are interested in binding keys that aren't on the
160
- list of supported keys for binding.
161
-
162
- One of the drawbacks of using a terminal-based editor is that the editor must
163
- get all of its information about key events through the terminal. The terminal
164
- sends these events in the form of escape sequences often (but not always)
165
- starting with `0x1b`.
166
-
167
- For example, if micro reads `\x1b[1;5D`, on most terminals this will mean the
168
- user pressed CtrlLeft.
169
-
170
- For many key chords though, the terminal won't send any escape code or will
171
- send an escape code already in use. For example for `CtrlBackspace`, my
172
- terminal sends `\u007f` (note this doesn't start with `0x1b`), which it also
173
- sends for `Backspace` meaning micro can't bind `CtrlBackspace`.
174
-
175
- However, some terminals do allow you to bind keys to send specific escape
176
- sequences you define. Then from micro you can directly bind those escape
177
- sequences to actions. For example, to bind `CtrlBackspace` you can instruct
178
- your terminal to send `\x1bctrlback` and then bind it in `bindings.json`:
179
-
180
- ```json
181
- {
182
- "\u001bctrlback": "DeleteWordLeft"
183
- }
184
- ```
185
-
186
- Here are some instructions for sending raw escapes in different terminals
187
-
188
35
  ### iTerm2
189
36
 
190
37
  In iTerm2, you can do this in `Preferences->Profiles->Keys` then click the
@@ -192,156 +39,8 @@ In iTerm2, you can do this in `Preferences->Profiles->Keys` then click the
192
39
  For the above example your would type `ctrlback` into the box (the `\x1b`) is
193
40
  automatically sent by iTerm2.
194
41
 
195
- ### Linux using loadkeys
196
-
197
- You can do this in linux using the loadkeys program.
198
-
199
- Coming soon!
200
-
201
- ## Unbinding keys
202
-
203
- It is also possible to disable any of the default key bindings by use of the
204
- `None` action in the user's `bindings.json` file.
205
-
206
- ## Bindable actions and bindable keys
207
42
 
208
- The list of default keybindings contains most of the possible actions and keys
209
- which you can use, but not all of them. Here is a full list of both.
210
-
211
- Full list of possible actions:
212
-
213
- ```
214
- CursorUp
215
- CursorDown
216
- CursorPageUp
217
- CursorPageDown
218
- CursorLeft
219
- CursorRight
220
- CursorStart
221
- CursorEnd
222
- CursorToViewTop
223
- CursorToViewCenter
224
- CursorToViewBottom
225
- SelectToStart
226
- SelectToEnd
227
- SelectUp
228
- SelectDown
229
- SelectLeft
230
- SelectRight
231
- WordRight
232
- WordLeft
233
- SubWordRight
234
- SubWordLeft
235
- SelectWordRight
236
- SelectWordLeft
237
- SelectSubWordRight
238
- SelectSubWordLeft
239
- DeleteWordRight
240
- DeleteWordLeft
241
- DeleteSubWordRight
242
- DeleteSubWordLeft
243
- SelectLine
244
- SelectToStartOfLine
245
- SelectToStartOfText
246
- SelectToStartOfTextToggle
247
- SelectToEndOfLine
248
- ParagraphPrevious
249
- ParagraphNext
250
- SelectToParagraphPrevious
251
- SelectToParagraphNext
252
- InsertNewline
253
- Backspace
254
- Delete
255
- InsertTab
256
- Save
257
- SaveAll
258
- SaveAs
259
- Find
260
- FindLiteral
261
- FindNext
262
- FindPrevious
263
- DiffNext
264
- DiffPrevious
265
- Center
266
- Undo
267
- Redo
268
- Copy
269
- CopyLine
270
- Cut
271
- CutLine
272
- Duplicate
273
- DuplicateLine
274
- DeleteLine
275
- MoveLinesUp
276
- MoveLinesDown
277
- IndentSelection
278
- OutdentSelection
279
- Autocomplete
280
- CycleAutocompleteBack
281
- OutdentLine
282
- IndentLine
283
- Paste
284
- PastePrimary
285
- SelectAll
286
- OpenFile
287
- Start
288
- End
289
- PageUp
290
- PageDown
291
- SelectPageUp
292
- SelectPageDown
293
- HalfPageUp
294
- HalfPageDown
295
- StartOfText
296
- StartOfTextToggle
297
- StartOfLine
298
- EndOfLine
299
- ToggleHelp
300
- ToggleKeyMenu
301
- ToggleDiffGutter
302
- ToggleRuler
303
- ToggleHighlightSearch
304
- UnhighlightSearch
305
- ResetSearch
306
- ClearStatus
307
- ShellMode
308
- CommandMode
309
- ToggleOverwriteMode
310
- Escape
311
- Quit
312
- QuitAll
313
- ForceQuit
314
- AddTab
315
- PreviousTab
316
- NextTab
317
- FirstTab
318
- LastTab
319
- NextSplit
320
- PreviousSplit
321
- FirstSplit
322
- LastSplit
323
- Unsplit
324
- VSplit
325
- HSplit
326
- ToggleMacro
327
- PlayMacro
328
- Suspend (Unix only)
329
- ScrollUp
330
- ScrollDown
331
- SpawnMultiCursor
332
- SpawnMultiCursorUp
333
- SpawnMultiCursorDown
334
- SpawnMultiCursorSelect
335
- RemoveMultiCursor
336
- RemoveAllMultiCursors
337
- SkipMultiCursor
338
- SkipMultiCursorBack
339
- JumpToMatchingBrace
340
- JumpLine
341
- Deselect
342
- ClearInfo
343
- None
344
- ```
43
+ ## Actions binding (not implemented)
345
44
 
346
45
  The `StartOfTextToggle` and `SelectToStartOfTextToggle` actions toggle between
347
46
  jumping to the start of the text (first) and start of the line.
@@ -511,10 +210,7 @@ MouseWheelLeft
511
210
  MouseWheelRight
512
211
  ```
513
212
 
514
- ## Key sequences
515
213
 
516
- Key sequences can be bound by specifying valid keys one after another in brackets, such
517
- as `<Ctrl-x><Ctrl-c>`.
518
214
 
519
215
  # Default keybinding configuration.
520
216
 
@@ -601,17 +297,24 @@ conventions for text editing defaults.
601
297
  "Ctrl-q": "Quit",
602
298
  "Ctrl-e": "CommandMode",
603
299
  "Ctrl-w": "NextSplit|FirstSplit",
300
+
301
+
302
+ // macro insert
303
+ // not implemented yet
604
304
  "Ctrl-u": "ToggleMacro",
605
305
  "Ctrl-j": "PlayMacro",
606
306
  "Insert": "ToggleOverwriteMode",
307
+
607
308
 
608
309
  // Emacs-style keybindings
310
+ // not implemented yet
609
311
  "Alt-f": "WordRight",
610
312
  "Alt-b": "WordLeft",
611
313
  "Alt-a": "StartOfLine",
612
314
  "Alt-e": "EndOfLine",
613
315
 
614
316
  // Integration with file managers
317
+ // not implemented yet
615
318
  "F2": "Save",
616
319
  "F3": "Find",
617
320
  "F4": "Quit",
@@ -629,6 +332,7 @@ conventions for text editing defaults.
629
332
  "Ctrl-MouseLeft": "MouseMultiCursor",
630
333
 
631
334
  // Multi-cursor bindings
335
+ // not implemented yet
632
336
  "Alt-n": "SpawnMultiCursor",
633
337
  "AltShiftUp": "SpawnMultiCursorUp",
634
338
  "AltShiftDown": "SpawnMultiCursorDown",
@@ -639,122 +343,13 @@ conventions for text editing defaults.
639
343
  }
640
344
  ```
641
345
 
642
- ## Pane type bindings
643
-
644
- Keybindings can be specified for different pane types as well. For example, to
645
- make a binding that only affects the command bar, use the `command` subgroup:
646
-
647
- ```
648
- {
649
- "command": {
650
- "Ctrl-w": "WordLeft"
651
- }
652
- }
653
- ```
654
-
655
- The possible pane types are `buffer` (normal buffer), `command` (command bar),
656
- and `terminal` (terminal pane). The defaults for the command and terminal panes
657
- are given below:
658
-
659
- ```
660
- {
661
- "terminal": {
662
- "<Ctrl-q><Ctrl-q>": "Exit",
663
- "<Ctrl-e><Ctrl-e>": "CommandMode",
664
- "<Ctrl-w><Ctrl-w>": "NextSplit"
665
- },
666
-
667
- "command": {
668
- "Up": "HistoryUp",
669
- "Down": "HistoryDown",
670
- "Right": "CursorRight",
671
- "Left": "CursorLeft",
672
- "ShiftUp": "SelectUp",
673
- "ShiftDown": "SelectDown",
674
- "ShiftLeft": "SelectLeft",
675
- "ShiftRight": "SelectRight",
676
- "AltLeft": "StartOfTextToggle",
677
- "AltRight": "EndOfLine",
678
- "AltUp": "CursorStart",
679
- "AltDown": "CursorEnd",
680
- "AltShiftRight": "SelectWordRight",
681
- "AltShiftLeft": "SelectWordLeft",
682
- "CtrlLeft": "WordLeft",
683
- "CtrlRight": "WordRight",
684
- "CtrlShiftLeft": "SelectToStartOfTextToggle",
685
- "ShiftHome": "SelectToStartOfTextToggle",
686
- "CtrlShiftRight": "SelectToEndOfLine",
687
- "ShiftEnd": "SelectToEndOfLine",
688
- "CtrlUp": "CursorStart",
689
- "CtrlDown": "CursorEnd",
690
- "CtrlShiftUp": "SelectToStart",
691
- "CtrlShiftDown": "SelectToEnd",
692
- "Enter": "ExecuteCommand",
693
- "CtrlH": "Backspace",
694
- "Backspace": "Backspace",
695
- "OldBackspace": "Backspace",
696
- "Alt-CtrlH": "DeleteWordLeft",
697
- "Alt-Backspace": "DeleteWordLeft",
698
- "Tab": "CommandComplete",
699
- "Backtab": "CycleAutocompleteBack",
700
- "Ctrl-z": "Undo",
701
- "Ctrl-y": "Redo",
702
- "Ctrl-c": "Copy",
703
- "Ctrl-x": "Cut",
704
- "Ctrl-k": "CutLine",
705
- "Ctrl-v": "Paste",
706
- "Home": "StartOfTextToggle",
707
- "End": "EndOfLine",
708
- "CtrlHome": "CursorStart",
709
- "CtrlEnd": "CursorEnd",
710
- "Delete": "Delete",
711
- "Ctrl-q": "AbortCommand",
712
- "Ctrl-e": "EndOfLine",
713
- "Ctrl-a": "StartOfLine",
714
- "Ctrl-w": "DeleteWordLeft",
715
- "Insert": "ToggleOverwriteMode",
716
- "Ctrl-b": "WordLeft",
717
- "Ctrl-f": "WordRight",
718
- "Ctrl-d": "DeleteWordLeft",
719
- "Ctrl-m": "ExecuteCommand",
720
- "Ctrl-n": "HistoryDown",
721
- "Ctrl-p": "HistoryUp",
722
- "Ctrl-u": "SelectToStart",
723
-
724
- // Emacs-style keybindings
725
- "Alt-f": "WordRight",
726
- "Alt-b": "WordLeft",
727
- "Alt-a": "StartOfText",
728
- "Alt-e": "EndOfLine",
729
-
730
- // Integration with file managers
731
- "F10": "AbortCommand",
732
- "Esc": "AbortCommand",
733
-
734
- // Mouse bindings
735
- "MouseWheelUp": "HistoryUp",
736
- "MouseWheelDown": "HistoryDown",
737
- "MouseLeft": "MousePress",
738
- "MouseLeftDrag": "MouseDrag",
739
- "MouseLeftRelease": "MouseRelease",
740
- "MouseMiddle": "PastePrimary"
741
- }
742
- }
743
- ```
744
346
 
745
347
  ## Final notes
746
348
 
747
- Note: On some old terminal emulators and on Windows machines, `Ctrl-h` should be
748
- used for backspace.
749
-
750
- Additionally, alt keys can be bound by using `Alt-key`. For example `Alt-a` or
751
- `Alt-Up`. Micro supports an optional `-` between modifiers like `Alt` and
752
- `Ctrl` so `Alt-a` could be rewritten as `Alta` (case matters for alt bindings).
753
- This is why in the default keybindings you can see `AltShiftLeft` instead of
754
- `Alt-ShiftLeft` (they are equivalent).
349
+ - Note: On some old terminal emulators and on Windows machines, `Ctrl-h` should be used for backspace.
755
350
 
756
- Please note that terminal emulators are strange applications and micro only
757
- receives key events that the terminal decides to send. Some terminal emulators
758
- may not send certain events even if this document says micro can receive the
759
- event. To see exactly what micro receives from the terminal when you press a
760
- key, run the `> raw` command.
351
+ - Please note that terminal emulators are strange applications and micro only receives key events that the terminal decides to send.
352
+ - Some terminal emulators may not send certain events even if this document says micro can receive the event.
353
+ - To see exactly what micro receives from the terminal when you press a key,
354
+ - Press Ctrl+E to show command prompt
355
+ - then run the `> raw` command.