vim-sim 1.0.8 → 1.0.9
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/README.md +15 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
A complete, production-ready Vim editor simulation engine for Node.js. Implements the full Vim editing experience with 85%+ test coverage, including motions, operators, visual mode, text objects, macros, marks, undo/redo tree, spell checking, and more.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
<details>
|
|
12
|
+
<summary><h2>Features</h2></summary>
|
|
12
13
|
|
|
13
14
|
### Core Editing
|
|
14
15
|
- **All Basic Motions**: `h`, `j`, `k`, `l`, `w`, `b`, `e`, `W`, `B`, `E`, `0`, `$`, `^`, `gg`, `G`, `{`, `}`, `(`, `)`, `%`
|
|
@@ -38,13 +39,16 @@ A complete, production-ready Vim editor simulation engine for Node.js. Implement
|
|
|
38
39
|
- **Comment Toggling**: Smart comment handling
|
|
39
40
|
- **Digraphs**: 150+ special characters
|
|
40
41
|
|
|
42
|
+
</details>
|
|
43
|
+
|
|
41
44
|
## Installation
|
|
42
45
|
|
|
43
46
|
```bash
|
|
44
47
|
npm install vim-sim
|
|
45
48
|
```
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
<details>
|
|
51
|
+
<summary><h3>Quick Start</h3></summary>
|
|
48
52
|
|
|
49
53
|
```typescript
|
|
50
54
|
import { Session } from 'vim-sim';
|
|
@@ -89,8 +93,10 @@ console.log(currentState.cursor.line); // 0
|
|
|
89
93
|
console.log(currentState.cursor.column); // 7
|
|
90
94
|
```
|
|
91
95
|
|
|
96
|
+
</details>
|
|
97
|
+
|
|
92
98
|
<details>
|
|
93
|
-
<summary><
|
|
99
|
+
<summary><h3>API Documentation</h3></summary>
|
|
94
100
|
|
|
95
101
|
### Session
|
|
96
102
|
|
|
@@ -210,7 +216,7 @@ enum Mode {
|
|
|
210
216
|
</details>
|
|
211
217
|
|
|
212
218
|
<details>
|
|
213
|
-
<summary><
|
|
219
|
+
<summary><h3>Usage Examples</h3></summary>
|
|
214
220
|
|
|
215
221
|
### Basic Text Editing
|
|
216
222
|
|
|
@@ -370,7 +376,7 @@ console.log(session.getState().buffer.content);
|
|
|
370
376
|
</details>
|
|
371
377
|
|
|
372
378
|
<details>
|
|
373
|
-
<summary><
|
|
379
|
+
<summary><h3>Advanced Usage</h3></summary>
|
|
374
380
|
|
|
375
381
|
### Custom Configuration
|
|
376
382
|
|
|
@@ -430,7 +436,8 @@ const activeWindow = windowManager.getActiveWindow();
|
|
|
430
436
|
|
|
431
437
|
</details>
|
|
432
438
|
|
|
433
|
-
|
|
439
|
+
<details>
|
|
440
|
+
<summary><h3>TypeScript Support</h3></summary>
|
|
434
441
|
|
|
435
442
|
This package is written in TypeScript and provides full type definitions.
|
|
436
443
|
|
|
@@ -446,3 +453,5 @@ function processVimState(state: State): void {
|
|
|
446
453
|
}
|
|
447
454
|
```
|
|
448
455
|
|
|
456
|
+
</details>
|
|
457
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vim-sim",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "A complete Vim editor simulation engine for Node.js. Implements motions, operators, visual mode, text objects, macros, marks, undo/redo tree, spell checking, and more. \nCheck out my demo here: https://vim.colefoster.ca/demo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vim",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"motions",
|
|
15
15
|
"operators"
|
|
16
16
|
],
|
|
17
|
-
"homepage": "https://
|
|
17
|
+
"homepage": "https://vim.colefoster.ca/demo",
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/colefoster/vim-sim/issues"
|
|
20
20
|
},
|