groundcrew-cli 0.15.7 → 0.15.8
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/dist/index.js +2 -1
- package/package.json +1 -1
- package/src/index.ts +4 -3
package/dist/index.js
CHANGED
|
@@ -467,10 +467,11 @@ function setupInlineSuggestions(rl) {
|
|
|
467
467
|
};
|
|
468
468
|
process.stdin.on("keypress", (_ch, key) => {
|
|
469
469
|
if (!key) return;
|
|
470
|
-
if (key.name === "
|
|
470
|
+
if (key.ctrl && key.name === "j") {
|
|
471
471
|
const line = rl.line;
|
|
472
472
|
rl.line = line + "\\";
|
|
473
473
|
rl.cursor = rl.line.length;
|
|
474
|
+
rl._line();
|
|
474
475
|
return;
|
|
475
476
|
}
|
|
476
477
|
clearGhost();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -622,12 +622,13 @@ function setupInlineSuggestions(rl: readline.Interface): void {
|
|
|
622
622
|
process.stdin.on("keypress", (_ch: string, key: any) => {
|
|
623
623
|
if (!key) return;
|
|
624
624
|
|
|
625
|
-
//
|
|
626
|
-
if (key.name === "
|
|
627
|
-
// Append backslash to trigger line continuation, then simulate Enter
|
|
625
|
+
// Ctrl+J: insert line continuation (Shift+Enter not detectable in most terminals)
|
|
626
|
+
if (key.ctrl && key.name === "j") {
|
|
628
627
|
const line = (rl as any).line as string;
|
|
629
628
|
(rl as any).line = line + "\\";
|
|
630
629
|
(rl as any).cursor = (rl as any).line.length;
|
|
630
|
+
// Simulate Enter to trigger continuation prompt
|
|
631
|
+
(rl as any)._line();
|
|
631
632
|
return;
|
|
632
633
|
}
|
|
633
634
|
|