@youtyan/code-viewer 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/code-viewer.js +1515 -246
- package/package.json +1 -1
- package/web/app.js +2178 -328
- package/web/index.html +5 -0
- package/web/style.css +335 -39
package/README.md
CHANGED
|
@@ -20,6 +20,20 @@ Requires Node.js 20 or newer. Development uses
|
|
|
20
20
|
same commit list and diff renderer used by `/history` inside the file's
|
|
21
21
|
tab shell, filtered to that path. Both tabs keep the Repository sidebar
|
|
22
22
|
visible.
|
|
23
|
+
- Browse every worktree of the repository from the `Worktrees` item in the
|
|
24
|
+
header menu, in the same three-pane shape as History: worktrees on the left,
|
|
25
|
+
the picked one's changed files in the middle, the diff on the right. Each row
|
|
26
|
+
shows how far its branch has drifted from the base branch (ahead / behind) and
|
|
27
|
+
whether it still merges cleanly — checked with `git merge-tree`, so no working
|
|
28
|
+
tree is touched — or which files would conflict. Files are split into
|
|
29
|
+
uncommitted work and commits made since the branch point, and a banner lists
|
|
30
|
+
every file that more than one worktree is changing, which is the conflict you
|
|
31
|
+
would otherwise only find at merge time. Each row carries the folder it lives
|
|
32
|
+
in, when its files were last touched, and a "…" holding every action for that
|
|
33
|
+
worktree — open the folder, copy its path, view it in a new tab, stop the
|
|
34
|
+
server it started, copy the command that merges it back, or delete it. Create
|
|
35
|
+
a worktree under `.worktrees/` (the dialog shows the exact path before you
|
|
36
|
+
commit to it); deleting one removes its folder from disk and keeps the branch.
|
|
23
37
|
- Open files directly from the repository or diff view, including text-like
|
|
24
38
|
config/prompt files and large generated files (virtualized source viewer
|
|
25
39
|
with copy/open-full-view).
|