mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
Only show headings of search result and increase total count returned
Previously it would show complete result body this would make the result width variable and hard to track all the returned results Showing just heading makes it easier to track
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
:group 'khoj
|
||||
:type 'integer)
|
||||
|
||||
(defcustom khoj-results-count 5
|
||||
(defcustom khoj-results-count 8
|
||||
"Number of results to show in search and use for chat responses."
|
||||
:group 'khoj
|
||||
:type 'integer)
|
||||
@@ -707,10 +707,9 @@ Render results in BUFFER-NAME using search results, CONTENT-TYPE and (optional)
|
||||
(progn (visual-line-mode)
|
||||
(org-mode)
|
||||
(setq-local
|
||||
org-startup-folded "showall"
|
||||
org-hide-leading-stars t
|
||||
org-startup-with-inline-images t)
|
||||
(org-set-startup-visibility)))
|
||||
(org-cycle-content 2)))
|
||||
((equal content-type "markdown") (progn (markdown-mode)
|
||||
(visual-line-mode)))
|
||||
((equal content-type "image") (progn (shr-render-region (point-min) (point-max))
|
||||
|
||||
Reference in New Issue
Block a user