Document Explorer for Silverbullet

Just tried this again and loving it! Great job @Mr.Red !

1 Like

I still need to theme it but loving it as well. Thank you for spending the time authoring it.

1 Like

For theme-ing check out this post. It’s done in 2min :wink:

This is amazing, and solves some of the shortcomings I had for Silverbullet that I was planning to fix for me with regards to breadcrumb navigation and other things.

One thing that I am unable to figure out is how to make the document explorer work well on mobile.

On my desktop/tablet, I have enough width to have it docked to the left side at all times to make navigation easy. If I navigate to a new page, I want it kept open.

On mobile, my width is not enough to keep it expanded all times. When I navigate to a new page, the document explorar is above the document, and thus hiding the content. I have to manually close or hide the explorer.

I tired setting recoverAfterRefresh = false, but this then hides the explorer after navigation for both desktop and mobile (obviusly). Would there be an option, that if viewport width is mobile, the after navigation the explorer automatically hides (as in collapes, not close)?

The Document explorer uses my other library as dependency to make the Sidebar resizable & dockable and floating and many more.

Here is the config section of my AdvancedPanelControl Library:

I think what you are looking for is the “mode = dock” option

config.set("AdvancedPanelControl", {
  mode = "auto",  -- "auto" | "overlay" | "dock"
  gestures = true,  -- true (enabled), false (disabled)
  minWidth = "300", -- min Width Constraints for LHS and RHS
  maxWidth = "1000", -- max Width Constraints for LHS and RHS
  minHeight = "100", -- min Height Constraints for BHS
  maxHeight = "500", -- max Height Constraints for BHS
})

If you want you can dettach the sidepanel, and use the Document explorer as a floating window, this is also a good way to use it on mobile. like This:

This way 65% of your page is still visible. And also document explorer is still usable.

Feel free to checkout my Advanced Panel Controls - e.g. Resizing Side Panels (LHS, RHS, BHS) using your mouse library for more options and features.