RoamJS / query-builder

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

Return only "text" via selection #274

Open mdroidian opened 2 months ago

mdroidian commented 2 months ago

Requested from Christian K. via slack

Use Case

Proposed Solution

Unsure how we'd handle block references ((9EzwbaEJs)), especially when they contain [[pages]], #tags, or {{buttons}}

Workaround

For now, users can remove the undesired parts in embed view via css:

/* targeting Query Builder results table */
/* only from column titled "text" */

/* hide all [[links]] and #tags */
.roamjs-query-results-view td[data-column-title="text"] .rm-page-ref__brackets,
.roamjs-query-results-view td[data-column-title="text"] .rm-page-ref
{
    display:none;
}

/* hide checkboxes */
.roamjs-query-results-view td[data-column-title="text"] .check-container
{
    display:none;
}