mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-03 16:41:27 +01:00
A document links to another by its path, `[the plan](/n/work/plan)`, or now by its title, `[[Plan]]` or `[[Plan|the plan]]`. What each document links to is kept in a new `links` table, rebuilt whenever its text is written: from the browser, over the mount, or by an import. A title is looked for in the linking document's space first, then in every other. Renaming or moving a document, or a folder above it, rewrites the links to it in every document that has one, in the same transaction: the path to the new one, a title to the new name, with the label left as it was. Each rewritten document keeps a revision of what it said before. A link to something in the trash keeps its row, so it follows the thing when it is restored somewhere else. A document created, or renamed, under a title that a link was waiting for is found by that link from then on. The reader draws `[[titles]]` as links, and a title no document has yet as a dimmed one that offers to write that document. `gf` follows either from the editor, and `[[` there completes titles from the search. `gb` and `:backlinks` list the documents that link to the open one, with the line each does it on; the line under the title counts them. A share page shows these links as plain text, as it does every /n/ link. The documents written before this are indexed once, when the server starts and finds the table empty.
35 lines
947 B
JSON
35 lines
947 B
JSON
{
|
|
"name": "narl-workspace-web",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
"@tsconfig/svelte": "^5.0.4",
|
|
"svelte": "^5.19.0",
|
|
"svelte-check": "^4.1.4",
|
|
"typescript": "^5.7.3",
|
|
"vite": "^6.0.11"
|
|
},
|
|
"dependencies": {
|
|
"@codemirror/autocomplete": "^6.20.3",
|
|
"@codemirror/commands": "^6.7.1",
|
|
"@codemirror/lang-markdown": "^6.3.1",
|
|
"@codemirror/language": "^6.10.8",
|
|
"@codemirror/state": "^6.5.1",
|
|
"@codemirror/view": "^6.36.2",
|
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
"@fontsource-variable/noto-sans": "^5.3.0",
|
|
"@lezer/highlight": "^1.2.1",
|
|
"@replit/codemirror-vim": "^6.2.1",
|
|
"dompurify": "^3.2.4",
|
|
"katex": "^0.19.0",
|
|
"marked": "^15.0.6"
|
|
}
|
|
}
|