An Engineer's Blog

Back

An Obsidian vault on numbered shelves, synced by iCloud and gitBlur image

Overview

The vault holds about 1,150 notes and has outlived several systems that promised to organize them better. What follows is the structure, not the contents.

The vault folder name carries a date, a habit worth keeping: each era of life gets a fresh vault, old ones stay frozen and readable, and the current one never drags a decade of clutter behind it.

How I got here

OneNote came first, through a bachelor’s degree where the equation editor was the feature that mattered. I was the only one in the lectures typing math instead of writing it down, and my hands still know those keystrokes. The format pushed me out: notes locked in a proprietary container that grep could not read and git could not track.

The zettelkasten years followed, a run of plain-text editors with Zettlr as the longest stop. The YYMMDD- prefix is a zettelkasten convention that never left. Every editor had its own ideas about where notes live and how they connect, so every switch meant another migration.

Then came LaTeX and vim; I wrote notes as .tex and edited them like code. Total control, but capture slowed to the speed of the toolchain, and none of it was built for a phone.

Obsidian is where this settled. The notes are plain markdown on disk: iCloud and git work on the folder directly, and the mobile app reads exactly what the desktop writes. Migration ended when the app became replaceable.

Numbered shelves

Classification is a two-level scheme in the Johnny Decimal spirit; every shelf takes its parent’s number:

10 Personal      the life admin shelf
20 Journal       daily and period writing
30 Resource      collected knowledge about tools and techniques
40 Project       one shelf per active project
50 Development   long-lived technical topics
60 Academic      courses and research
98 Meta          the vault's own machinery
text

A note has exactly one address, search scope shrinks to a shelf, and restructuring means moving one numbered folder instead of re-sorting a thousand files. When a project dies, its shelf dies with it. Domains above 90 are reserved for the vault’s own machinery, so the content numbering stays stable.

Note identity and metadata

Every note starts from a template with the same minimal frontmatter: a creation date, a modification date, and a tag. Templates fill the dates automatically and prompt once for the tag; a tag asked for at creation is the one that gets chosen.

Tags follow a family/scope pattern: journal notes by week, class notes by course, so a semester or a week is one tag click away. The YYMMDD- ID prefix keeps filenames sortable and unique.

The template gallery is small on purpose: daily notes, meeting minutes, class notes, a people note, and capture templates for scans and OCR. Daily notes are the hub: links to yesterday and tomorrow, plus an Eisenhower matrix built from task queries.

Sync rail 1: iCloud

The vault lives in iCloud Drive, so the macOS and iOS Obsidian apps see the same folder natively. The rail is instant and needs no configuration; a note written on the phone is on the laptop by the time I sit down. Its failure mode is a conflicted copy next to the original, rare and visible in the file list.

Sync rail 2: git

The second rail is the obsidian-git plugin:

  • Auto-commit every five minutes with a vault backup: <date> message, changed files listed in the message body.
  • Rebase as the sync method, so local history stays linear.
  • Push stays manual, to the self-hosted Gitea.

Frequent commits capture a timeline no file-level sync offers; a paragraph deleted yesterday is recoverable today. Pushing stays manual because publishing the vault offsite should never ride an automation. Git never runs on the phones.

Cross-device config: .obsidian and .obsidian.ios

The desktop config folder holds the automation stack: obsidian-git, Templater, QuickAdd, and the auto-link-title plugin. The iOS set lives alongside as .obsidian.ios, renamed into place on the phone and iPad: relative line numbers, an alternative file tree, the table editor, admonition callouts, a code-block syntax highlighter, and meld-encrypt for the few notes encrypted at rest.

Git cannot run inside iOS Obsidian, and keyboard-oriented templating automations are noise on a phone, where capture speed is the only feature that matters. Shared machinery stays in the meta shelf: templates, the one script, and notes on the Shortcuts and widgets that push content in from the home screen.

Closing

The two rails fail in different ways, so they cover each other’s gaps. Underneath, the numbered shelves and the minimal frontmatter keep a thousand notes boring, which is exactly what I want from a note system.

An Obsidian vault on numbered shelves, synced by iCloud and git
https://tin.ng/blog/2024-11-11--obsidian-vault-icloud-git-sync
Author Tin Nguyen
Published at November 11, 2024
Comment seems to stuck. Try to refresh?✨