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
New extensions: side panel and outliner #284
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
can you make an animation almost same to the left sidebar? |
looking forward! |
Thank you! This extionsion is awesome. But I could I scroll in outliner when my table of contents is too long? Because it only show the front part of it. |
@laichunguang1 see #881, not being able to scroll is a bug |
I see, thank you. Hope it will be fixed soon!
…On Sat, Jan 29, 2022 at 8:47 PM Tom ***@***.***> wrote:
@laichunguang1 <https://github.com/laichunguang1> see
notion-enhancer/notion-enhancer#881
<#881>, not being able to
scroll is a bug
—
Reply to this email directly, view it on GitHub
<#284 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APH2F2FC62PHFIP5CGY4J5LUYSKDTANCNFSM4T7EG3GQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
dragonwocky
pushed a commit
that referenced
this pull request
Nov 25, 2022
* upload side panel core * upload outliner extension * add onLoad, onSwitch, and onResize functions to panel extensions * Update panel.js * Add onLock and onUnlock functions to panel extensions * Reordered side panel content loading * change panel switcher font color * fix loading last opened panel * use svg icon files instead of defining them inline * outliner: add full height option
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
outliner
as suggested by #252.
the outliner is a panel extension that displays a table of contents listing the current page's header blocks.
you can navigate to any header by clicking on it on the panel.
side panel
the side panel extension serves as a container for other mods to display some information on a panel.
the extension will only execute if any panel extension is enabled.
creating a panel extension
to create a panel extension, add a
panel
key tomod.js
with either a string or an object value.it is also recommended to add
panel
to the extension's tags.name
.true
to prevent this.example:
panel event functions
your js module should return an object with one or more of these functions:
onLoad()
runs after your html is rendered.onSwitch()
runs when the user switches to another panel extension.onUnlock()
runs when the panel is unlocked.onLock()
runs when the panel is locked.onResize()
runs when the user resizes the panel using the resize handle.