Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
JavaScript 98%
CSS 2%
README.md
Ablaze #
Robin's personal all-purpose Obsidian plugin. Works on desktop and mobile.
It adds an Ablaze panel (right sidebar) with one button per content type — Entity, Reference, Notion, Idea, Project, Blog, Document, Admin, Personal. Clicking a button opens a modal that creates a new note of that type with the right frontmatter (tags, plus type-specific fields for references, blog posts, and personal notes), warns if the file already exists, and opens the new note in a tab.
The panel can be reopened at any time via the ribbon icon or the "Ablaze: Open panel" command.
Layout #
src/main.js— the whole plugin: theAblazeplugin class, the sidebarAblazeView, and the note-creationAblazeModal. Plain JS, no TypeScript; esbuild bundles it (plustemplates.json) into the rootmain.jsthat Obsidian actually loads — imports don't resolve at runtime (there's no Node on mobile), so everything has to end up in that one file.templates.json— the content-type definitions (name, colour, icon, tag, and the id used by Supercharged Links). Shared bysrc/main.jsandgenerate-superstyle.js.generate-superstyle.js— regeneratessupercharged-config.json, the style settings for the Supercharged Links plugin (node generate-superstyle.js). Careful: the icon prefix uses a six-per-em space (U+2006) that looks exactly like a regular space.
Developing #
npm ito install dependencies (just esbuild).npm run watchrebuildsmain.json every change tosrc/main.js.npm run buildproduces the productionmain.js.
Installing #
Copy (or symlink) main.js, styles.css, and manifest.json into
VaultFolder/.obsidian/plugins/ablaze/, then reload Obsidian.
Gotchas learnt the hard way #
- Views must be registered in
onload(), which runs on every app launch.onUserEnable()only runs the one time the plugin is enabled in settings — registering the view there means that after any restart the persisted tab has no view and Obsidian shows "Plugin no longer active. The plugin that created this tab has gone away."