README file from
GithubAlignment Plugin for Obsidian
A lightweight and intuitive plugin for Obsidian that allows you to align your text to the Center, Right, or Justify with just a few clicks. This plugin helps you style your notes by wrapping selected text in HTML div containers.
✨ Features
- Context Menu Integration: Right-click any selection to access the "Align" menu.
- Command Palette: Quickly trigger alignment using commands (Center, Right, Justify, or Reset).
- Justify Support: Toggle "Justify" alignment on or off in the plugin settings to keep your menus clean.
- Easy Reset: A "Reset Align" option to instantly remove alignment tags and restore your text.
🚀 How to Use
- Select the text or paragraph you want to align.
- Right-click the selection.
- Choose Align and pick your desired position (Center, Right, or Justify).
- To remove alignment, select Reset Align from the same menu.
⚙️ Settings
- Enable Justify: Toggle this in the settings tab to add "Justify" to your alignment options.
🎨 CSS Classes
The plugin applies the following classes which can be further customized in your snippets:
.align-center.align-right.align-justify
🛠 Installation
Community Plugins (Coming Soon)
Search for "Alignment" in the Obsidian Community Plugins browser once the PR is approved.
Manual Installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Inside your Obsidian vault, go to
.obsidian/plugins/and create a folder namedalignment. - Place the three files inside that folder.
- Go to Settings > Community Plugins and enable Alignment.
[!INFO] Vibe Coded with Gemini ✨
This plugin was built with the help of AI to ensure the code is clean, functional, and ready to help the Obsidian community. I wanted to be honest about the process—helping others is the goal!