mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Improve Semantic Search Buffer Names in Emacs
- Allow multiple semantic searches buffers to exist simultaneously - Uniquify semantic search buffer namew - Add query and search-type to semantic search buffer name for easier disambiguration, search and find appropriate
This commit is contained in:
parent
6a84ca965a
commit
bb5d0d8908
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@
|
|||
(let* ((default-type (semantic-search--buffer-name-to-search-type (buffer-name)))
|
||||
(search-type (completing-read "Type: " '("notes" "ledger" "music" "image") nil t default-type))
|
||||
(url (semantic-search--construct-api-query query search-type))
|
||||
(buff (get-buffer-create "*semantic-search*")))
|
||||
(buff (get-buffer-create (format "*Semantic Search (q:%s t:%s)*" query search-type))))
|
||||
;; get json response from api
|
||||
(with-current-buffer buff
|
||||
(let ((inhibit-read-only t))
|
||||
|
|
Loading…
Add table
Reference in a new issue