ObsidianIdeas
Defined in: capabilities/ideas.ts:37
The Obsidian implementation of the ideas capability: every Markdown note under the vault folder is an idea, its
status: and issue: properties are its state and the issue it was filed as, and its key is its path relative to
the folder. It reads and writes files only: no token, no network. It does not implement retire, because
Obsidian’s trash is reachable only through the app.
Implements
Section titled “Implements”Ideas
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ObsidianIdeas(
options,io):ObsidianIdeas
Defined in: capabilities/ideas.ts:43
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”ObsidianIdeas
Properties
Section titled “Properties”
readonlykey:"ideas"
Defined in: capabilities/ideas.ts:39
The capability this class provides, always "ideas".
Implementation of
Section titled “Implementation of”Ideas.key
providerName
Section titled “providerName”
readonlyproviderName:"obsidian"="obsidian"
Defined in: capabilities/ideas.ts:41
The provider name, "obsidian".
Implementation of
Section titled “Implementation of”Ideas.providerName
Methods
Section titled “Methods”list()
Section titled “list()”list():
Promise<IdeaRecord[]>
Defined in: capabilities/ideas.ts:49
Every note in the folder as an idea, sorted by path; a note that cannot be read comes back with an error.
Returns
Section titled “Returns”Promise<IdeaRecord[]>
Implementation of
Section titled “Implementation of”Ideas.list
markFiled()
Section titled “markFiled()”markFiled(
key,issue):Promise<void>
Defined in: capabilities/ideas.ts:81
Sets the note’s issue: property, read again first because a sync client may have changed the note.
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Ideas.markFiled
notesDir()
Section titled “notesDir()”notesDir():
string|undefined
Defined in: capabilities/ideas.ts:89
The folder of notes this provider reads, chosen by HOLOCRON_IDEAS_DIR, then dir, then vault; undefined when
none is set. It touches no file.
Returns
Section titled “Returns”string | undefined
Implementation of
Section titled “Implementation of”Ideas.notesDir
setStatus()
Section titled “setStatus()”setStatus(
key,status):Promise<void>
Defined in: capabilities/ideas.ts:76
Sets the note’s status: property; the rest of the file stays as it was, byte for byte.
Parameters
Section titled “Parameters”string
status
Section titled “status”string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Ideas.setStatus