bunmicro 0.8.3 → 0.9.1

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.1] - 2026-06-03
4
+ - Upgrade method explanation
5
+
6
+ ## [0.9.0] - 2026-06-03
7
+ - Added more alt- key bindings
8
+ - Alt-s for Selection mode
9
+ - Alt-d for unindent/dedent/outdent
10
+ - Updated help md documents
11
+ - js/python builtin objects autocomplete
12
+ - autocomplete includes language keywords
13
+ - Fixed unicode/emoji for term and editor
14
+
3
15
  ## [0.8.3] - 2026-06-02
4
16
  - Fixed Linux failed to parse php.yaml crashes the whole program
5
17
  - Fixed Linux espeak-ng args passing
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
 
@@ -69,6 +77,8 @@ npm install -g bun
69
77
 
70
78
  # Run bunmicro(stable)
71
79
  npx bunmicro
80
+ # npx bunmicro@latest to upgrade to new version
81
+
72
82
  # npx bunmicro [options] [file1] [file2] ...
73
83
  # alternative: bun bunmicro/src/index.js [options] [file1] [file2] ...
74
84
  # if npx is not available, use npm x -- bunmicro
@@ -85,6 +95,8 @@ npx bunmicro
85
95
 
86
96
  ```sh
87
97
  bun x bunmicro
98
+ # bun x bunmicro@latest to upgrade to new version
99
+
88
100
  # bun x bunmicro [options] [file1] [file2] ...
89
101
  # alternative: bun bunmicro/src/index.js [options] [file1] [file2] ...
90
102
 
@@ -120,8 +132,11 @@ bun x bunmicro
120
132
  - Common editor features such as undo/redo, line numbers, Unicode support, soft wrapping, etc
121
133
 
122
134
  # Useful key bindings:
135
+ - For a detailed help:
136
+ - Ctrl+E > help defaultkeys
123
137
 
124
138
  - `Ctrl-Q`: Close current tab/pane, quits if it is the last tab/pane; prompts if modified
139
+ - `Alt-q`: Close current tab/pane, quits if it is the last tab/pane; prompts if modified
125
140
  - `Ctrl-S`: Save
126
141
  - `Ctrl-O`: Open
127
142
  - `Ctrl-G`: Toggle help pane
@@ -134,9 +149,13 @@ bun x bunmicro
134
149
  - `Ctrl-B`: Shell prompt
135
150
  - `Ctrl-D`: Duplicate Line/Selection
136
151
  - `Ctrl-T`: Open a new tab
137
- - `Alt-G`: Toggle nano-like key bindings menu
152
+ - `Alt-g`: Toggle nano-like key bindings menu
153
+ - `Alt-h`: replace [-l] `text1` `text2`
154
+ - `Alt-c`: Toggle comment
155
+ - `Alt-s`: Selection mode
138
156
  - `Alt-,` / `Alt-p`: Previous tab
139
157
  - `Alt-.` / `Alt-t`: Next tab
158
+ - `Alt-k` / `Alt-j`: Move lines Up/Down
140
159
  - `Tab`: Triggers autocomplete
141
160
  - `Esc`: close command/shell prompt or terminal pane, rehighlight long lines
142
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunmicro",
3
- "version": "0.8.3",
3
+ "version": "0.9.1",
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