silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.61k stars 189 forks source link

Floating sidebar #1166

Open lutzky opened 6 days ago

lutzky commented 6 days ago

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:

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 https://github.com/silverbulletmd/silverbullet/issues/245, but different (want contents of specific document, not across documents).

This is related to https://github.com/silverbulletmd/silverbullet/issues/577, I believe it's the meaty part of lhs/rhs.

mjf commented 3 days ago

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.