Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "17-313 opencode",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:5-24-trixie",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "curl -fsSL https://bun.sh/install | bash",

// Configure tool-specific properties.
// "customizations": {},

"remoteEnv": {
"PATH": "${containerEnv:PATH}:/home/node/.bun/bin"
},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
"remoteUser": "node"
}
10 changes: 10 additions & 0 deletions packages/tui/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import { FrecencyProvider } from "./component/prompt/frecency"
import { PromptStashProvider } from "./component/prompt/stash"
import { DialogAlert } from "./ui/dialog-alert"
import { DialogConfirm } from "./ui/dialog-confirm"
import { DialogScotty } from "./component/dialog-scotty"
import { ToastProvider, useToast } from "./ui/toast"
import { isDefaultTitle } from "./util/session"
import { KVProvider, useKV } from "./context/kv"
Expand Down Expand Up @@ -815,6 +816,15 @@ function App(props: { onSnapshot?: () => Promise<string[]>; pluginHost: TuiPlugi
},
category: "System",
},
{
name: "scotty.show",
title: "Show Scotty #2",
slashName: "scotty",
run: () => {
dialog.replace(() => <DialogScotty />)
},
category: "System",
},
{
name: "docs.open",
title: "Open docs",
Expand Down
26 changes: 26 additions & 0 deletions packages/tui/src/component/dialog-scotty.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { TextAttributes } from "@opentui/core"
import { useTheme } from "../context/theme"

const SCOTTY = [
" / \\__",
" ( @\\___",
" / O",
" / (_____/",
" /_____/ U",
].join("\n")

export function DialogScotty() {
const { theme } = useTheme()

return (
<box paddingLeft={2} paddingRight={2} gap={1}>
<box flexDirection="row" justifyContent="space-between">
<text attributes={TextAttributes.BOLD} fg={theme.text}>
Scotty #2
</text>
<text fg={theme.textMuted}>esc</text>
</box>
<text fg={theme.text}>{SCOTTY}</text>
</box>
)
}
Loading