feat(ui): Yazi-style Files tab in the Repo box #111
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/106-files-tab"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Part 3 of 3 of #98. The
[6]Repo box's Files tab browses the default branch Yazi-style: the list of the current directory on the left, a preview of the selected entry on the right. Read-only.Changes
forge.TreeReadercapability (+ActFiles), implemented by the Gitea/Forgejo and GitHub adapters and the fake/demo forge;domain.TreeEntry.core.Servicelists directories (directories first) and previews files. Core owns the preview policy: files over 256 KiB are never downloaded ("too large to preview"), and files with NUL bytes or invalid UTF-8 show "binary file".j/kmove,l/enter enter a directory or focus a text file's preview,hgoes up (at the root it leaves the tab),gg/Gjump,ctrl-d/ctrl-uscroll the focused preview,oopens the entry in the browser. The breadcrumb shows the current directory.docs/design.md,docs/architecture.md,docs/mockup.htmlupdated.Decisions
src/uiexample.Test plan
go test -race,golangci-lint(0 issues), format check: pass locally. A manual run in demo mode showed the listing, navigation, breadcrumb, and the binary and oversized messages.make check's install-script test needsshellcheck, absent on this machine; CI runs it.Refs #106, #98
🤖 Generated with Claude Code
https://claude.ai/code/session_01RTN2GnGvYhWwPhsSDiWp8n