@youtyan/code-viewer 0.11.2 → 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 +28 -1
- package/dist/code-viewer.js +3110 -951
- package/package.json +1 -1
- package/web/app.js +3576 -866
- package/web/index.html +5 -0
- package/web/style.css +507 -47
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).
|
|
@@ -68,6 +82,18 @@ Requires Node.js 20 or newer. Development uses
|
|
|
68
82
|
bottom tier is the tmux sessions no shell has opened yet. Each pane is
|
|
69
83
|
labelled with the title tmux shows for it — a coding agent usually puts what
|
|
70
84
|
it is doing there, so the tree alone tells you which pane is busy.
|
|
85
|
+
- Terminal status combines lifecycle reports with priority-based matching of
|
|
86
|
+
the live terminal title and recent visible lines. Matching rules can report
|
|
87
|
+
working, waiting, idle, or keep the previous state. A target is tracked only
|
|
88
|
+
after a lifecycle report or a visible rule identifies it; screen motion is
|
|
89
|
+
then used as a fallback. A working match expires when its title and screen
|
|
90
|
+
stop changing, so a stale status line does not stay active. Edit the complete
|
|
91
|
+
JSON rule set under Settings & Help → Settings. Its regular expressions use a
|
|
92
|
+
bounded safe subset; combine conditions with `all` / `any`. Invalid changes
|
|
93
|
+
list every validation error and do not replace the active rules; restoring
|
|
94
|
+
the built-in set removes the saved override so later releases can supply
|
|
95
|
+
updated defaults. The editor includes an expandable field guide, a valid
|
|
96
|
+
example, and live JSON syntax highlighting.
|
|
71
97
|
- Click a pane and the panel takes you to it. If a shell already has that
|
|
72
98
|
session open, it switches to that shell and makes the pane current; otherwise
|
|
73
99
|
a shell is opened and attached for you. A session moves up to the top tier the
|
|
@@ -264,7 +290,8 @@ palette, Ctrl+G grep palette, the Datastores browser, and the file change
|
|
|
264
290
|
watcher — the same list applies to all five. Both the skip list and the hide
|
|
265
291
|
list accept gitignore-style wildcards (`*`, `?`, `[abc]`, `[!abc]`) in
|
|
266
292
|
addition to exact names. Everything you change in Viewer
|
|
267
|
-
Settings
|
|
293
|
+
Settings remains a local draft until you select **Save changes**, then it is
|
|
294
|
+
saved on the server under `.code-viewer/settings.json` (no
|
|
268
295
|
separate project-level config file). `.DS_Store` and a broad set of
|
|
269
296
|
build/cache directories (`node_modules`, `dist`, `build`, `.next`, `.turbo`,
|
|
270
297
|
`.parcel-cache`, `.vite`, `.angular`, `.dart_tool`, `.venv`, …) are hidden by
|