Scratch v0.8.0
What's New
Syntax Highlighting & Mermaid Diagrams
- Code blocks now feature syntax highlighting for 20 languages with a GitHub-inspired color scheme
- Select a language from the dropdown or type it after the opening backticks
- Mermaid diagram blocks render live SVG previews with an Edit/Preview toggle
- Diagrams automatically inherit your app's theme colors
KaTeX Math Support
- Write LaTeX math expressions with full KaTeX rendering
- Use
$$...$$for display-style block equations - Click any rendered expression to edit it in a popup editor
Ollama AI Editing
- Added Ollama as an AI editing provider alongside Claude and Codex
- Run local LLMs for AI-assisted editing without sending data to the cloud
- Select your preferred Ollama model directly from the command palette
Drag-to-Resize Editor Width
- Drag the editor margins to resize the page width in real time
- Your preferred width is saved per session
Save Previewed Notes to Folder
- When you open a note in preview mode (e.g. drag a file in or use "Open With Scratch"), you now have an option to save it to your notes folder
Bug Fixes
- Fixed console window flash on Windows — git and CLI commands no longer briefly show a console window
- Fixed double-window issue on Windows — app no longer opens two windows on startup
- Fixed close window shortcut on Windows —
Ctrl+Wnow correctly closes the window - Fixed hidden filenames — notes starting with
.are now handled correctly - Fixed mise path resolution — improved PATH detection for mise-managed tool installations
- Improved security practices across the codebase
Installation
Download DMG (macOS)
- Download
Scratch_0.8.0_universal.dmgbelow - Open the DMG and drag Scratch to Applications
Homebrew
brew tap erictli/tap
brew install --cask erictli/tap/scratch
Windows
Download Scratch_0.8.0_x64-setup.exe below and run the installer. WebView2 will be downloaded automatically if needed.
Linux
Download Scratch_0.8.0_amd64.AppImage or Scratch_0.8.0_amd64.deb below.
Requirements
- macOS 10.15+ (Universal binary — Intel and Apple Silicon)
- Windows 10/11
- Linux (Ubuntu 22.04+ or equivalent)
Contributors
Thanks to everyone who contributed to this release:
- @eeee0717 — KaTeX math support, hidden filenames fix
- @blksmr — Drag-to-resize editor width
- @DevDengChao — Close window shortcut, double-window fix on Windows
- @cpenned — Security improvements
- @wdonsong — mise path resolution fix