Attached: 1 image
I realized only recently that when in #Logseq you place queries in the right sidebar, the current-page variable refers to the current page in the main view!!
So I created a page called "Current page" and placed there some useful queries, like the one that look for mention of the current page in indexes, to realize a convenient UI to browse polyhierarchies.
Still having some trouble. Maybe it would help if I described my use case. I have a page for each employee where I’ll take notes in my 1 on 1 meetings with them. In those meetings I’d like to be able to see any open TODO or WAITING items I have with them. When I saw this post I thought I could create a page called “Current Page Open”. When I open the employee page in the main area and the “Current Page Open” on the right, the right would show me the list of TODO and WAITING that reference that employee. These tasks are typically entered in the Journal with a #employee in the block, and not directly in the employee page.
Still having some trouble. Maybe it would help if I described my use case. I have a page for each employee where I’ll take notes in my 1 on 1 meetings with them. In those meetings I’d like to be able to see any open TODO or WAITING items I have with them. When I saw this post I thought I could create a page called “Current Page Open”. When I open the employee page in the main area and the “Current Page Open” on the right, the right would show me the list of TODO and WAITING that reference that employee. These tasks are typically entered in the Journal with a #employee in the block, and not directly in the employee page.
Does this work in the right sidebar for you? For me it does:
{{query (and <%current page%> (todo todo doing waiting))}}
P.S. delete the word “doing” if you don’t want to see the DOING tasks.
That works!! Thank you so much. I was doing (page <%Current page%>) which was throwing it off. This is a big help to my workflow.
You are welcome!