A customisable, Markdown-based vertical timeline for Obsidian.
Created by Guthrie Ward. Current version: 0.1.51.
Aion Codex organises a Chronicle into Ages, Years, Dates and Events. It was developed for worldbuilding and fictional histories, where a Year might be 804 BCE, Year of the Falling Star, or simply In the Beginning….
Years appear on the left, with Dates and their Events grouped in panels on the right. Age headings and optional descriptions divide the Chronicle into chapters. You can work through dialogs and drag/drop, edit the Markdown directly, or combine both approaches.
aion-timeline fenced blocks.Template.md that you can customise.Aion Codex is currently installed manually; these instructions do not require an Obsidian Community Plugins listing.
.obsidian/plugins/aion-codex/ inside your vault.Example.md into your vault.No dependency installation or build step is needed to use the bundled plugin. The minimum declared Obsidian version is 1.5.0.
A Chronicle uses ordinary Markdown structure inside a custom fence:
| Markdown | Aion concept | Display |
|---|---|---|
# |
Age | Section heading |
| Text beneath the Age heading | Age Description | Overview beneath the heading |
## |
Year/Time Label | Left column |
### |
Circa/Date Label | Heading in the Events box |
- |
Event | Event beneath that Date |
For example, two linked Ages:
```aion-timeline
<!-- aion: chronicle/starting -->
# Age of Stars
<!-- colour: #af0000 -->
An overview of the Age, with **emphasis** and [[World history]].
## 1,000,000 BCE
### 11 Rainwake
- A traveller records the falling star.
- The council gathers to discuss its meaning.
```
```aion-timeline
<!-- aion: chronicle/age-2 -->
# Age of Dragon
<!-- colour: #000080 -->
When Dragons ruled the skys.
## 10,000 BCE
### Circa
- The Lord of All Dragon conquered the skies.
- The first settlements appear.
```
```aion-timeline
<!-- aion: chronicle/age-1 -->
# Age of Man
<!-- colour: #008000 -->
## Year of the Silver Crown
### Winter's End
- A new ruler is crowned.
```
```aion-timeline
<!-- aion: chronicle/age-3 -->
# What Is Yet to Come
## Future
### Prophecy
- The lost city will rise again.
```
The shared chronicle identifier links the blocks; starting and age-2 identify their individual parts. Keep each part identifier unique. Use another Chronicle identifier for an independent Chronicle. Linking works within one note, not across notes.
New Chronicles and Ages created through Aion use one linked block per Age. Blocks render in place, so surrounding note text stays where you put it. Age order follows the note, with the Starting Age exception described below. Older independent blocks remain supported; adding an Age to one creates linked Age blocks.
Year and Date labels are free text. Numbers and recognised calendar names are only needed if you want to use the relevant sorting button. Age titles must be unique within a Chronicle; separate Chronicles may reuse titles.
Events support Markdown formatting and Obsidian note links, including [[links|aliases]]. Indent continuation lines by two spaces. Images and embeds are suppressed in Events, and there is no Year image field.
Age Descriptions support paragraphs, emphasis, lists and links. Structural timeline headings, metadata and fences are reserved. Unsupported content outside the documented structure produces an error rather than being silently discarded by a form edit.
The shared toolbar provides search, Add Age and Add Event. Each Age has its own Add Event, Edit Age and Delete Age controls.
The Age dialog contains:
The Event dialog contains Age, Year/Time Label, Circa/Date Label and the Event description. Matching Year and Date labels reuse their existing groups.
Hover over an Event or focus it to reveal Add, Edit and Delete icons. Add Event preselects that Event's Age, Year and Date and inserts the new Event directly beneath it. You can change its destination in the dialog. On touch devices, tap the Event row to reveal its controls.
Deleting an Event requires confirmation. Deleting an Age warns that all its associated Years, Dates and Events will also be deleted and shows the Event count. Empty containers are removed when an Event edit, move or deletion empties them; the Age remains available.
Form edits and drag/drop save back to the Markdown note. Aion checks that the content has not changed since the operation began and refuses stale writes. There is no separate in-plugin undo system.
Insertion lines preview where content will land. Clear search before dragging.
| Drag source | What moves |
|---|---|
| Event text | That Event |
| Date heading | The Date and all its Events |
| Year label | The Year and all its Dates and Events |
| Age title | The Age heading, description and colour boundary |
| Age title with Ctrl held when dropping | The entire Age and its contents |
An ordinary Age drag redefines where that Age starts. It can be placed between Dates; the Events left behind belong to the Age heading now directly above them. Splitting a Year repeats its label under the new Age. A move that would leave content without an Age is refused.
A Ctrl-drag moves a whole Age between Age sections. Event, Date and Year drops support before/after positions and empty destinations. Matching Year labels merge their Dates; matching Date labels merge their Events. Repeated Event text is retained, and dragging does not apply chronological sorting.
Movement works across linked Age blocks in the same Chronicle. Dedicated timeline drag handles are not used. Mouse dragging on desktop is the primary target; direct Markdown editing remains available for other workflows.
Select Starting Age in the Age dialog to move that Age and its contents to the beginning of the Chronicle. Only one Age can have this designation, and its Years and Dates are never sorted.
Moving an Age into first position through drag/drop automatically makes it the Starting Age. Unchecking the option clears the designation without moving it. Deleting a designated Starting Age transfers the designation to the next Age, if one remains.
Its linked marker uses the reserved part name starting, for example <!-- aion: chronicle/starting -->. Free-text Year/Time Labels remain available for beginnings outside a numbered calendar.
Search covers Age titles and descriptions, Year labels, Date headings and Event text, retaining their surrounding context.
For a linked Chronicle, results from all Ages appear beneath the first block's search bar, even if later blocks have not yet loaded on screen. Other blocks do not duplicate the results. The clear button inside the search field restores each Age to its own position.
Clear search before sorting or dragging. Matching Events can still be edited through their controls.
Sorting is deliberately manual, so you can arrange and edit content before putting it in calendar order. Ages are never chronologically sorted.
Under Settings → Aion Codex → Sorting, configure:
BCE, labelled Negative Years.CE, labelled Positive Years.Use Sort Years beside an Age heading to sort only that Age's Years.
With both Eras defined, the first Era counts down, followed by the second counting up. For example: 1,000 BCE → 500 BCE → 1 CE → 100 CE. A numeric Year without an Era belongs to the upward group. Era matching ignores case, and comma-separated numbers and attached Era suffixes are supported.
With zero or one Era defined, signed numeric Years sort from negative to positive, regardless of trailing Era notation.
Named Years and unrecognised labels keep their existing slots while recognised Years sort around them. Equal values keep their relative order. Dates and Events travel with their Year; sorting does not merge Years.
Use Sort Dates at the top right of an Events box to sort that Year's Date groups.
11 Rainwake, Rainwake 11, 11th Rainwake and Rainwake 11th.Unrecognised Dates keep their slots among the non-Circa Dates. Equal values keep their relative order. Labels are not rewritten, Date groups are not merged, and Events within a Date are not sorted. Without configured Months, only Circa can be moved into order.
The Starting Age has neither sorting control. Adding, editing and reopening a Chronicle never trigger sorting automatically.
The General tab provides:
| Setting | Default | Range |
|---|---|---|
| Age Text Size | 140% | 100–150% |
| Year Text Size | 100% | 90–110% |
| Date Text Size | 120% | 100–120% |
| Event Text Size | 80% | 75–95% |
| Year Column Width | 150px | 100–250px |
| Space between Years | 10px | 5–25px |
| Default Timeline Colour | RGB 175, 0, 0 (#af0000) |
Colour picker |
| Shaded Event panels | Enabled | On/off |
Text-size controls use 5% steps relative to document text size. Age Descriptions remain at 100%. Text-size changes update visible Chronicles immediately; reopen the note for other appearance changes.
Fonts follow the Obsidian theme and CSS snippets. Date headings are bold. Event bullets align with the Date heading's left edge, and narrow screens use a compact Year column.
Default and individual Age colours adapt to Light and Dark modes. They colour the dots, panel borders and drag indicators. The main timeline line and panel shading share the same neutral, theme-aware grey. Use Default removes an Age's colour override so it follows future global colour changes.
Settings are stored per vault in the plugin's data.json; Chronicle content and individual Age colours stay in Markdown.
Insert example Chronicle reads Template.md from the installed Aion Codex folder each time it runs. Edit that file to change your starting template; no rebuild or restart is needed.
Insertion assigns fresh Chronicle identifiers to avoid linking to an existing Chronicle accidentally. It preserves the template's content and does not modify Chronicles already inserted. Missing or invalid templates insert nothing and show an error.
The author's Infusion Chronicle currently contains 804 Events, with no issues reported in its current use. This is a real-use report, not a performance guarantee for every device, theme or plugin combination.
Each linked Age renders independently. Rich Markdown formatting is deferred until Events approach the viewport and processed in small batches. Unchanged formatted content is reused where possible, and Event controls are shared rather than duplicated for every Event. Search still covers the full Chronicle.
Reading View and Live Preview use Obsidian's normal code-block processor. Source Mode remains editable fenced Markdown, with no custom editor syntax extension. Separate Age blocks also avoid keeping the entire Chronicle inside one very long fence; exceptionally large individual blocks may still encounter Obsidian's own editor limits.
Aion currently focuses on authoring and displaying Chronicles. It does not provide a calendar grid, cross-note aggregation, automatic sorting, duration bars or Xmind conversion. Mobile drag/drop has not been established as a supported workflow.
The installable main.js is bundled from the local source files. It has no external runtime dependencies beyond Obsidian.
From the plugin directory, rebuild with node build.js. The build also mirrors Template.md to Example.md; edit the template rather than the generated example.
Run the automated checks with:
node --test *.test.js
Checks cover parsing, saving, dialogs, linked blocks, search, sorting, rendering and drag/drop logic. Simulated checks do not replace testing inside Obsidian with real themes and pointer input.
See CHANGELOG.md for the retained release history.