Alignment

by kool-ankit-raj
5
4
3
2
1
Score: 35/100

Description

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

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
1
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

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!