using Obsidian
vaultdir = joinpath(root, "test", "data", "presidents-vault")
v = Vault(vaultdir)
v isa Vaulttrue
Documentation for version: 0.5.0
February 13, 2025
You can construct a Vault from a directory in your file system. We’ve predefined a variable named root to point to the base directory of this repository, and will use a sample Obsidian vault in the repository’s test/data directory.
using Obsidian
vaultdir = joinpath(root, "test", "data", "presidents-vault")
v = Vault(vaultdir)
v isa Vaulttrue
Obsidian identifies notes by the name of their plain-text files, minus any extension. We refer to this as its wikiname, since this reference can be used as a link anywhere in the vault without knowledge of the note’s location in the vault.
To find the names Obsidian uses for all notes in a vault, use the wikinames function:
12-element Vector{String}:
"Abraham Lincoln"
"Abraham Lincoln 1860 census"
"Custis"
"Dandridge"
"George Washington"
"Lincoln"
"Martha Washington"
"Springfield, Sangamon, Illinois"
"View geography"
"Washington"
"overview"
"yamltest"
If you need to find the location of the note in your file system, you can use the path function:
Find links occuring on the page with wiki name “Abraham Lincoln” (that is, links outgoing from “Abraham Lincoln”):
Find pages that link to the note “Abraham Lincoln” (that is, links incoming to “Abraham Lincoln”):
Find all tags labelling the page “Abraham Lincoln”:
Find all pages tagged #president: