Explorer is a plugin for SilverBullet that provides a file/folder explorer. It supports custom ordering within folders, drag and drop reordering and moving, folder and page emojis and icons and draggable panel resizing. You can also easily customise the look through styles, CSS variables are provided for everything.
Find a file
Huw Roberts a5aea54ae9 fix: sequence mobile navigation syscalls to avoid IDB race
clientStore.set must complete before hidePanel tears down the iframe,
otherwise the IndexedDB transaction fails on mobile Safari.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 08:25:13 +00:00
assets fix: sequence mobile navigation syscalls to avoid IDB race 2026-03-05 08:25:13 +00:00
docs/plans feat: mobile drawer overlay with slide animation and backdrop 2026-03-03 20:55:36 +00:00
scripts feat: add Phosphor Icons tab to picker, rename to explorer 2026-03-02 21:37:24 +00:00
.gitignore refactor: rename all tv- class prefixes to explorer-, add config-driven styling 2026-03-02 22:44:57 +00:00
CLAUDE.md refactor: rename all tv- class prefixes to explorer-, add config-driven styling 2026-03-02 22:44:57 +00:00
config.ts feat: current page dot, indent guides, config-driven styling refinements 2026-03-02 23:02:06 +00:00
deno.json feat: add Phosphor Icons tab to picker, rename to explorer 2026-03-02 21:37:24 +00:00
explorer.plug.yaml feat: add Phosphor Icons tab to picker, rename to explorer 2026-03-02 21:37:24 +00:00
explorer.ts refactor: rename all tv- class prefixes to explorer-, add config-driven styling 2026-03-02 22:44:57 +00:00
README.md refactor: rename all tv- class prefixes to explorer-, add config-driven styling 2026-03-02 22:44:57 +00:00
sort.ts Per-folder custom ordering + cross-folder drag-to-move 2026-03-02 10:04:52 +00:00
sort_test.ts Per-folder custom ordering + cross-folder drag-to-move 2026-03-02 10:04:52 +00:00
state.ts feat: add Phosphor Icons tab to picker, rename to explorer 2026-03-02 21:37:24 +00:00
tree.ts Per-folder custom ordering + cross-folder drag-to-move 2026-03-02 10:04:52 +00:00
tree_test.ts Merge folder+page duplicates and refine click targets 2026-03-02 08:39:41 +00:00

Explorer

A file/folder explorer plugin for SilverBullet.

Custom ordering within folders, drag-and-drop reordering and moving, emoji and Phosphor icon support for pages and folders, and draggable panel resizing. Fully styleable via CSS variables.

Install

Add to your PLUGS.md:

- github:wuhhh/silverbullet-explorer/explorer.plug.js

Then run the Plugs: Update command.

Config

Add to your CONFIG page:

config.set("explorer", {
  position = "lhs",          -- "lhs" (default) or "rhs"
  exclude = {"^_", "^Library/"},  -- regex patterns to hide
})

Toolbar button

Add a toggle button to the top toolbar:

actionButton.define {
  icon = "sidebar",
  description = "Toggle Explorer",
  run = function()
    editor.invokeCommand("Explorer: Toggle")
  end
}

Usage

Command Shortcut
Explorer: Toggle Cmd-Alt-B / Ctrl-Alt-B
Explorer: Show
Explorer: Hide
  • Click a page to navigate, a folder to expand/collapse
  • Click an icon to open the emoji/icon picker
  • Right-click for context menu (rename, delete, set icon, reset order)
  • Drag items to reorder within a folder or move between folders
  • Drag the panel edge to resize

Styling

The explorer runs in an iframe, so STYLES.md variables won't reach it. Instead, set styles directly in your explorer config:

config.set("explorer", {
  position = "lhs",
  exclude = {"^_", "^Library/"},
  styles = {
    bg = "#232136",
    text = "#c4c2d6",
    ["text-muted"] = "#6e6a86",
    accent = "#3e8fb0",
    hover = "#2a283e",
    border = "#393552",
    ["icon-file"] = "#6e6a86",
    ["icon-folder"] = "#9ccfd8",
    font = "'Lilex', monospace",
    ["font-size"] = "0.9375rem",
  },
})
Key Default Description
bg Panel background Panel background color
text Root text color Primary text color
text-muted Meta subtle color Secondary text, toggle arrows
accent UI accent color Active tabs, drag indicators, focus rings
hover rgba(128,128,128,0.15) Hover/selection background
border Panel border color Borders and dividers
icon-file Same as text-muted File icon tint
icon-folder Same as text-muted Folder icon tint
font Editor font Font family
font-size Editor font size Font size