kool-ankit-raj_Alignment/README.md
2026-06-17 12:00:38 +05:30

1.8 KiB

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 < align >text< align >.

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.

🛠 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, 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!