Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct { // Stubs contains a list of all files store in the directory. Stubs []Stub // contains filtered or unexported fields }
Directory stores a bunch of roam documents. It only stores stubs so the documents can be loaded as needed.
func LoadDirectory ¶
LoadDirectory returns a roam directory for the path given.
type Document ¶
Document is an org roam document. The metadata nodes have been parsed into the struct.
type Stub ¶
type Stub struct { // ID is the UUID of the org document from the top level propery drawer. ID uuid.UUID // Title is the title of the roam note. Title string // Slug is the key used in URLs that point to the document. Slug string // Tags are the filetags found. Tags []string // Description is the description of the document. This is assumed to be all // paragraph blocks that occur before the first headline. Description string // LastUpdated holds when the document was last updated. LastUpdated time.Time // Path is the location on disk that holds the full document Path string }
Stub holds meta information about a document and is able to open the full document.
Click to show internal directories.
Click to hide internal directories.