mirror of https://github.com/logseq/logseq
parent
5a4bba1378
commit
9e412168ce
|
@ -1643,7 +1643,7 @@
|
|||
editing-page (and block
|
||||
(when-let [page-id (:db/id (:block/page block))]
|
||||
(:block/name (db/entity page-id))))
|
||||
pages (search/page-search q 100)]
|
||||
pages (search/page-search q)]
|
||||
(if editing-page
|
||||
;; To prevent self references
|
||||
(remove (fn [p] (= (util/page-name-sanity-lc p) editing-page)) pages)
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
(defn page-search
|
||||
"Return a list of page names that match the query"
|
||||
([q]
|
||||
(page-search q 10))
|
||||
(page-search q 500))
|
||||
([q limit]
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(let [q (util/search-normalize q (state/enable-search-remove-accents?))
|
||||
|
|
Loading…
Reference in New Issue