Center Text

pending

by Cameron Blackwell

Center all text in your notes with adjustable width.

Updated 7d ago0BSDDiscovered via Obsidian Unofficial Plugins
View on GitHub

Center Text — Obsidian Plugin

A simple Obsidian plugin that centers all text in your notes and lets you control how wide the text column is.

Features

  • Toggle text centering on and off
  • Slider to control the maximum text width (20–100%)
  • Works in both reading view and live preview
  • Settings persist across restarts

Installation

  1. Copy the plugin folder into your vault at .obsidian/plugins/center-text/
  2. Run npm install then npm run build to compile
  3. In Obsidian go to Settings → Community plugins and enable Center text

Usage

There are three ways to toggle centering:

MethodHow
Ribbon iconSelect the align-center icon in the left sidebar
Command paletteCtrl/Cmd+P → "Toggle"
SettingsSettings → Center text → flip the switch

To adjust the text width, go to Settings → Center text and drag the Maximum text width slider.

Hotkeys

No default hotkeys are set to avoid conflicts. You can assign your own in Settings → Hotkeys by searching for "center":

  • Toggle
  • Increase text width
  • Decrease text width

Development

npm install       # install dependencies
npm run dev       # watch mode — rebuilds on save
npm run build     # one-off production build

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.