diff --git a/main.js b/main.js index cb6872d..1262274 100644 --- a/main.js +++ b/main.js @@ -33305,6 +33305,7 @@ var MemexChatPlugin = class extends import_obsidian5.Plugin { const leaf = this.app.workspace.getLeavesOfType(VIEW_TYPE_MEMEX_CHAT)[0]; if (leaf) { const view = leaf.view; + view.newThread(); view.setInputValue(`Erkl\xE4re und verkn\xFCpfe [[${file.basename}]] mit anderen Konzepten im Vault.`); view.setExplicitContext([file]); } diff --git a/src/ChatView.ts b/src/ChatView.ts index f90cb2e..0a2b57e 100644 --- a/src/ChatView.ts +++ b/src/ChatView.ts @@ -215,7 +215,7 @@ export class ChatView extends ItemView { // ─── Thread Management ──────────────────────────────────────────────────── - private newThread(): void { + newThread(): void { const thread: Thread = { id: Date.now().toString(), title: "Neuer Chat", diff --git a/src/main.ts b/src/main.ts index ad2c189..adcfea5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,6 +85,7 @@ export default class MemexChatPlugin extends Plugin { const leaf = this.app.workspace.getLeavesOfType(VIEW_TYPE_MEMEX_CHAT)[0]; if (leaf) { const view = leaf.view as ChatView; + view.newThread(); view.setInputValue(`Erkläre und verknüpfe [[${file.basename}]] mit anderen Konzepten im Vault.`); view.setExplicitContext([file]); }