Просмотр исходного кода

fix: show matched nodes when search input starts with /

Tienson Qin 6 месяцев назад
Родитель
Сommit
3a30d47b19
1 измененных файлов с 3 добавлено и 1 удалено
  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?
                  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?
                  include-slash?
                  [(when-not node-exists?
                  [(when-not node-exists?