vim-sim 1.0.8 → 1.0.10
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 +11 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
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><summary><h2>Features</h2></summary>
|
|
12
12
|
|
|
13
13
|
### Core Editing
|
|
14
14
|
- **All Basic Motions**: `h`, `j`, `k`, `l`, `w`, `b`, `e`, `W`, `B`, `E`, `0`, `$`, `^`, `gg`, `G`, `{`, `}`, `(`, `)`, `%`
|
|
@@ -38,13 +38,16 @@ A complete, production-ready Vim editor simulation engine for Node.js. Implement
|
|
|
38
38
|
- **Comment Toggling**: Smart comment handling
|
|
39
39
|
- **Digraphs**: 150+ special characters
|
|
40
40
|
|
|
41
|
+
</details>
|
|
42
|
+
|
|
41
43
|
## Installation
|
|
42
44
|
|
|
43
45
|
```bash
|
|
44
46
|
npm install vim-sim
|
|
45
47
|
```
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
<details>
|
|
50
|
+
<summary><h3>Quick Start</h3></summary>
|
|
48
51
|
|
|
49
52
|
```typescript
|
|
50
53
|
import { Session } from 'vim-sim';
|
|
@@ -88,9 +91,9 @@ console.log(currentState.buffer.content); // "Hello, is awesome!"
|
|
|
88
91
|
console.log(currentState.cursor.line); // 0
|
|
89
92
|
console.log(currentState.cursor.column); // 7
|
|
90
93
|
```
|
|
94
|
+
</details>
|
|
91
95
|
|
|
92
|
-
<details>
|
|
93
|
-
<summary><strong>API Documentation</strong></summary>
|
|
96
|
+
<details><summary><h3>API Documentation</h3></summary>
|
|
94
97
|
|
|
95
98
|
### Session
|
|
96
99
|
|
|
@@ -210,7 +213,7 @@ enum Mode {
|
|
|
210
213
|
</details>
|
|
211
214
|
|
|
212
215
|
<details>
|
|
213
|
-
<summary><
|
|
216
|
+
<summary><h3>Usage Examples</h3></summary>
|
|
214
217
|
|
|
215
218
|
### Basic Text Editing
|
|
216
219
|
|
|
@@ -366,11 +369,9 @@ session.handleKey('p');
|
|
|
366
369
|
console.log(session.getState().buffer.content);
|
|
367
370
|
// "Copy this text\nPaste here\nCopy this text"
|
|
368
371
|
```
|
|
369
|
-
|
|
370
372
|
</details>
|
|
371
373
|
|
|
372
|
-
<details>
|
|
373
|
-
<summary><strong>Advanced Usage</strong></summary>
|
|
374
|
+
<details><summary><h3>Advanced Usage</h3></summary>
|
|
374
375
|
|
|
375
376
|
### Custom Configuration
|
|
376
377
|
|
|
@@ -427,10 +428,9 @@ const state = session.getState();
|
|
|
427
428
|
const windowManager = state.windowManager;
|
|
428
429
|
const activeWindow = windowManager.getActiveWindow();
|
|
429
430
|
```
|
|
430
|
-
|
|
431
431
|
</details>
|
|
432
432
|
|
|
433
|
-
|
|
433
|
+
<details><summary><h3>TypeScript Support</h3></summary>
|
|
434
434
|
|
|
435
435
|
This package is written in TypeScript and provides full type definitions.
|
|
436
436
|
|
|
@@ -445,4 +445,5 @@ function processVimState(state: State): void {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
```
|
|
448
|
+
</details>
|
|
448
449
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vim-sim",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
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
|
},
|