Naming

community mirrored · updated

Frozen at first release

ThingName
Repopublictxt/obsidian-publictxt-remotes
Plugin id / namepublictxt-remotes / PublicTxt Remotes
View typespublictxt-check, publictxt-upstream, publictxt-preview, publictxt-link-report
Command idscheck-sources, open-check-view, mirror-file, stop-mirroring, fork-mirror, fork-file, preview-file, compare-fork, unwrap-fork, convert-links, match-links, fix-links, fix-fork-links, fix-mirror-links, convert-link-at-cursor, match-link-at-cursor, fix-link-at-cursor, update-page-lists

Vocabulary

WordMeans
sourceA followed repo, hosted or local: a follow note in follows/
followAdd a repo as a source. Only repos are followed; pages are mirrored or forked
remote nameA source’s name: its follow note’s file name. Copies record it (*_remote)
source keySource.url: canonical URL, or local:<name>
remoteThe technical word for a source (plugin name, *_remote). Never a folder
includeFolder prefixes narrowing “what’s new”
local sourceA source on this computer: local: true in its follow note
local copyA hosted source’s working copy on this computer
snapshot / make a repoCommit a local folder’s changes / git init it with a .gitignore, then snapshot
cloneA source’s bare partial clone under clonesFolder. Never a page copy
mirrorUpstream’s copy of a page under the community folder, with mirror_* keys; overwritten by updates. Also the action
attachmentA file that isn’t Markdown a copy links or embeds: a mirror’s copied with it (its blob SHA its provenance), a fork’s when beside its note
forkThe user’s own note made from a source file, with fork_* keys
fork for reviewA fork whose text is wrapped whole in a fence, as plain text, with fork_review: true. Also the choice
copyA fork or mirror; for forks, one of the notes from one upstream file
latestThe copy with the newest fork_date: the one compared
settledA copy needing nothing for an upstream blob: its fork_blob or fork_seen is it
compareA fork, or a mirror, beside the Upstream view
previewAn upstream page shown read-only in the Preview view, before it is copied
community folderHolds each source’s mirror folder (communityFolder; the source’s folder, else its remote name)
fork folderDefault fork destination (forkFolder)
mirror list / fork listThe “Mirrored pages” / “Forked pages” sections in a follow note
convert linksWrite a note’s links in the vault’s form: Markdown by a relative path, wikilinks by the shortest
match linksPoint broken links at the one note of that name
fix linksConvert and match: broken links matched, the rest converted
checkOne pass over the sources: what’s new, mirrors, forks
tag filterIncluded and excluded tags that narrow what’s new and all files
tag indexThe tags of a commit’s Markdown files, kept in the clone
unreadOf a page: not in the tag index, so its tags aren’t known
tag comboOne line of follow_tags: tags a page needs all of, and tags with - it must not have
followed tagsA source’s tag combos; a page matches when any line does
head / blobThe tracked branch’s latest commit / a file’s git blob SHA

Code layout

Each feature file in features/ names its modules. Tests are in tests/<module>.test.ts.

FolderHolds
src/sources/data.json schema, follow notes, canonical URL, provenance keys, scanning notes
src/remote/RemoteHost, GitHost, local folders, snapshot
src/check/A check and its vault run; file tree; ticks
src/copy/What forks and mirrors share. Imports neither; fork/ may import mirror/, never the reverse
src/mirror/Mirroring, update, stop
src/preview/Previewing an upstream page
src/compare/A copy beside its upstream file: opening a compare, reading what it shows. Imports neither fork/ nor mirror/
src/fork/Fork destination and writing, fork update, lists
src/links/A note’s links: convert, match, fix; the note or the link under the cursor
src/tags/Tags from text, the tag filter, the tag index, tag combos
src/snapshot/Snapshot and make-a-repo from the vault
src/ui/Views, modals, tree rows
src/util/Small helpers