vim-sim 1.0.9 → 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 +4 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,8 +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
|
-
<details>
|
|
12
|
-
<summary><h2>Features</h2></summary>
|
|
11
|
+
<details><summary><h2>Features</h2></summary>
|
|
13
12
|
|
|
14
13
|
### Core Editing
|
|
15
14
|
- **All Basic Motions**: `h`, `j`, `k`, `l`, `w`, `b`, `e`, `W`, `B`, `E`, `0`, `$`, `^`, `gg`, `G`, `{`, `}`, `(`, `)`, `%`
|
|
@@ -92,11 +91,9 @@ console.log(currentState.buffer.content); // "Hello, is awesome!"
|
|
|
92
91
|
console.log(currentState.cursor.line); // 0
|
|
93
92
|
console.log(currentState.cursor.column); // 7
|
|
94
93
|
```
|
|
95
|
-
|
|
96
94
|
</details>
|
|
97
95
|
|
|
98
|
-
<details>
|
|
99
|
-
<summary><h3>API Documentation</h3></summary>
|
|
96
|
+
<details><summary><h3>API Documentation</h3></summary>
|
|
100
97
|
|
|
101
98
|
### Session
|
|
102
99
|
|
|
@@ -372,11 +369,9 @@ session.handleKey('p');
|
|
|
372
369
|
console.log(session.getState().buffer.content);
|
|
373
370
|
// "Copy this text\nPaste here\nCopy this text"
|
|
374
371
|
```
|
|
375
|
-
|
|
376
372
|
</details>
|
|
377
373
|
|
|
378
|
-
<details>
|
|
379
|
-
<summary><h3>Advanced Usage</h3></summary>
|
|
374
|
+
<details><summary><h3>Advanced Usage</h3></summary>
|
|
380
375
|
|
|
381
376
|
### Custom Configuration
|
|
382
377
|
|
|
@@ -433,11 +428,9 @@ const state = session.getState();
|
|
|
433
428
|
const windowManager = state.windowManager;
|
|
434
429
|
const activeWindow = windowManager.getActiveWindow();
|
|
435
430
|
```
|
|
436
|
-
|
|
437
431
|
</details>
|
|
438
432
|
|
|
439
|
-
<details>
|
|
440
|
-
<summary><h3>TypeScript Support</h3></summary>
|
|
433
|
+
<details><summary><h3>TypeScript Support</h3></summary>
|
|
441
434
|
|
|
442
435
|
This package is written in TypeScript and provides full type definitions.
|
|
443
436
|
|
|
@@ -452,6 +445,5 @@ function processVimState(state: State): void {
|
|
|
452
445
|
}
|
|
453
446
|
}
|
|
454
447
|
```
|
|
455
|
-
|
|
456
448
|
</details>
|
|
457
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",
|