From 36bf42a860d46813b694ad3fa187a8bb9d3863ec Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 17 Jan 2024 13:21:10 +0530 Subject: [PATCH] Show Khoj chat by default in Obsidian side pane instead of search --- src/interface/obsidian/src/main.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/interface/obsidian/src/main.ts b/src/interface/obsidian/src/main.ts index 3e602340..c3accc3d 100644 --- a/src/interface/obsidian/src/main.ts +++ b/src/interface/obsidian/src/main.ts @@ -46,11 +46,8 @@ export default class Khoj extends Plugin { }); // Create an icon in the left ribbon. - this.addRibbonIcon('search', 'Khoj', (_: MouseEvent) => { - // Called when the user clicks the icon. - this.settings.connectedToBackend - ? new KhojSearchModal(this.app, this.settings).open() - : new Notice(`❗️Ensure Khoj backend is running and Khoj URL is pointing to it in the plugin settings`); + this.addRibbonIcon('message-circle', 'Khoj', (_: MouseEvent) => { + new KhojChatModal(this.app, this.settings).open() }); // Add a settings tab so the user can configure khoj