<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>methods on Dendrite</title><link>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/</link><description>Recent content in methods on Dendrite</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/index.xml" rel="self" type="application/rss+xml"/><item><title>vault commands</title><link>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/vault_commands/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/vault_commands/</guid><description>&lt;h1 id="vault-commands"&gt;&lt;strong&gt;vault commands&lt;/strong&gt;&lt;a class="anchor" href="#vault-commands"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Vault commands manage the daemon&amp;rsquo;s connection to a vault and its index. &lt;code&gt;vault/init&lt;/code&gt; must be called before any other command — it is what binds the daemon instance to a vault.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="vaultinit"&gt;&lt;strong&gt;vault/init&lt;/strong&gt;&lt;a class="anchor" href="#vaultinit"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Initializes the daemon against a vault. This sets up the database context and, if the vault has not been indexed before, performs a full index build by scanning the vault directory.&lt;/p&gt;
&lt;p&gt;If the index already contains notes the rebuild is skipped, so calling &lt;code&gt;vault/init&lt;/code&gt; on an already-known vault is safe and cheap.&lt;/p&gt;</description></item><item><title>note commands</title><link>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/note_commands/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/note_commands/</guid><description>&lt;h1 id="note-commands"&gt;&lt;strong&gt;note commands&lt;/strong&gt;&lt;a class="anchor" href="#note-commands"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Note commands modify the index by creating or updating notes.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="create-note"&gt;&lt;strong&gt;create note&lt;/strong&gt;&lt;a class="anchor" href="#create-note"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Creates a note at a specified directory, and updates the index. Returns the path to the created note. The note content is generated from a &lt;a href="https://kristianjborgwarth.github.io/dendrite.docs/docs/concepts/templates/"&gt;template&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Method: &lt;code&gt;note/create&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Params:&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Field&lt;/th&gt;
 &lt;th&gt;Type&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;title&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;string&lt;/td&gt;
 &lt;td&gt;Title for the new note. Used in frontmatter and converted to a slug for the filename.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;templateName&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;string&lt;/td&gt;
 &lt;td&gt;Name of the template the note will use.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;directory&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;string&lt;/td&gt;
 &lt;td&gt;The directory the note will be placed in, relative to the vault root.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Request:&lt;/p&gt;</description></item><item><title>completion commands</title><link>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/completion_commands/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/completion_commands/</guid><description>&lt;h1 id="completion-commands"&gt;&lt;strong&gt;completion commands&lt;/strong&gt;&lt;a class="anchor" href="#completion-commands"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Completion commands are designed to feed editor completion engines. Both accept a partial query and return a list of matching strings, using a substring match against the index.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="completionslug"&gt;&lt;strong&gt;completion/slug&lt;/strong&gt;&lt;a class="anchor" href="#completionslug"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Returns a list of note &lt;a href="https://kristianjborgwarth.github.io/dendrite.docs/docs/concepts/note_spec/#slug-as-identity"&gt;slugs&lt;/a&gt; whose title, path, or slug contains the query string. Intended to power &lt;code&gt;[[link]]&lt;/code&gt; completion in the client editor.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Method:&lt;/strong&gt; &lt;code&gt;completion/slug&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Params:&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Field&lt;/th&gt;
 &lt;th&gt;Type&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;query&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;string&lt;/td&gt;
 &lt;td&gt;Partial string to match against note title, path, and slug.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Request:&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>queries</title><link>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/query_commands/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/query_commands/</guid><description>&lt;h1 id="queries"&gt;&lt;strong&gt;queries&lt;/strong&gt;&lt;a class="anchor" href="#queries"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Queries read from the index without modifying it. They are used for navigation, discovery, and search.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="goto-note"&gt;&lt;strong&gt;goto note&lt;/strong&gt;&lt;a class="anchor" href="#goto-note"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Supplied with a valid link, returns a target and a type. The target is what the client should navigate to. The type indicates whether the link points to another note within the vault or to an external URL. See &lt;a href="https://kristianjborgwarth.github.io/dendrite.docs/docs/concepts/links/"&gt;links&lt;/a&gt; for details.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Method:&lt;/strong&gt; &lt;code&gt;note/goto&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Params:&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Field&lt;/th&gt;
 &lt;th&gt;Type&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;link&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;string&lt;/td&gt;
 &lt;td&gt;A link extracted from a note.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Request:&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>diagnostics</title><link>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/diagnostics/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://kristianjborgwarth.github.io/dendrite.docs/docs/daemon/methods/diagnostics/</guid><description>&lt;h1 id="diagnostics"&gt;&lt;strong&gt;diagnostics&lt;/strong&gt;&lt;a class="anchor" href="#diagnostics"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Diagnostic commands inspect the index for inconsistencies without modifying it. They are intended to help clients surface problems to the user in real time.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="diagnosticslinks"&gt;&lt;strong&gt;diagnostics/links&lt;/strong&gt;&lt;a class="anchor" href="#diagnosticslinks"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Scans the links recorded for a given note and returns any that point to a slug that does not exist in the index. Intended to be called after a note is saved or opened so clients can display inline warnings.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Method:&lt;/strong&gt; &lt;code&gt;diagnostics/links&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Params:&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Field&lt;/th&gt;
 &lt;th&gt;Type&lt;/th&gt;
 &lt;th&gt;Description&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;path&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;string&lt;/td&gt;
 &lt;td&gt;Absolute path to the note to check.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Request:&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>