mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
enhance(ux): improve slash commands sorting for the priority items
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user