Skip to content

Instantly share code, notes, and snippets.

@JasperGeh
Last active November 10, 2020 20:50
Show Gist options
  • Save JasperGeh/a211ef0fac568e5ed166ceae17499138 to your computer and use it in GitHub Desktop.
Save JasperGeh/a211ef0fac568e5ed166ceae17499138 to your computer and use it in GitHub Desktop.
Query with only Page Titles
/* add #min-r directly in front of the query string */
/* Adapted from Matt Goldenberg */
[data-tag="min-r"],
[data-tag="min-r"] + .rm-query .rm-reference-item,
[data-tag="min-r"] + .rm-query .rm-ref-page-view .rm-caret {
display:none !important; } /* hide results */
[data-tag="min-r"] + .rm-query .rm-ref-page-view-title {
margin-left: 12px; font-size: 14pt; font-weight: 600; }
[data-tag="min-r"] + .rm-query .rm-ref-page-view-title:before {
content: "• "; font-weight: 600; } /* modify appearance of title */
[data-tag="min-r"] + .rm-query div.rm-reference-main.rm-query-content > span:nth-child(1) {
display: none; } /* hide "n Results" */
[data-tag="min-r"] + .rm-query div.rm-reference-main.rm-query-content > span:nth-child(2) {
margin-left: 10px; } /* shift Query-sort button to right if the roamjs script is in use */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment