feat: add config-backed ask keymaps

This commit is contained in:
Erik Kotsiuba
2026-04-28 22:35:43 +02:00
parent 5c0d8964fb
commit e8a36b72ef
31 changed files with 2192 additions and 422 deletions
+6 -2
View File
@@ -1,5 +1,6 @@
import type { ExtensionContext } from "@mariozechner/pi-coding-agent";
import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
import type { AskConfig } from "../config/schema.ts";
import {
type FooterKeymapContext,
renderFooterKeymaps,
@@ -372,8 +373,11 @@ export function pushSavedNote(args: {
);
}
export function renderFooterText(mode: FooterKeymapContext): string {
return renderFooterKeymaps(mode);
export function renderFooterText(
config: AskConfig,
mode: FooterKeymapContext
): string {
return renderFooterKeymaps(config, mode);
}
function padToVisibleWidth(text: string, width: number): string {