enhance(ux): improve slash commands sorting for the priority items

This commit is contained in:
charlie
2025-08-31 12:59:26 +08:00
parent eed6224fcd
commit 760cf625f1

View File

@@ -260,7 +260,7 @@
(defn db-based-priorities
[]
(map (fn [e] (:block/title e))
(map (fn [e] (str "Priority " (:block/title e)))
(db-pu/get-closed-property-values :logseq.property/priority)))
(defn get-priorities
@@ -272,7 +272,8 @@
(db-based-priorities)
(file-based-priorities))
(mapv (fn [item]
(let [command item]
(let [command item
item (string/replace item #"^Priority " "")]
[command
(->priority item)
(str "Set priority to " item)