# Advanced Panel Controls - e.g. Resizing Side Panels (LHS, RHS, BHS) using your mouse

**URL:** <https://community.silverbullet.md/t/advanced-panel-controls-e-g-resizing-side-panels-lhs-rhs-bhs-using-your-mouse/3728>\
**Category:** Plugs and Libraries\
**Created:** [January 6, 2026, 3:01pm UTC](https://community.silverbullet.md/t/advanced-panel-controls-e-g-resizing-side-panels-lhs-rhs-bhs-using-your-mouse/3728 "2026-01-06T15:01:47Z")\
**Posts on this page:** 2\
**Page:** 3

<div class="post-metadata">

**Author:** ![howdycat](https://community.silverbullet.md/user_avatar/community.silverbullet.md/howdycat/32/1967_2.png) [@howdycat](https://community.silverbullet.md/u/howdycat)\
**Post date:** [July 10, 2026, 11:08pm UTC](https://community.silverbullet.md/t/advanced-panel-controls-e-g-resizing-side-panels-lhs-rhs-bhs-using-your-mouse/3728/41 "2026-07-10T23:08:54Z")

</div>

I would really like to have the table of contents and mentions in the sidebar. It is ugly, and doesn't have much styling, but I did get mentions to show up on the righthand bar using these tools, and its completely re-sizeable too!

```space-lua
function refresh_custom_sidebar(e)
    local target_page = (e and e.page) or editor.getCurrentPage()
  
    local mentions_widget = widgets.linkedMentions(target_page)
    local mentions_markdown = ""
    if mentions_widget and mentions_widget.markdown then
        mentions_markdown = mentions_widget.markdown
    else
        mentions_markdown = "## Linked Mentions\nNo mentions found for this page."
    end

    local html_body = markdown.markdownToHtml(mentions_markdown)

    editor.showPanel("rhs", 1, html_body)
end

event.listen {
    name = "editor:pageLoaded",
    run = refresh_custom_sidebar
}

command.define {
    name = "Sidebar: Open TOC and Mentions",
    run = function()
        refresh_custom_sidebar()
    end
}

```

---

<div class="post-metadata">

**Author:** ![Mr.Red](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mr.red/32/821_2.png) [@Mr.Red](https://community.silverbullet.md/u/Mr.Red)\
**Post date:** [July 13, 2026, 6:29am UTC](https://community.silverbullet.md/t/advanced-panel-controls-e-g-resizing-side-panels-lhs-rhs-bhs-using-your-mouse/3728/42 "2026-07-13T06:29:00Z")

</div>

I played around a while ago with the [TOC in the Sidepanel](https://community.silverbullet.md/t/table-of-contents-in-sidepanel/3919/3) and got this working:

> <https://github.com/Mr-xRed/silverbullet-libraries/blob/main/TOCInSidePanel.md>

maybe you can build upon that and also get the mentions added.

[Previous page](https://community.silverbullet.md/t/advanced-panel-controls-e-g-resizing-side-panels-lhs-rhs-bhs-using-your-mouse/3728.md?page=2)
