blursedperf47 downloadsExpand trigger tags such as #case-law into inline field templates, with the cursor placed in the first field.
An Obsidian plugin that turns tags into small records you can fill in quickly and look up later. It brings Logseq-style "tags as classes" to Obsidian.
Type #case-law followed by a space and it becomes:
#case-law [court:: ] [year:: ] [citation:: ] [ratio:: ]
with the cursor in court, a list of courts to pick from, and Tab to move on to year. Every #case-law line in the vault can then be searched, cited, viewed as a table, or promoted to a note of its own.
I created this suite of Obsidian plugins and the DoomEsque theme so that I can be 100 percent certain there are no network calls or traffic: everything runs 100 percent offline, so I can use Obsidian for my notes in open-book law exams.
scripts/offline-audit.mjs, which fails on any network API (fetch, XMLHttpRequest, WebSocket, requestUrl, ...).The suite:
#case-law) with the template it expands into. The tag expands when followed by a space or Tab, when you pick it from Obsidian's tag suggestions, or when Inline Autocomplete completes it, including on list lines. #case-law-notes or abc#case-law never expand, and neither does a line that already has the schema's fields.[court:: ${UKSC|HL|CA}] offers those courts while the cursor is in the field, [kind:: ${seminar}] fills in a default (selected, so typing replaces it), and {{date}}, {{time}} and {{title}} are filled in.+ ratio button that adds it. Pomodoro Flashcards skips empty fields, so this is how you spot a case that will not make cards.manufacturer duty finds Donoghue v Stevenson from its ratio. Enter opens the line, Shift+Enter inserts the entry's citation at the cursor, and Alt+Enter inserts a link.*Donoghue v Stevenson* [1932] AC 562 (HL). Each schema has its own citation format; brackets left empty by missing fields are dropped.Donoghue v Stevenson #case-law [...] into the note Cases/Donoghue v Stevenson, with the tag and fields as properties and headings such as Facts, Issue, Held and Ratio (or a template note of your own), and leaves a link in place of the line.case-law in its properties (or with a line that is just #case-law) is an entry, with its fields from properties and Field:: value lines, as Pomodoro Flashcards reads it.[key:: value] inline fields, which Dataview and Pomodoro Flashcards also read.| Command | What it does |
|---|---|
| Find entry | Search all entries; open one, or insert its citation or a link. |
| Insert citation | Search all entries and insert the chosen one's citation. |
| Open schema table | Open the table view (also in the ribbon). |
| Promote line to note | Make the entry on the cursor's line a note of its own. |
| Add missing fields to existing lines | Bring earlier lines up to date with a schema's template. |
Open Settings → Community plugins → Inline Schema Expander.
| Setting | Description |
|---|---|
| Tab moves between fields | Tab and Shift+Tab move between a schema line's fields. |
| Highlight empty fields | Shade empty fields, flag required ones, and show a button for a missing required field. |
| Suggest values | Suggest a field's choices and earlier values while typing in it. |
| Add schema | Add a starter schema (case, statute, principle, exam issue) or a blank one. |
| Trigger tag | Tag that triggers the expansion, e.g. #case-law. |
| Template | What the tag expands into, with ${a|b} choices, ${text} defaults and {{date}}, {{time}}, {{title}}. |
| Required fields | Fields flagged while empty or missing. |
| Citation format | How Insert citation formats an entry: {{name}} and any {{field}}. |
| Note folder | Where promoted notes are created (empty: beside the current note). |
| Note sections | Headings a promoted note starts with. |
| Note template | A note to copy for promoted notes instead of the headings. |
Each schema's heading has buttons to add its fields to existing lines and to delete it. Settings from version 1.0 keep working: the old cursor offset is no longer needed, as the cursor always starts in the first field.
scripts/offline-audit.mjs, which fails on any network API (fetch, XMLHttpRequest, WebSocket, requestUrl, workers, dynamic import(), ...), dynamic code (eval, new Function), raw HTML injection, or remote CSS..obsidian/plugins/inline-schema-expander/data.json. The plugin edits notes only when you ask it to: expanding a tag on the line you are typing, a value you change in the table, a line you promote, or the fields you confirm adding to existing lines.blursedperf/obsidian-inline-schema-expander.main.js, manifest.json and styles.css from the latest GitHub release.<vault>/.obsidian/plugins/inline-schema-expander/.npm install
npm test # unit tests and the offline audit
npm run build # type-check and bundle main.js
MIT © 2026 blursedperf