Two Bases Worth Having in your Obsidian Vault
Published by Scott Kingery on
There are two things I want to ensure in my Obsidian Vault: 1) Every note is actually created in the vault. And 2) Every note has a link to another note or Map of Content (MOC) within the vault.
What do I mean, actually created? In Obsidian you can, in the text of a note, simply add [[My Grand Idea]] which looks like a link to the note called "My Grand Idea" but I might not have a real note called "My Grand Idea". This Base, which I keep on a note called "In Box" gathers up any non-created notes and shows them to me so I can be sure I create them for real.
formulas:
Untitled: file.links.filter(!value.asFile().isTruthy())
properties:
file.name:
displayName: Origin
formula.Untitled:
displayName: Uncreated files
views:
- type: table
name: Table
filters:
and:
- file.links.filter(!value.asFile().isTruthy())
- '!file.path.contains("Support")'
order:
- file.name
- formula.Untitled
The line that says !file.path.contains("Support") is meant to prevent anything in my Support folder or it's subfolders from showing up in the Base. This is where I keep my Templates. You can omit that line or change Support to something that makes sense for your Vault.
The second one is self explanatory: I want all notes to link to each other. This Base shows me any notes that don't contain links to other notes in the vault.
views:
- type: table
name: Table
filters:
and:
- file.links.isEmpty()
- '!file.path.contains("Files")'
- '!file.path.contains("Support")'
- '!file.path.contains("Daily")'
Like the above, I don't want false-positives showing up for notes in the Files folder (where I keep attachments), the Support folder or the Daily folder. These filters could be modified or removed.
These 2 Bases are part of my Obsidian Template Vault
