跳至主要內容
yomihon 書庫
整體狀況設定

鍵盤快捷鍵

⌘K / Ctrl K
搜尋
Esc
關閉搜尋或篩選
/
跳到導覽篩選(單鍵開啟時)
[
收合或展開側欄(單鍵開啟時)

關掉之後,/ 和 [ 都只會照瀏覽器原本的方式輸入;⌘K 與 Esc 不受影響。

設定
esc

↑↓ 選擇 ↵ 搜尋 esc 關閉

L02 Add a contract

lesson更新於
更新於
類型
lesson
語言
en
在 Obsidian 開啟留下自己的想法
更新於
類型
lesson
語言
en
在 Obsidian 開啟留下自己的想法
本頁內容 正文連到這篇 4

Copy System/schemas/vault-schema.toml into the same path in your vault. Adapt its vocabulary and directories to your files. yomihon reads this file but never writes it.

If your notes already carry statuses, which section should you check first?

After you have decided
  1. [enums] and [fields]: the keys and values in your notes. See Frontmatter.
  2. [scan]: the directories to check.
  3. [[lifecycle]]: transitions among the declared statuses. See The status lifecycle.

The lifecycle depends on the status vocabulary. Changing that vocabulary first avoids revisiting transitions after each edit. If you are keeping the existing vocabulary, you can work on the lifecycle immediately.

An invalid contract disables status changes. Reading, folders and search remain available.

What each section opens

Section What it opens
[enums], [[lifecycle]] The vocabulary, and the status control that moves a note through it. Without either, the contract is refused whole and the folder is read as though it carried none.
[fields] The frontmatter keys a note may write. Leave it out and every key you have written is reported as one nothing declares.
[scan] Which directories hold knowledge. What lies outside them is still read, and is not judged.
[navigation] Study paths and maps.
[artifacts] The directories holding shapes to copy rather than notes under a lifecycle. Leave it out and no note anywhere gets a status control.
[privacy] Directories withheld from agent-facing output. The command line refuses to report until this section exists.
[rules] The checks on a slug, on a domain against its folder, and on a tag.
[supersession] Fields recording which note replaced which.

One declaration can require another. Put lesson in enums.type and rules.slug_pattern becomes required, because a lesson carries a slug and nothing else says what a slug may look like.

作者標記的狀態 ready
設為 archived

設為 archived 之後,這裡不再有回到目前狀態的路。