Casecraft
unlistedby Casecraft
Convert pasted text to Capitalized Case while preserving LaTeX and user-defined words.
Casecraft
Convert pasted text to Capitalized Case in Obsidian while preserving LaTeX and user-defined words.
Overview
Casecraft is a self-contained Obsidian plugin that transforms text to Capitalized Case, where the first letter of every word is uppercased and the rest are lowercased. It runs entirely inside Obsidian with no backend, network calls, or API keys.
The transform can run automatically on paste or on demand through a command. LaTeX math and a user-defined list of words are left untouched.
This is a no-build plugin: main.js is plain JavaScript that Obsidian loads directly. There is no TypeScript source, bundler, or npm install step.
Features
- Capitalized Case transform. Uppercases the first letter of each word and lowercases the rest.
- LaTeX preservation. Inline (
$...$) and block ($$...$$) math segments pass through unchanged. - Word exclusions. Words listed in settings are matched exactly and left as written.
- Transform on paste. Converts clipboard text as it is pasted into the editor. Can be toggled off.
- Command for selected text. Run
Casecraft: Capitalize selected textto transform the current selection.
How It Works
Text is split on LaTeX delimiters so math segments are never modified. In the remaining text, each word is matched by its letters and digits, leaving surrounding punctuation in place. A word that matches the exclusion list exactly is kept as written; every other word is converted to Capitalized Case.
Example
Input:
this is a sample heading with API and AI.
the formula is $e^{i\pi} + 1 = 0$.
Output with API and AI excluded:
This Is A Sample Heading With API And AI.
The Formula Is $e^{i\pi} + 1 = 0$.
Configuration
Open Settings → Community plugins → Casecraft to configure:
- Transform on paste. Toggle automatic conversion when pasting. When off, the command remains available.
- Excluded words. One word per line. Matching is exact and case-sensitive, so
AIis preserved whileaiis not.
Settings are persisted to data.json in the plugin folder.
Installation
- Create a
casecraftfolder inside your vault at.obsidian/plugins/casecraft/. - Copy
main.js,manifest.json, andstyles.cssinto that folder. - In Obsidian, go to Settings → Community plugins, reload installed plugins, and enable Casecraft.
No build or install step is required. To iterate, edit main.js directly and reload the plugin (disable and re-enable it, or run Reload app without saving from the command palette).
Project Structure
casecraft/
├── main.js Plugin code (plain JavaScript, loaded directly by Obsidian)
├── manifest.json Obsidian plugin manifest
├── styles.css Plugin styles
└── data.json Saved settings (written by Obsidian)
Compatibility
- Obsidian Desktop
- Obsidian Mobile, subject to plugin API compatibility (
isDesktopOnlyisfalse)
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.