Sal's

Obsidian vs. Logseq task queries

Goal: Display all tasks sorted by priority.

Obsidian, with the quasi-standard Tasks plugin:

not done
sort by priority

Logseq1:

#+BEGIN_QUERY
{
  :query [
    :find (pull ?b [*])
    :where
      [?b :block/marker ?marker]
      [(or (= ?marker "NOW") (= ?marker "LATER"))]
      (not [?b :block/marker "DONE"])
  ]
  :result-transform (fn [result]
                    (sort-by (fn [h]
                        (get h :block/priority "Z")) result))
}
#+END_QUERY

I'm all about flexing my power-user chops, but man...

  1. This is the first iteration of the query that I got working. If there's a simpler way, please let me know and I'll update this.