Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ For more information, check out our docs at [https://github.com/RoamJS/query-bui
- [Randomization](https://github.com/RoamJS/query-builder/blob/main/docs/roam-queries.md#randomization)
- [Context](https://github.com/RoamJS/query-builder/blob/main/docs/roam-queries.md#context)
- [Aliases](https://github.com/RoamJS/query-builder/blob/main/docs/roam-queries.md#aliases)
- [Sortable Linked References](https://github.com/RoamJS/query-builder/blob/main/docs/sortable-linked-refs.md)

## Nomenclature

Expand Down
18 changes: 0 additions & 18 deletions docs/sortable-linked-refs.md

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-builder",
"version": "1.35.0",
"version": "1.36.0",
"description": "Introduces new user interfaces for building queries in Roam",
"main": "./build/main.js",
"author": {
Expand Down
18 changes: 2 additions & 16 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import extractRef from "roamjs-components/util/extractRef";
import type { InputTextNode, PullBlock } from "roamjs-components/types/native";
import QueryPagesPanel, { getQueryPages } from "./components/QueryPagesPanel";
import runQuery from "./utils/runQuery";
import runSortReferences from "./utils/runSortReferences";

import updateBlock from "roamjs-components/writes/updateBlock";
import getChildrenLengthByPageUid from "roamjs-components/queries/getChildrenLengthByPageUid";
import createBlock from "roamjs-components/writes/createBlock";
Expand Down Expand Up @@ -339,16 +339,7 @@ svg.rs-svg-container {
description:
"The default sorting all native queries in your graph should use",
},
{
id: "sort-references",
name: "Sortable Linked References",
action: {
type: "switch",
onChange: (e) => toggleSortReferences(e.target.checked),
},
description:
"Whether or not to enable sorting on the linked references section",
},

{
id: "show-page-metadata",
name: "Show Page Metadata",
Expand Down Expand Up @@ -424,11 +415,6 @@ svg.rs-svg-container {
toggleDiscourseGraphsMode(true);
}

const toggleSortReferences = runSortReferences();
if (!!extensionAPI.settings.get("sort-references")) {
toggleSortReferences(true);
}

const globalRefs: QBGlobalRefs = {
clearOnClick: ({ parentUid, text }) => {
const order = getChildrenLengthByPageUid(parentUid);
Expand Down
Loading