Skip Navigation
alexl Alex L @programming.dev

Mastodon: @[email protected] / https://pkm.social/@alexl

Posts 3
Comments 3
discuss.logseq.com The contextual sidebar: query current page and organize pages in indexes

This method may help you if: You use Linked References to โ€œqueryโ€ the current page but you would like more powerful filters. You want to organize pages hierarchically and you found that namespaces are not meant for that. Specifically you want a page to be in multiple hierarchies. The idea is t...

The contextual sidebar: query current page and organize pages in indexes
0
Queries in the sidebar can refer to the current 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.

  • Queries in the sidebar can refer to the current page!
  • Assuming you tag the top of an index as [[index]]:

    1. Current page in indexes:

      {{query (and [[index]] <%current page%> (not (page <%current page%>)))}}


    1. Indexes present in the current page:

      {{query (and [[index]] (page <%current page%>))}}


    1. Notes about the current page:

      {{query (and [[Note]] <%current page%>)}}


    1. Current page as "author" of something:

      {{query (property author <%current page%>)}}

  • Queries in the sidebar can refer to the current page!

    pkm.social Alex ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ’› ๐Ÿ‡ท๐Ÿ‡บ (@[email protected])

    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 ...

    Alex ๐Ÿ‡ฎ๐Ÿ‡น ๐Ÿ’› ๐Ÿ‡ท๐Ÿ‡บ (@alexl@pkm.social)
    6
    discuss.logseq.com Graphical explanation of pages, blocks and references

    Imagine the pages as nodes organized on a circle: The [[references]] are links (arrows with a direction). This is a graph/network and it can be displayed in Graph View: Each page has a tree of blocks: The [[references]] are links that actually start from a block and target a page. Ima...

    0