From fc7c222407c7f68d09d95352a54d0f91290ef4ec Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Tue, 17 Nov 2026 03:07:02 -0500 Subject: [PATCH] Docs: the libraries panel and deleting (and restoring) a library in the README; no documents left: the seed's description of itself, docs/wikipedia.md (top-level trees, per-library paths), the tagline, comments, test names and the link evaluation script Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab --- README.md | 48 ++++++++++++++++++++++++++++++------------ docs/wikipedia.md | 44 +++++++++++++++++++------------------- e2e/colours.spec.ts | 4 ++-- e2e/forks.spec.ts | 6 +++--- e2e/helpers.ts | 2 +- e2e/keyboard.spec.ts | 2 +- e2e/links.spec.ts | 14 ++++++------ e2e/more.spec.ts | 4 ++-- e2e/nodes.spec.ts | 2 +- e2e/panes3.spec.ts | 8 +++---- e2e/panes4.spec.ts | 2 +- e2e/research.spec.ts | 2 +- e2e/scale.spec.ts | 24 ++++++++++----------- package.json | 2 +- scripts/linkEval.ts | 37 ++++++++++++++++---------------- src/core/model.ts | 4 ++-- src/core/text.ts | 2 +- src/seed/tree.ts | 34 +++++++++++++++--------------- src/ui/store.ts | 7 +++--- tests/converge.test.ts | 6 +++--- tests/core.test.ts | 30 +++++++++++++------------- tests/format.test.ts | 4 ++-- tests/links.test.ts | 2 +- tests/research.test.ts | 4 ++-- tests/scale.test.ts | 16 +++++++------- tests/store.test.ts | 2 +- 26 files changed, 167 insertions(+), 145 deletions(-) diff --git a/README.md b/README.md index 826a03c..d111d7b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Infinispand -A document you can expand without limit. It opens as an outline of titles; every node, sentence, +A tree of writing you can expand without limit. It opens as an outline of titles; every node, sentence, phrase and word can be opened further. The first levels are written ahead of time and open instantly; past them, a model writes the expansion on request. Everything is editable, by you or by a model, and the tree is versioned like git. @@ -90,21 +90,31 @@ Press `?` for every key. The short version: on words, a row, a link, a note or a pane opens what can be done with it, Copy first (Shift+right- click is the browser's own menu); so does the `⋯` beside a row, a pane's pin, a page's byline or a note, shown only when pointed at, and a stale flag. The top bar, which stays at the top, has - `undo`, `redo` when there is something to redo, and `menu` (jump, history, links, layout and - settings); on its left, the library's name. Keys named in the status line or a panel's head are buttons. On a phone the - bar sits at the foot of the screen and menus rise from it. Every item acts by pressing its key + `undo`, `redo` when there is something to redo, and `menu` (libraries, jump, history, links, + layout and settings); on its left, the library's name, which opens the libraries panel. Keys + named in the status line or a panel's head are buttons. On a phone the selection bar sits at the + foot of the screen and menus rise from it. Every item acts by pressing its key (`src/ui/press.ts`), so a click and a key cannot do different things. The first visit says, once, in the status line, that a click on a sentence offers actions and `?` lists the keys. Left to the keys: stepping by grain (`j` `k` `i`; a click or a drag goes straight there), `Tab` from mark to mark, `[` `]` up and down a column (a click on a pane does it), and the commands typed at `:` that no menu lists (`/branch`, `/switch`, `/merge`, `/user`, `/link`, …), which the menu's Command line… opens for typing. -- **Libraries.** `:/library` lists the libraries, `:/library name` opens one and `:/library new - name` makes one (its root alone) and opens it. Each library is a page of its own, at its own - address (`/l/`); opening another loads the page. `/` opens the library last used in this - browser. A library's name is its root's title (`r` on the root renames it). Nothing crosses - between libraries: links, the jump box, Related, the link scanner and reviewer, and the editor - agent see only the library they are in; export then import carries a tree across. +- **Libraries.** `m`, or a click on the library's name at the top left, opens the libraries panel + on the left: every library, with how many nodes it holds, ● the one open here. `j` `k` move, + `Enter` (or a click on a row) opens one, `n` names a new one (its root alone) and opens it, `r` + renames one, `D` deletes one after a `y` (`n` keeps it; the last library cannot be deleted, and + where a deleted one goes is below); `Esc`, `m`, the name again or a press outside closes the + panel. A row's `⋯`, or a right-click on it, offers the same. Beside the panel the column moves + over and the panes narrow; on a phone it covers the page. Each library is a page of its own, at + its own address (`/l/`); opening another loads the page, where you left it in this browser. + `/` opens the library last used in this browser. A library's name is its root's title (`r` on + the root renames it too). Nothing crosses between libraries: links, the jump box, Related, the + link scanner and reviewer, and the editor agent see only the library they are in; export then + import carries a tree across. A page whose library is deleted, by another page or while it was + away, stops sending, says so (`deleted · not saved` in the top bar) and opens the panel on the + others. On the command line, `:/library name` opens a library by name and `:/library new name` + makes one. - On a window 900 px wide or more, a laptop's too, the page opens as panes side by side, after Andy Matuschak's notes: the library, then each open node in a pane of its own. `v` switches between panes and the single column, `/view auto|column|panes` sets it. @@ -219,7 +229,7 @@ Press `?` for every key. The short version: - A **suggestion** has a faint dashed underline. `Tab` reaches suggestions; `y` links one, `n` declines it (remembered in the node, on every replica). `/autolink suggest` leaves every candidate to you; `/autolink on` makes the scanner's surest links unreviewed (they measured 0.84 - precision on unseen documents); `/autolink off` scans nothing by itself. + precision on unseen trees); `/autolink off` scans nothing by itself. - `S` opens the **links list** of the node you are on and everything under it (on the library root, of the whole library), beside the text: every link found or made, what was rejected and what waits, each with who decided (the reviewer or you) and the reviewer's @@ -306,7 +316,8 @@ What is sent where: - **`src/ui/`** The browser's replica of the library (`session.ts`, kept in IndexedDB), the store and keymap, and the page. The mouse acts through the keymap: `actions.ts` builds what the selection bar and the menus offer for each kind of target, every item pressing its key - (`press.ts`); `Mouse.tsx` draws the one menu, the bar and the key hints. The panes view's panes are a forest of forks (`forks.ts`, pure functions; + (`press.ts`); `Mouse.tsx` draws the one menu, the bar and the key hints; `Menu.tsx` the top bar + and the libraries panel (its state in `libraries.ts`). The panes view's panes are a forest of forks (`forks.ts`, pure functions; the store's `trail` is its focused branch); `stack.ts` is the stacking shared by the strip and its columns, `lanes.ts` orders the curves' lanes. @@ -344,6 +355,15 @@ the first one. When `IE_DATA` is empty, the first library is made with the seed and every `library/*.md`; a file that does not parse is logged and skipped. A library made later starts with its root alone. +### Deleting a library + +`D` in the libraries panel (or `DELETE /api/libraries/`) moves the library's directory, whole +and unchanged, to `IE_DATA/libraries/.deleted/-