-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) { | ||
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 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. data-queue-rem-container-tags~="hide-hierarchies" |
||
display: none; | ||
} | ||
`; | ||
|
||
async function onActivate(plugin: ReactRNPlugin) { | ||
|
@@ -46,6 +54,22 @@ async function onActivate(plugin: ReactRNPlugin) { | |
slots: [], | ||
} | ||
); | ||
await plugin.app.registerPowerup( | ||
"No hierarchy", | ||
"noHierarchy", | ||
"Hierarchy will not appear in rems tagged with this tag.", | ||
{ | ||
slots: [], | ||
} | ||
); | ||
await plugin.app.registerPowerup( | ||
"Delete Hierarchies", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rename to "Hide Hierarchies" |
||
"deleteHierarchies, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing " |
||
"If any hierarchy is tagged with this, no hierarchy will appear on any flashcards below it.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If any Rem is tagged with this... |
||
{ | ||
slots: [], | ||
} | ||
); | ||
|
||
await plugin.app.registerCSS("powerup", CSS); | ||
} | ||
|
There was a problem hiding this comment.
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"