wormclaude 1.0.49 → 1.0.50
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/theme.js +1 -1
- package/dist/tui.js +7 -5
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -186,11 +186,13 @@ export async function runTui() {
|
|
|
186
186
|
const inputLines = inputBoxLines(W); // çok-satırlı giriş (sarılmış)
|
|
187
187
|
const m = cmdMatches();
|
|
188
188
|
if (m.length) {
|
|
189
|
-
// DİKEY slash menü (
|
|
190
|
-
const
|
|
191
|
-
const
|
|
192
|
-
const
|
|
193
|
-
|
|
189
|
+
// DİKEY slash menü — KAYAN pencere (8 satır, seçimi takip eder), seçili kırmızı.
|
|
190
|
+
const sel = Math.min(cmdSel, m.length - 1);
|
|
191
|
+
const WIN = 8;
|
|
192
|
+
const start = Math.max(0, Math.min(sel - 3, m.length - WIN));
|
|
193
|
+
const view = m.slice(start, start + WIN);
|
|
194
|
+
const menu = view.map((c, i) => {
|
|
195
|
+
const on = (start + i) === sel;
|
|
194
196
|
return ' ' + paint((on ? '✶ ' : ' ') + c.name.padEnd(13), on ? theme.redBright : theme.grey) + paint(cmdDesc(c.name) || c.desc || '', theme.greyDim);
|
|
195
197
|
});
|
|
196
198
|
body = [...menu, line, ...inputLines, line];
|