René's URL Explorer Experiment


Title: Move the fold marker left, and make the ? pane's keys the bright thing by navbytes · Pull Request #17 · navbytes/opencode-plugins · GitHub

Open Graph Title: Move the fold marker left, and make the ? pane's keys the bright thing by navbytes · Pull Request #17 · navbytes/opencode-plugins

X Title: Move the fold marker left, and make the ? pane's keys the bright thing by navbytes · Pull Request #17 · navbytes/opencode-plugins

Description: Two changes from reading a real screen of beta.2, plus a TUI-UX review of the ? pane. 1. The fold marker moved to the row's left edge before │ ● user: yes build it ▸ 38 steps · ~23.5k ~23.5k after │ ● ▸38 user: yes build it ~23.5k ▸38 now sits between the ● and the text: the row's own disclosure control, where an outline puts one. Two things were wrong with the trailing digest: The caret was nowhere near the ● it belonged to, so on a tree of folded turns nothing marked a collapsed row until you had read to the end of a preview that is usually clipped. ~23.5k was the row's own token column again. applyFolds rolls the hidden steps' tokens into the turn, so the two figures are equal by construction — two numbers of the same magnitude a few columns apart that always agree read as one number that has gone wrong. foldDigest becomes foldMark (the caret and the count, on the left) and foldFlags ( 1✂ 2⚠ 1✗, at the end of the text, in the same place and glyphs a step row already uses for its own). The tokens are printed once. No unit word — a bare count beside a caret is unambiguous, and "steps" was six columns the preview wanted. 2. The ? pane Its colour was exactly inverted route.tsx coloured whole lines, keyed on whether the line was indented: │ {l} Every line that names a key is indented — so the headings, which name no keys at all, were the one accent-coloured thing on the pane, and every key was muted. Someone opening ? to find one key had no token-shaped thing to scan for and had to read the pane at reading speed. The pane is now a list of typed segments (key, name, label, heading, glyph, strong, text) that the route colours individually. Keys are the brightest and the only bold thing; headings accent; prose muted; the │ gutter always dim instead of taking its line's colour. helpLines() remains as the joined-string API the drift tests assert against. Act and Views became the table they already were Every row in them was already — in a consistent order. The " — " is now two columns aligned at render time, so you can enter from either side — scan the keys if you think gm, the names if you think "merge". Widths are measured per section, so one f12 rebound in Act cannot shift Legend, and a key past 8 columns takes its own row ragged rather than pushing its whole section right. Move deliberately keeps its packed clauses: tabulating twenty motion clauses would cost twenty rows to make vim's own keys — the ones this audience already has — the most prominent thing on the pane. It gets a dim static label column instead (rows / jumps / folds / search), as does Legend (rows / tree / cost / status / ⎇ / lanes). Those labels are static strings, so no rebind can break their alignment. Nine lines were clipping at 100 columns with the width test green A help row is │ inside a padding={1} box, so its budget is cols - 4 — which is what every other line on the screen uses — but the test asserted ≤ 112 against the raw string. One line clipped even at 112. The pane is now laid out for the terminal it is on: clauses drop from the right, prose clips with …, nothing wraps (§7.6), and the same 34 rows survive from 100 columns down to 44. Smaller The footer names the section you are in (12–29 of 34 · Act · PgUp/PgDn scroll · q/esc back) — the pane is a three-page scroll on a short terminal and its headings scroll off. Zero extra rows. The legend draws its colours instead of spelling them: █ open · █ squashed · … in the branch colours, lane swatches in the lane colours. Naming a colour in muted grey cost six columns and asked the reader to take a monochrome word's word for it; showing it costs one — which is what let the pane's two longest lines fit. Glyphs take the tree's own colours (⚠ warning, ✗ error, ◆ ≣ ✂ accent); nothing here rewrites your transcript is bold as the safety claim it is; the *model* markdown asterisks became a bold run. Net: 34 rows before, 34 after. Two bugs found on the way — both caught by the pane's e2e while the unit suite stayed green A runtime import of @opentui/core broke the whole route. Using TextAttributes.BOLD added a runtime import the plugin had never had (peer dep only), and the host then failed to load the route at all — /tree simply never opened. The two bits are written out as constants, pinned against the real enum by a test that also asserts the built bundle imports only @opentui/solid. A createMemo in the temporal dead zone. Moving HELP to read size() left it above its own dependency's declaration; a createMemo body runs the moment it is created, so it threw on every render. Tests test/help.test.ts — rewritten against the segment model. The drift guard is tightened in the direction that matters: every bound verb must appear inside a key segment, not merely somewhere in the line's text, since a key that leaks into a prose run is invisible again. Mutation-checked: folding one key back into a prose run fails 6 tests. Width is asserted against the row budget at four widths (96 / 76 / 56 / 40), and narrowing must never drop a row. test/fold.test.ts — foldMark / foldFlags, including that the marker never repeats the token column. test/e2e/tui.test.ts — the fold test asserts the marker is between the ● and the preview and is not a digest; the ? pane test asserts the new table shape and that the footer names a section. bun run typecheck, bun test (462 pass) and bun run build are clean. The full pty e2e suite was still running when I opened this; I'll report on the PR if anything comes back red. Known gap docs/screenshots/help.png, linked from the README, now shows the old pane. It needs a fresh capture on a real terminal — I can't produce a PNG from here. 🤖 Generated with Claude Code https://claude.ai/code/session_01VkCWU9Ab6wYHmTke8vuVMv Generated by Claude Code

Open Graph Description: Two changes from reading a real screen of beta.2, plus a TUI-UX review of the ? pane. 1. The fold marker moved to the row's left edge before │ ● user: yes build it ▸ 38 steps · ~23.5k ...

X Description: Two changes from reading a real screen of beta.2, plus a TUI-UX review of the ? pane. 1. The fold marker moved to the row's left edge before │ ● user: yes build it ▸ 38 steps · ~23.5k ...

Opengraph URL: https://github.com/navbytes/opencode-plugins/pull/17

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:341210bf-3ded-0e75-8ab9-352637f9681d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9584:240CD1:2D25BD6:39691C6:6B01B9D1
html-safe-nonce162e63ede9a1f4be4f16e0e55a2ae9c9848493dd5432bfbd84b054b819d4039d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTg0OjI0MENEMToyRDI1QkQ2OjM5NjkxQzY6NkIwMUI5RDEiLCJ2aXNpdG9yX2lkIjoiNzk3NTQzOTAwNjk4Mjg0NjkyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb4b2118f3422730dbd59dbcacc3eb42b58b39d2fa6f54be3b4f7226c2c2e8dbb
hovercard-subject-tagpull_request:4486237768
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/navbytes/opencode-plugins/pull/17/files
twitter:imagehttps://avatars.githubusercontent.com/u/25281802?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/25281802?s=400&v=4
og:image:altTwo changes from reading a real screen of beta.2, plus a TUI-UX review of the ? pane. 1. The fold marker moved to the row's left edge before │ ● user: yes build it ▸ 38 steps · ~23.5k ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/navbytes/opencode-plugins git https://github.com/navbytes/opencode-plugins.git
octolytics-dimension-user_id25281802
octolytics-dimension-user_loginnavbytes
octolytics-dimension-repository_id1354341697
octolytics-dimension-repository_nwonavbytes/opencode-plugins
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1354341697
octolytics-dimension-repository_network_root_nwonavbytes/opencode-plugins
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/navbytes/opencode-plugins/pull/17/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnavbytes%2Fopencode-plugins%2Fpull%2F17%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnavbytes%2Fopencode-plugins%2Fpull%2F17%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=navbytes%2Fopencode-plugins
Reloadhttps://github.com/navbytes/opencode-plugins/pull/17/files
Reloadhttps://github.com/navbytes/opencode-plugins/pull/17/files
Reloadhttps://github.com/navbytes/opencode-plugins/pull/17/files
navbyteshttps://github.com/navbytes
opencode-pluginshttps://github.com/navbytes/opencode-plugins
Codehttps://github.com/navbytes/opencode-plugins
Issueshttps://github.com/navbytes/opencode-plugins/issues
Pull requests1 (1)https://github.com/navbytes/opencode-plugins/pulls
Actionshttps://github.com/navbytes/opencode-plugins/actions
Projectshttps://github.com/navbytes/opencode-plugins/projects
Security and qualityhttps://github.com/navbytes/opencode-plugins/security
Insightshttps://github.com/navbytes/opencode-plugins/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnavbytes%2Fopencode-plugins%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnavbytes%2Fopencode-plugins%2Fissues%2Fnew%2Fchoose
navbyteshttps://github.com/navbytes
mainhttps://github.com/navbytes/opencode-plugins/tree/main
claude/message-summarization-feedback-4lpb90https://github.com/navbytes/opencode-plugins/tree/claude/message-summarization-feedback-4lpb90
Conversation 0 https://github.com/navbytes/opencode-plugins/pull/17
Commits 3 https://github.com/navbytes/opencode-plugins/pull/17/commits
Checks 1 https://github.com/navbytes/opencode-plugins/pull/17/checks
Files changed https://github.com/navbytes/opencode-plugins/pull/17/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/17/files
Move the fold marker left, and make the ? pane's keys the bright thing https://github.com/navbytes/opencode-plugins/pull/17/files#top
Show all changes 3 commits https://github.com/navbytes/opencode-plugins/pull/17/files
ce25374 Put the fold marker on the row's left edge, and print the tokens once claude Sep 9, 2026 https://github.com/navbytes/opencode-plugins/pull/17/commits/ce2537413da5fbdfb076a0f893a22600e1a1a46c
a614bcb Make the ? pane's keys the bright thing, and lay it out for the terminal claude Sep 9, 2026 https://github.com/navbytes/opencode-plugins/pull/17/commits/a614bcb638c39f11388397ae460ded2fd1122b16
3be641c Stop painting the context gauge's text in a band colour claude Sep 9, 2026 https://github.com/navbytes/opencode-plugins/pull/17/commits/3be641c9c5ff908cd27cf795e74bbcb244165aa0
Clear filters https://github.com/navbytes/opencode-plugins/pull/17/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/17/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/17/files
CHANGELOG.md https://github.com/navbytes/opencode-plugins/pull/17/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
DESIGN.md https://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
README.md https://github.com/navbytes/opencode-plugins/pull/17/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
USAGE.md https://github.com/navbytes/opencode-plugins/pull/17/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
fold.ts https://github.com/navbytes/opencode-plugins/pull/17/files#diff-1de750ec6a8e3926d66d3177696c4e83399a62e99e40da1dac4f7653cb9ebf12
gauge.ts https://github.com/navbytes/opencode-plugins/pull/17/files#diff-f193eb5f9d4658373675458da5fe5eb825d897e33206f92d1c6df141508bcee8
help.ts https://github.com/navbytes/opencode-plugins/pull/17/files#diff-6c250cd5a969d263a9e3d465441c0f27d2fb14097c1167ab3ee71bf21de54c1d
gauge.tsx https://github.com/navbytes/opencode-plugins/pull/17/files#diff-465eff6b3ae254e3a95e4ecc6b8c45f8d1a59801856778a980c27a4b860d3f56
index.tsx https://github.com/navbytes/opencode-plugins/pull/17/files#diff-a5d0dfeb26f8c7fdd93de9a4df346646ef3972d5aca53643f9d10be4454b6970
route.tsx https://github.com/navbytes/opencode-plugins/pull/17/files#diff-5becb0baca3019b553073efaefd9dc6d57e856889b45a5e3f375854dc87070bd
tui.test.ts https://github.com/navbytes/opencode-plugins/pull/17/files#diff-dd7d2c4bdf2b366dc15f4e76ca2fb1f8a1886d52427721a32363940884e6320e
fold.test.ts https://github.com/navbytes/opencode-plugins/pull/17/files#diff-b874b10ab4fbc98edfa4b45acc30713f1fdcb2a6f38ea82c9efb33bc905c9cba
gauge.test.ts https://github.com/navbytes/opencode-plugins/pull/17/files#diff-f099e24d07908586c2bf368b9c05bece1a57678929cfd3087dff1f68cceafd97
help.test.ts https://github.com/navbytes/opencode-plugins/pull/17/files#diff-b383d6bd0b971968f0223f696aaf67767a697db75b36fde3a632a100edd8282e
CHANGELOG.mdhttps://github.com/navbytes/opencode-plugins/pull/17/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/navbytes/opencode-plugins/blob/3be641c9c5ff908cd27cf795e74bbcb244165aa0/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/17/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
DESIGN.mdhttps://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
View file https://github.com/navbytes/opencode-plugins/blob/3be641c9c5ff908cd27cf795e74bbcb244165aa0/DESIGN.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/17/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
README.mdhttps://github.com/navbytes/opencode-plugins/pull/17/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/navbytes/opencode-plugins/blob/3be641c9c5ff908cd27cf795e74bbcb244165aa0/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/17/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/USAGE.mdhttps://github.com/navbytes/opencode-plugins/pull/17/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
View file https://github.com/navbytes/opencode-plugins/blob/3be641c9c5ff908cd27cf795e74bbcb244165aa0/docs/USAGE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/17/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
src/core/fold.tshttps://github.com/navbytes/opencode-plugins/pull/17/files#diff-1de750ec6a8e3926d66d3177696c4e83399a62e99e40da1dac4f7653cb9ebf12
View file https://github.com/navbytes/opencode-plugins/blob/3be641c9c5ff908cd27cf795e74bbcb244165aa0/src/core/fold.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/17/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-1de750ec6a8e3926d66d3177696c4e83399a62e99e40da1dac4f7653cb9ebf12
https://github.com/navbytes/opencode-plugins/pull/17/files#diff-1de750ec6a8e3926d66d3177696c4e83399a62e99e40da1dac4f7653cb9ebf12
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/17/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/17/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.