Better Sidebar
Workspace file tree, Git status & multi-format live preview/editor for Antigravity 2.0

Overview
Better Sidebar transforms the Antigravity 2.0 Auxiliary Pane into a full multi-format workspace explorer. Users can browse directories, inspect live Git diffs, reference files into chat prompts with one click (@relative/path), edit code or Markdown inline, and render complex scientific or office formats locally without leaving the conversation.
Tech Stack
Key Capabilities
4 Adaptive Split Layouts & Git Sync
Switch between vertical split, horizontal split, tree-only, or preview-only with draggable dividers and full UTF-8 Git status markers.
Offline Markdown, Math & SVG Sandbox
Bundles marked, DOMPurify, and KaTeX (with mhchem) offline, rendering inline/fenced SVGs inside isolated Shadow DOM lightboxes.
Scientific Imaging, PDF & Office Support
Optional Python bridge transcodes 16/32-bit TIFF, EXR/HDR, PSD, camera RAW, paginated PDFs via PyMuPDF, and .docx/.xlsx/.pptx previews.
Engineering & Methodology
- Every read/write endpoint canonicalizes real paths via realpathSync and blocks traversal outside registered workspace roots or sensitive directories.
- Offline-bundled frontend assets ensure Markdown and LaTeX math render reliably with zero external CDN dependencies.
- One-click @relative/path copy streamlines referencing workspace files directly inside AI prompts.
Visual Showcase
Click any figure or screenshot to inspect in full resolution.