mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 13:21:18 +00:00
Find similar notes to current note at cursor automatically in background
- Call find similar on current element if point has moved to new element - Delete the first result from find-similar search results as that'll be the current note (which is trivially most similar to itself) - Determine find-similar based text formating at the rendering layer rather than at the top level find-similar func
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
")))
|
||||
(should
|
||||
(equal
|
||||
(khoj--extract-entries-as-markdown json-response-from-khoj-backend user-query)
|
||||
(khoj--extract-entries-as-markdown json-response-from-khoj-backend user-query nil)
|
||||
"\
|
||||
# Become God\n\
|
||||
## Upgrade\n\
|
||||
@@ -100,7 +100,7 @@ Rule everything\n\n"))))
|
||||
")))
|
||||
(should
|
||||
(equal
|
||||
(khoj--extract-entries-as-org json-response-from-khoj-backend user-query)
|
||||
(khoj--extract-entries-as-org json-response-from-khoj-backend user-query nil)
|
||||
"\
|
||||
* Become God\n\
|
||||
** Upgrade\n\
|
||||
|
||||
Reference in New Issue
Block a user