RoamJS / query-builder

https://roamjs.com/extensions/query-builder
MIT License
20 stars 5 forks source link

Show page title for a block (from selections?) and group blocks by page #231

Open power833 opened 9 months ago

power833 commented 9 months ago

Hi,

I have two questions:

1.) Is there a way to pull the page title a block belongs to? (Probably it should go in the selections).

2.) Is there a way to group blocks in the results by page? (the containing pages)

Thanks

mdroidian commented 9 months ago

Hey @power833

1) yes there is a way to get the page.

add a condition: node is in page page

then add a selection for the page variable Page node:page

2) Unfortunately, grouping is not supported.

power833 commented 9 months ago

Thanks, worked.

power833 commented 9 months ago

I am reopening this, regarding the "grouping" by page (which exists in the main Roam search). If this is a feature you think can be implemented, please leave it opened, otherwise (not fully sure how it fits into this extension's philosophy) you may close it.

Thanks