pi-ask-lite 0.1.3 → 0.1.4
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/package.json +1 -1
- package/src/ui.ts +4 -4
package/package.json
CHANGED
package/src/ui.ts
CHANGED
|
@@ -147,7 +147,7 @@ export async function runAskUi(ctx: ExtensionContext, document: AskDocument): Pr
|
|
|
147
147
|
|
|
148
148
|
add(theme.fg("accent", "─".repeat(width)));
|
|
149
149
|
add(theme.fg("accent", " Ask User"));
|
|
150
|
-
add(theme.fg("dim", editMode ? "
|
|
150
|
+
add(theme.fg("dim", editMode ? " Free text/draft: Enter sends • Esc returns to selection" : " ↑↓ move • Space select • Shift+Space draft • Enter send • Esc free text"));
|
|
151
151
|
lines.push("");
|
|
152
152
|
|
|
153
153
|
const bodyRows = renderDocumentRows(document, state, focusedId, {
|
|
@@ -159,7 +159,7 @@ export async function runAskUi(ctx: ExtensionContext, document: AskDocument): Pr
|
|
|
159
159
|
});
|
|
160
160
|
|
|
161
161
|
if (editMode) {
|
|
162
|
-
bodyRows.push({ text: "" }, { text: theme.fg("muted", "
|
|
162
|
+
bodyRows.push({ text: "" }, { text: theme.fg("muted", "Answer:") });
|
|
163
163
|
for (const editorLine of editor.render(Math.max(10, width - 2))) {
|
|
164
164
|
bodyRows.push({ text: ` ${editorLine}` });
|
|
165
165
|
}
|
|
@@ -177,10 +177,10 @@ export async function runAskUi(ctx: ExtensionContext, document: AskDocument): Pr
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
const visibleRows = bodyRows.slice(scrollOffset, scrollOffset + maxBodyLines);
|
|
180
|
-
if (scrollOffset > 0) add(theme.fg("dim", `… ${scrollOffset}
|
|
180
|
+
if (scrollOffset > 0) add(theme.fg("dim", `… ${scrollOffset} lines above`));
|
|
181
181
|
for (const row of visibleRows) add(row.text);
|
|
182
182
|
if (scrollOffset + maxBodyLines < bodyRows.length) {
|
|
183
|
-
add(theme.fg("dim", `… ${bodyRows.length - scrollOffset - maxBodyLines}
|
|
183
|
+
add(theme.fg("dim", `… ${bodyRows.length - scrollOffset - maxBodyLines} lines below`));
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
lines.push("");
|