Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete Hierarchies tag + RegisterPowerUp #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eikosa
Copy link
Contributor

@Eikosa Eikosa commented Jan 12, 2023

No description provided.

);
await plugin.app.registerPowerup(
"Delete Hierarchies",
"deleteHierarchies,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing "

}
);
await plugin.app.registerPowerup(
"Delete Hierarchies",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to "Hide Hierarchies"

@@ -27,6 +27,14 @@ const CSS = `
.rn-queue__content:has(.rn-question-rem[data-queue-rem-container-tags~="no-hierarchy"]) .indented-rem:not(.rn-question-rem) > .rn-queue-rem {
display: none;
}

.rn-queue__content:has(.indented-rem[data-queue-rem-container-tags~="delete-hierarchies"]) .indented-rem:not(.rn-question-rem) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data-queue-rem-container-tags~="hide-hierarchies"

margin-left: 0px !important;
}

.rn-queue__content:has(.indented-rem[data-queue-rem-container-tags~="delete-hierarchies"]) .indented-rem:not(.rn-question-rem) > .rn-queue-rem {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data-queue-rem-container-tags~="hide-hierarchies"

await plugin.app.registerPowerup(
"Delete Hierarchies",
"deleteHierarchies,
"If any hierarchy is tagged with this, no hierarchy will appear on any flashcards below it.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If any Rem is tagged with this...

Copy link
Contributor

@bjsi bjsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comments above.
Also:

  • Add a section to the README describing what it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants