Kaynağa Gözat

fix: show matched nodes when search input starts with /

Tienson Qin 6 ay önce
ebeveyn
işleme
3a30d47b19
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      src/main/frontend/components/cmdk/core.cljs

+ 3 - 1
src/main/frontend/components/cmdk/core.cljs

@@ -137,7 +137,9 @@
                  []
 
                  start-with-slash?
-                 [["Filters" :filters (visible-items :filters)]]
+                 [["Filters" :filters (visible-items :filters)]
+                  ["Current page"   :current-page   (visible-items :current-page)]
+                  ["Nodes"          :nodes         (visible-items :nodes)]]
 
                  include-slash?
                  [(when-not node-exists?