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): add toggle to hide session header (#13244) · typesafe/opencode@135f8ff

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src/cli/cmd/tui/routes/session
    • index.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/cli/cmd/tui/routes/session/index.tsx‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export function Session() {
149149
const [showDetails, setShowDetails] = kv.signal("tool_details_visibility", true)
150150
const [showAssistantMetadata, setShowAssistantMetadata] = kv.signal("assistant_metadata_visibility", true)
151151
const [showScrollbar, setShowScrollbar] = kv.signal("scrollbar_visible", false)
152+
const [showHeader, setShowHeader] = kv.signal("header_visible", true)
152153
const [diffWrapMode] = kv.signal<"word" | "none">("diff_wrap_mode", "word")
153154
const [animationsEnabled, setAnimationsEnabled] = kv.signal("animations_enabled", true)
154155

@@ -582,6 +583,15 @@ export function Session() {
582583
dialog.clear()
583584
},
584585
},
586+
{
587+
title: showHeader() ? "Hide header" : "Show header",
588+
value: "session.toggle.header",
589+
category: "Session",
590+
onSelect: (dialog) => {
591+
setShowHeader((prev) => !prev)
592+
dialog.clear()
593+
},
594+
},
585595
{
586596
title: "Page up",
587597
value: "session.page.up",
@@ -963,7 +973,7 @@ export function Session() {
963973
<box flexDirection="row">
964974
<box flexGrow={1} paddingBottom={1} paddingTop={1} paddingLeft={2} paddingRight={2} gap={1}>
965975
<Show when={session()}>
966-
<Show when={!sidebarVisible() || !wide()}>
976+
<Show when={showHeader() && (!sidebarVisible() || !wide())}>
967977
<Header />
968978
</Show>
969979
<scrollbox

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.