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

Floating sidebar #1166

Open
lutzky opened this issue Nov 23, 2024 · 1 comment
Open

Floating sidebar #1166

lutzky opened this issue Nov 23, 2024 · 1 comment

Comments

@lutzky
Copy link
Contributor

lutzky commented Nov 23, 2024

For long pages, I'd really love a floating panel, similar to how Wikipedia does table-of-contents:

image

This floating TOC has some specific interesting features:

  • Scrolling the main page doesn't scroll away from the TOC
  • TOC can be scrolled separately if it's long enough
  • Not shown if the browser window isn't wide enough
  • (less important:) currently scrolled-to section of main page highlights the corresponding entry in the TOC

Obsidian has this feature too, but it's confusingly called "Outline".

However, I would want a more generic version of this; for instance, I'd like to be able to place Linked Tasks on the sidebar.

This is related to #245, but different (want contents of specific document, not across documents).

This is related to #577, I believe it's the meaty part of lhs/rhs.

@mjf
Copy link

mjf commented Nov 26, 2024

Once speaking about generic solution, I would also like if (optional, opt-in) mode to overflow over the page content ("modal" mode) was supported for all 5 placements with good CSS (margins, padding, min/max width/height etc.) so that we could override it, if needed.

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

No branches or pull requests

2 participants