Skip to content

Commit

Permalink
fix: search remove some edn files
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 6, 2023
1 parent e56b300 commit c1bf1d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/frontend/components/cmdk.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,17 @@
(let [!input (::input state)
!results (::results state)]
(swap! !results assoc-in [group :status] :loading)
(p/let [files (search/file-search @!input 99)
(p/let [files* (search/file-search @!input 99)
files (remove
(fn [f]
(and
f
(string/ends-with? f ".edn")
(or (string/starts-with? f "whiteboards/")
(string/starts-with? f "assets/")
(string/starts-with? f "logseq/version-files")
(contains? #{"logseq/metadata.edn" "logseq/pages-metadata.edn" "logseq/graphs-txid.edn"} f))))
files*)
items (map
(fn [file]
(hash-map :icon "file"
Expand Down

0 comments on commit c1bf1d9

Please sign in to comment.