thiagowfx's avatar

¬ just serendipity 🍀 (not just serendipity)

Logseq: list all pages of a tag

• 88 words • 1 min • updated

⚠️ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.

Problem statement: Given a couple of pages in Logseq tagged with a given content tag:

tags:: content

…dynamically list all of them.

We can do so with the following logseq query1:

markdown
#+BEGIN_QUERY
{
  :title "Ideas 💡 (->)"
  :query (property :tags "idea")
}
#+END_QUERY

This is a static query, not meant to be changed.

Alternatively it’s possible to create a live query, which allows one to tweak it on-the-fly:

markdown
{{query (property :tags "idea")}}

  1. The query syntax is somewhat a blend of orgmode + emacs lisp from emacs. ↩︎