Browse Source

Fix property completion for namespaced keywords

e.g. logseq.block/route-name
Gabriel Horner 2 years ago
parent
commit
78345ac473
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/search.cljs

+ 2 - 1
src/main/frontend/search.cljs

@@ -186,7 +186,8 @@
      (let [q (clean-str q)
            properties (->> (db-model/get-all-properties)
                            (remove (property/hidden-properties))
-                           (map name))]
+                           ;; Complete full keyword except the ':'
+                           (map #(subs (str %) 1)))]
        (when (seq properties)
          (if (string/blank? q)
            properties