GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tui): render diffs in plugin panel slots (#47152) · matglas/opencode@c0d41d2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/tui
    • src
      • config
        • keybind.ts
      • feature-plugins
        • prompt
          • footer.tsx
        • system
          • diff-viewer.tsx
    • test
      • cli/tui
        • diff-viewer.test.tsx
      • config-v2.test.tsx
      • session-panel.test.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/tui/src/config/keybind.ts‎

Copy file name to clipboardExpand all lines: packages/tui/src/config/keybind.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export const Definitions = {
8585
"diff.single_patch": keybind("s", "Toggle single patch view"),
8686
"diff.switch_source": keybind("d", "Switch diff viewer source"),
8787
"diff.toggle_view": keybind("v", "Toggle diff viewer split or unified view"),
88+
"diff.toggle_fullscreen": keybind("f", "Toggle diff viewer full screen"),
8889
"diff.mark_reviewed": keybind("m", "Toggle selected diff file reviewed"),
8990
"diff.help": keybind("?,shift+?,shift+/", "Show more diff viewer shortcuts"),
9091

Collapse file

‎packages/tui/src/feature-plugins/prompt/footer.tsx‎

Copy file name to clipboardExpand all lines: packages/tui/src/feature-plugins/prompt/footer.tsx
+19-4Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Plugin } from "@opencode/plugin/tui"
22
import { createMemo, createSignal, Match, Show, Switch } from "solid-js"
33
import { contextUsage, formatContextUsage } from "../../util/session"
44
import { useTerminalDimensions } from "@opentui/solid"
5+
import { TextAttributes } from "@opentui/core"
6+
import { useInteractivity } from "../../context/interactivity"
57
import { stringWidth } from "../../util/string-width"
68

79
const money = new Intl.NumberFormat("en-US", {
@@ -47,6 +49,8 @@ export function PromptFooter(props: {
4749
].filter((item): item is string => Boolean(item))
4850
})
4951
const live = createMemo(() => Boolean(subagents() || shells()))
52+
// Prompt hints read as disabled while the session does not own input, e.g. while a side panel is focused.
53+
const interactive = useInteractivity()
5054
const shortcut = (id: string) => props.context.keymap.shortcuts(id)[0]
5155
const layout = createMemo(() => {
5256
const command = shortcut("command.palette.show")
@@ -93,14 +97,25 @@ export function PromptFooter(props: {
9397
</box>
9498
</Match>
9599
<Match when={props.showDetails && layout().shortcuts}>
96-
<text fg={props.context.theme.text.base} flexShrink={0}>
97-
{shortcut("agent.cycle")} <span style={{ fg: props.context.theme.text.muted }}>agents</span>
100+
<text
101+
fg={interactive() ? props.context.theme.text.base : props.context.theme.text.formfield.disabled}
102+
attributes={interactive() ? 0 : TextAttributes.DIM}
103+
flexShrink={0}
104+
>
105+
{shortcut("agent.cycle")}{" "}
106+
<span style={interactive() ? { fg: props.context.theme.text.muted } : {}}>agents</span>
98107
</text>
99108
</Match>
100109
</Switch>
101110
<Show when={props.showDetails && layout().shortcuts}>
102-
<text fg={props.context.theme.text.base} wrapMode="none" flexShrink={0}>
103-
{shortcut("command.palette.show")} <span style={{ fg: props.context.theme.text.muted }}>commands</span>
111+
<text
112+
fg={interactive() ? props.context.theme.text.base : props.context.theme.text.formfield.disabled}
113+
attributes={interactive() ? 0 : TextAttributes.DIM}
114+
wrapMode="none"
115+
flexShrink={0}
116+
>
117+
{shortcut("command.palette.show")}{" "}
118+
<span style={interactive() ? { fg: props.context.theme.text.muted } : {}}>commands</span>
104119
</text>
105120
</Show>
106121
</Match>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.