Newbie here. I am trying to come up with a query to put on my right-side bar that list the last N (e.g. 10 or 20) recently accessed pages, ideally ordered by recency (mst recent first) and paginated (showing 5 at a time).
(The Recent Pages on the Left menu does not help in my use case, I need this on the right-side bar)
My 3-day logseq experience and null datalog experience is not helping me on this.
but that approach is based on limiting the timeframe (e.g. pages created in the last X days) which is not what I need. I need the last N pages opened regardless of their access timestamp.
I couldn’t even extract the top-N results from the timestamp-based example above, the below doesn’t work
Thanks for your help. Sorry for my lack of clarity. I meant that Logseq was just treating the block like regular text. It wasn’t processing it as a query.
But now it’s working. The problem was that when I pasted into Logseq, it added an asterisk (*) at the beginning and end of the first and last line. Once I removed those, it works.