mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Use default content types if fail to call backend on khoj.el load
Do not want khoj.el to fail on init/load if khoj backend not running
This commit is contained in:
parent
9f0bd0a361
commit
48ad3c535e
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ Render results in BUFFER-NAME."
|
|||
;; set content type to last used or based on current buffer or to default
|
||||
:init-value (lambda (obj) (oset obj value (format "--content-type=%s" (or khoj--content-type (khoj--buffer-name-to-content-type (buffer-name))))))
|
||||
;; dynamically set choices to content types enabled on khoj backend
|
||||
:choices (mapcar #'symbol-name (khoj--get-enabled-content-types)))
|
||||
:choices (or (ignore-errors (mapcar #'symbol-name (khoj--get-enabled-content-types))) '("org" "markdown" "ledger" "music" "image")))
|
||||
|
||||
(transient-define-suffix khoj--search-command (&optional args)
|
||||
(interactive (list (transient-args transient-current-command)))
|
||||
|
|
Loading…
Add table
Reference in a new issue