mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 05:40:17 +00:00
Show Khoj chat by default in Obsidian side pane instead of search
This commit is contained in:
@@ -46,11 +46,8 @@ export default class Khoj extends Plugin {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Create an icon in the left ribbon.
|
// Create an icon in the left ribbon.
|
||||||
this.addRibbonIcon('search', 'Khoj', (_: MouseEvent) => {
|
this.addRibbonIcon('message-circle', 'Khoj', (_: MouseEvent) => {
|
||||||
// Called when the user clicks the icon.
|
new KhojChatModal(this.app, this.settings).open()
|
||||||
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`);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add a settings tab so the user can configure khoj
|
// Add a settings tab so the user can configure khoj
|
||||||
|
|||||||
Reference in New Issue
Block a user