placeholder

This commit is contained in:
Sebastian Herrlinger 2025-10-28 01:53:57 +01:00
parent 941ba7fd83
commit dc08411c1b
2 changed files with 8 additions and 2 deletions

View file

@ -50,8 +50,8 @@
"@opencode-ai/plugin": "workspace:*",
"@opencode-ai/script": "workspace:*",
"@opencode-ai/sdk": "workspace:*",
"@opentui/core": "0.0.0-20251027-327d7e76",
"@opentui/solid": "0.0.0-20251027-327d7e76",
"@opentui/core": "0.1.31",
"@opentui/solid": "0.1.31",
"@parcel/watcher": "2.5.1",
"@solid-primitives/event-bus": "1.1.2",
"@pierre/precision-diffs": "catalog:",

View file

@ -6,6 +6,9 @@ import {
KeyEvent,
SyntaxStyle,
PasteEvent,
t,
dim,
fg,
} from "@opentui/core"
import { createEffect, createMemo, Match, Switch, type JSX, onMount } from "solid-js"
import { useLocal } from "@tui/context/local"
@ -379,6 +382,9 @@ export function Prompt(props: PromptProps) {
</box>
<box paddingTop={1} paddingBottom={1} backgroundColor={Theme.backgroundElement} flexGrow={1}>
<textarea
placeholder={t`${dim(fg(Theme.primary)(" → meta+↑↓"))} ${dim(fg("#64748b")("history"))} ${dim(fg("#a78bfa")("•"))} ${dim(fg(Theme.primary)("meta+return"))} ${dim(fg("#64748b")("newline"))} ${dim(fg("#a78bfa")("•"))} ${dim(fg(Theme.primary)("return"))} ${dim(fg("#64748b")("submit"))}`}
textColor={Theme.text}
focusedTextColor={Theme.text}
minHeight={1}
maxHeight={6}
onContentChange={() => {