mirror of https://github.com/logseq/logseq
Merge remote-tracking branch 'upstream/master' into whiteboards
commit
2432913ecd
|
@ -1565,7 +1565,7 @@
|
||||||
editing-page (and block
|
editing-page (and block
|
||||||
(when-let [page-id (:db/id (:block/page block))]
|
(when-let [page-id (:db/id (:block/page block))]
|
||||||
(:block/name (db/entity page-id))))
|
(:block/name (db/entity page-id))))
|
||||||
pages (search/page-search q 20)]
|
pages (search/page-search q 100)]
|
||||||
(if editing-page
|
(if editing-page
|
||||||
;; To prevent self references
|
;; To prevent self references
|
||||||
(remove (fn [p] (= (util/page-name-sanity-lc p) editing-page)) pages)
|
(remove (fn [p] (= (util/page-name-sanity-lc p) editing-page)) pages)
|
||||||
|
|
|
@ -59,9 +59,6 @@
|
||||||
(clj->js {:keys ["name"]
|
(clj->js {:keys ["name"]
|
||||||
:shouldSort true
|
:shouldSort true
|
||||||
:tokenize true
|
:tokenize true
|
||||||
:minMatchCharLength 1
|
:minMatchCharLength 1}))]
|
||||||
:distance 1000
|
|
||||||
:threshold 0.35
|
|
||||||
}))]
|
|
||||||
(swap! indices assoc-in [repo :pages] indice)
|
(swap! indices assoc-in [repo :pages] indice)
|
||||||
indice)))
|
indice)))
|
||||||
|
|
Loading…
Reference in New Issue