Add section separators to khoj.el for easier code traversal

This commit is contained in:
Debanjum Singh Solanky
2023-01-19 23:36:54 -03:00
parent 7516435a0b
commit 44bbc0a417

View File

@@ -50,7 +50,7 @@
(require 'json) (require 'json)
(require 'transient) (require 'transient)
;; ------------------------- ;; -------------------------
;; Khoj Static Configuration ;; Khoj Static Configuration
;; ------------------------- ;; -------------------------
@@ -84,7 +84,7 @@
(const "image") (const "image")
(const "music"))) (const "music")))
;; -------------------------- ;; --------------------------
;; Khoj Dynamic Configuration ;; Khoj Dynamic Configuration
;; -------------------------- ;; --------------------------
@@ -160,7 +160,7 @@ Use `which-key` if available, else display simple message in echo area"
nil t t)) nil t t))
(message "%s" (khoj--keybindings-info-message)))) (message "%s" (khoj--keybindings-info-message))))
;; ----------------------------------------------- ;; -----------------------------------------------
;; Extract and Render Entries of each Content Type ;; Extract and Render Entries of each Content Type
;; ----------------------------------------------- ;; -----------------------------------------------
@@ -247,7 +247,7 @@ Use `which-key` if available, else display simple message in echo area"
((and (member 'markdown enabled-content-types) (or (equal file-extension "markdown") (equal file-extension "md"))) "markdown") ((and (member 'markdown enabled-content-types) (or (equal file-extension "markdown") (equal file-extension "md"))) "markdown")
(t khoj-default-content-type)))) (t khoj-default-content-type))))
;; -------------- ;; --------------
;; Query Khoj API ;; Query Khoj API
;; -------------- ;; --------------
@@ -304,7 +304,7 @@ Render results in BUFFER-NAME."
(t (fundamental-mode)))) (t (fundamental-mode))))
(read-only-mode t))) (read-only-mode t)))
;; ------------------ ;; ------------------
;; Incremental Search ;; Incremental Search
;; ------------------ ;; ------------------
@@ -379,6 +379,7 @@ Render results in BUFFER-NAME."
(read-string khoj--query-prompt)))) (read-string khoj--query-prompt))))
;; --------- ;; ---------
;; Khoj Menu ;; Khoj Menu
;; --------- ;; ---------
@@ -424,7 +425,7 @@ Render results in BUFFER-NAME."
("u" "Update" khoj--update-command) ("u" "Update" khoj--update-command)
("q" "Quit" transient-quit-one)]]) ("q" "Quit" transient-quit-one)]])
;; ---------- ;; ----------
;; Entrypoint ;; Entrypoint
;; ---------- ;; ----------