mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Show Khoj chat by default in Obsidian side pane instead of search
This commit is contained in:
parent
aab75a6ead
commit
36bf42a860
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue