@opentui/core 0.0.0-20251208-bec95e7d → 0.0.0-20251209-015faccd
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/3d.js +1 -1
- package/{index-crebvcxc.js → index-4s3xr47p.js} +32 -16
- package/{index-crebvcxc.js.map → index-4s3xr47p.js.map} +4 -4
- package/index.js +42 -16
- package/index.js.map +5 -5
- package/package.json +7 -7
- package/renderer.d.ts +12 -1
- package/testing.js +4 -2
- package/testing.js.map +3 -3
- package/zig.d.ts +2 -2
package/index.js
CHANGED
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
brightRed,
|
|
62
62
|
brightWhite,
|
|
63
63
|
brightYellow,
|
|
64
|
+
buildKittyKeyboardFlags,
|
|
64
65
|
capture,
|
|
65
66
|
clearEnvCache,
|
|
66
67
|
convertGlobalToLocalSelection,
|
|
@@ -137,7 +138,7 @@ import {
|
|
|
137
138
|
white,
|
|
138
139
|
wrapWithDelegates,
|
|
139
140
|
yellow
|
|
140
|
-
} from "./index-
|
|
141
|
+
} from "./index-4s3xr47p.js";
|
|
141
142
|
// src/text-buffer-view.ts
|
|
142
143
|
class TextBufferView {
|
|
143
144
|
lib;
|
|
@@ -5720,9 +5721,15 @@ class InputRenderable extends Renderable {
|
|
|
5720
5721
|
return true;
|
|
5721
5722
|
}
|
|
5722
5723
|
}
|
|
5723
|
-
if (
|
|
5724
|
-
|
|
5725
|
-
|
|
5724
|
+
if (!keyCtrl && !keyMeta && !keySuper && !keyHyper) {
|
|
5725
|
+
if (keyName === "space") {
|
|
5726
|
+
this.insertText(" ");
|
|
5727
|
+
return true;
|
|
5728
|
+
}
|
|
5729
|
+
if (keySequence && keySequence.length === 1 && keySequence.charCodeAt(0) >= 32 && keySequence.charCodeAt(0) <= 126) {
|
|
5730
|
+
this.insertText(keySequence);
|
|
5731
|
+
return true;
|
|
5732
|
+
}
|
|
5726
5733
|
}
|
|
5727
5734
|
return false;
|
|
5728
5735
|
}
|
|
@@ -6412,7 +6419,7 @@ class ContentRenderable extends BoxRenderable {
|
|
|
6412
6419
|
}
|
|
6413
6420
|
_getVisibleChildren() {
|
|
6414
6421
|
if (this._viewportCulling) {
|
|
6415
|
-
return getObjectsInViewport(this.viewport, this.getChildrenSortedByPrimaryAxis(), this.primaryAxis).map((child) => child.num);
|
|
6422
|
+
return getObjectsInViewport(this.viewport, this.getChildrenSortedByPrimaryAxis(), this.primaryAxis, 0).map((child) => child.num);
|
|
6416
6423
|
}
|
|
6417
6424
|
return this.getChildrenSortedByPrimaryAxis().map((child) => child.num);
|
|
6418
6425
|
}
|
|
@@ -8341,16 +8348,22 @@ class TextareaRenderable extends EditBufferRenderable {
|
|
|
8341
8348
|
return handler();
|
|
8342
8349
|
}
|
|
8343
8350
|
}
|
|
8344
|
-
if (
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
return
|
|
8351
|
+
if (!keyCtrl && !keyMeta && !keySuper && !keyHyper) {
|
|
8352
|
+
if (keyName === "space") {
|
|
8353
|
+
this.insertText(" ");
|
|
8354
|
+
return true;
|
|
8348
8355
|
}
|
|
8349
|
-
if (
|
|
8350
|
-
|
|
8356
|
+
if (keySequence) {
|
|
8357
|
+
const firstCharCode = keySequence.charCodeAt(0);
|
|
8358
|
+
if (firstCharCode < 32) {
|
|
8359
|
+
return false;
|
|
8360
|
+
}
|
|
8361
|
+
if (firstCharCode === 127) {
|
|
8362
|
+
return false;
|
|
8363
|
+
}
|
|
8364
|
+
this.insertText(keySequence);
|
|
8365
|
+
return true;
|
|
8351
8366
|
}
|
|
8352
|
-
this.insertText(keySequence);
|
|
8353
|
-
return true;
|
|
8354
8367
|
}
|
|
8355
8368
|
return false;
|
|
8356
8369
|
}
|
|
@@ -8451,7 +8464,13 @@ class TextareaRenderable extends EditBufferRenderable {
|
|
|
8451
8464
|
const select = options?.select ?? false;
|
|
8452
8465
|
this.updateSelectionForMovement(select, true);
|
|
8453
8466
|
const cursor = this.editorView.getCursor();
|
|
8454
|
-
|
|
8467
|
+
if (cursor.col === 0 && cursor.row > 0) {
|
|
8468
|
+
this.editBuffer.setCursor(cursor.row - 1, 0);
|
|
8469
|
+
const prevLineEol = this.editBuffer.getEOL();
|
|
8470
|
+
this.editBuffer.setCursor(prevLineEol.row, prevLineEol.col);
|
|
8471
|
+
} else {
|
|
8472
|
+
this.editBuffer.setCursor(cursor.row, 0);
|
|
8473
|
+
}
|
|
8455
8474
|
this.updateSelectionForMovement(select, false);
|
|
8456
8475
|
this.requestRender();
|
|
8457
8476
|
return true;
|
|
@@ -8459,8 +8478,14 @@ class TextareaRenderable extends EditBufferRenderable {
|
|
|
8459
8478
|
gotoLineEnd(options) {
|
|
8460
8479
|
const select = options?.select ?? false;
|
|
8461
8480
|
this.updateSelectionForMovement(select, true);
|
|
8481
|
+
const cursor = this.editorView.getCursor();
|
|
8462
8482
|
const eol = this.editBuffer.getEOL();
|
|
8463
|
-
this.editBuffer.
|
|
8483
|
+
const lineCount = this.editBuffer.getLineCount();
|
|
8484
|
+
if (cursor.col === eol.col && cursor.row < lineCount - 1) {
|
|
8485
|
+
this.editBuffer.setCursor(cursor.row + 1, 0);
|
|
8486
|
+
} else {
|
|
8487
|
+
this.editBuffer.setCursor(eol.row, eol.col);
|
|
8488
|
+
}
|
|
8464
8489
|
this.updateSelectionForMovement(select, false);
|
|
8465
8490
|
this.requestRender();
|
|
8466
8491
|
return true;
|
|
@@ -8721,6 +8746,7 @@ export {
|
|
|
8721
8746
|
convertGlobalToLocalSelection,
|
|
8722
8747
|
clearEnvCache,
|
|
8723
8748
|
capture,
|
|
8749
|
+
buildKittyKeyboardFlags,
|
|
8724
8750
|
brightYellow,
|
|
8725
8751
|
brightWhite,
|
|
8726
8752
|
brightRed,
|
|
@@ -8829,5 +8855,5 @@ export {
|
|
|
8829
8855
|
ASCIIFont
|
|
8830
8856
|
};
|
|
8831
8857
|
|
|
8832
|
-
//# debugId=
|
|
8858
|
+
//# debugId=23F67606D23EDCE364756E2164756E21
|
|
8833
8859
|
//# sourceMappingURL=index.js.map
|