From eff488b85e1a484b118e1a5b7102c714cbb5453a Mon Sep 17 00:00:00 2001 From: Chris Barrett Date: Sat, 24 Sep 2022 19:12:17 +1200 Subject: [PATCH] Propertize the search term for org-roam-search --- lisp/org-roam-search.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/org-roam-search.el b/lisp/org-roam-search.el index 69d16b8..fc7ba2b 100644 --- a/lisp/org-roam-search.el +++ b/lisp/org-roam-search.el @@ -81,6 +81,13 @@ would be excluded." "Face for highlighted results in the search buffer." :group 'org-roam-search) +(defface org-roam-search-query + '((t + (:inherit font-lock-string-face))) + "Face for the search query in the header line." + :group 'org-roam-search) + + (defun org-roam-search--highlight-matches (regexp) @@ -198,7 +205,7 @@ QUERY is a PRCE regexp string that will be passed to ripgrep." (let ((nodes (org-roam-search--ripgrep-for-nodes query))) (org-roam-review-display-buffer-and-select (org-roam-review-create-buffer - :title (format "Search Results: %s" query) + :title (concat "Search Results: " (propertize query 'face 'org-roam-search-query)) :placeholder "No search results" :buffer-name org-roam-search-buffer-name :nodes