From afe91a2633ac412a3707d921f4a1370379717fe2 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Mon, 17 Jun 2024 19:42:13 +0530 Subject: [PATCH] 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 --- src/interface/emacs/khoj.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/interface/emacs/khoj.el b/src/interface/emacs/khoj.el index 187d0f24..6681cad9 100644 --- a/src/interface/emacs/khoj.el +++ b/src/interface/emacs/khoj.el @@ -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))