Alignment

approved

by kool-ankit-raj

This plugin has not been manually reviewed by Obsidian staff. Align Text to Center or Right.

↓ 88 downloadsUpdated 25d agoMIT

Alignment 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

  1. Select the text or paragraph you want to align.
  2. Right-click the selection.
  3. Choose Align and pick your desired position (Center, Right, or Justify).
  4. 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

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Inside your Obsidian vault, go to .obsidian/plugins/ and create a folder named alignment.
  3. Place the three files inside that folder.
  4. 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!

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.