Header Adjuster

by Valentin Pelletier
5
4
3
2
1
Score: 59/100

Description

The Header Adjuster plugin streamlines the process of modifying header levels in Markdown documents within Obsidian. It allows users to easily increase or decrease header levels globally or within specific line ranges. With features like modal inputs for customization, default settings for quick adjustments, and a ribbon icon for convenient access, the plugin enhances document formatting efficiency. Users can specify adjustment levels, starting and ending lines, or apply predefined settings for common tasks. Commands for header adjustments are accessible from the command palette, making the plugin user-friendly and versatile.

Reviews

No reviews yet.

Stats

14
stars
2,373
downloads
1
forks
687
days
98
days
98
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
2
total issues
0
open issues
2
closed issues
5
commits

Latest Version

3 months ago

Changelog

README file from

Github

Header Adjuster Plugin for Obsidian

Overview

The Header Adjuster Plugin for Obsidian allows users to easily adjust the levels of headers in their Markdown documents. Users can increase or decrease header levels by a specified number of levels, either for the entire document or within a specified range of lines. The plugin also provides convenient default settings for header adjustments.

Features

  • Increase header levels by a specified number.
  • Decrease header levels by a specified number.
  • Adjust headers within a specified range of lines.
  • Use default settings for header adjustments.
  • Commands accessible from the command palette.
  • Ribbon icon with options for increasing or decreasing header levels.

Installation

  1. Download the plugin files (main.js and manifest.json).
  2. Place the files in your Obsidian vault's .obsidian/plugins/obsidian-header-adjuster directory.
  3. Enable the Header Adjuster Plugin from the Obsidian Settings under the "Community plugins" section.

Usage

Commands

The plugin provides the following commands accessible from the command palette:

  • Increase Header Level: Opens a modal to increase header levels by a specified number of levels.
  • Decrease Header Level: Opens a modal to decrease header levels by a specified number of levels.
  • Increase Header Level (Default): Increases header levels by the default number of levels specified in the settings.
  • Decrease Header Level (Default): Decreases header levels by the default number of levels specified in the settings.

Ribbon Icon

Clicking the ribbon icon opens a context menu with options to:

  • Increase Header Level
  • Decrease Header Level

Modal Input

When using the Increase Header Level or Decrease Header Level commands, a modal will prompt you to:

  1. Enter the number of levels to increase or decrease (or leave blank to use the default setting).
  2. Optionally specify the start line number.
  3. Optionally specify the end line number.

Settings

Access the plugin settings from the Obsidian Settings under the "Header Adjuster" section:

  • Default Increase Level: The default number of levels to increase headers by.
  • Default Decrease Level: The default number of levels to decrease headers by.

Example Usage

Full Document Adjustment

To increase all headers in a document by 2 levels:

  1. Open the command palette (Ctrl+P or Cmd+P).
  2. Select "Increase Header Level".
  3. Enter 2 in the modal and click "Submit".
Range Adjustment

To decrease headers from line 5 to line 20 by 1 level:

  1. Open the command palette (Ctrl+P or Cmd+P).
  2. Select "Decrease Header Level".
  3. Enter 1 in the modal.
  4. Enter 5 for the start line.
  5. Enter 20 for the end line.
  6. Click "Submit".
Using Default Settings

To increase headers using the default setting:

  1. Open the command palette (Ctrl+P or Cmd+P).
  2. Select "Increase Header Level (Default)".

To decrease headers using the default setting:

  1. Open the command palette (Ctrl+P or Cmd+P).
  2. Select "Decrease Header Level (Default)".

Development

For developers interested in contributing to the plugin:

Setup

  1. Clone the repository.
  2. Install dependencies: npm install.
  3. Build the plugin: npm run build.

Code Structure

  • main.ts: Main plugin code including command registration and header adjustment logic.
  • HeaderAdjusterSettingTab: Class for managing plugin settings.
  • LevelInputModal: Class for the modal to input header adjustment details.

Building

After making changes, run npm run build to compile the TypeScript code to JavaScript.

Contributing

Contributions are welcome! Please submit issues and pull requests on the GitHub repository.

License

This plugin is licensed under the MIT License.


This documentation provides an overview of the plugin, installation instructions, usage examples, and development guidelines. Feel free to include additional details or examples as needed.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
AidenLx's Folder Note - folderv Component
4 years ago by AidenLx
Influx
4 years ago by Jens M Gleditsch
An alternative backlinks plugin, which displays relevant and formatted excerpts from notes with linked mentions, based on the position of mentions in the notes' hierarchical structure (bullet level indentation).
Tag Summary
4 years ago by J.D Gauchat
obsidian floating toc
4 years ago by curtgrimes modified by Cuman
Rapid Notes
3 years ago by valteriomon
Pending notes
3 years ago by Ulises Santana
Obsidian plugin for searching links without notes in your vault.
Link Range
3 years ago by Ryan Mellmer
Add ranged link support to Obsidian
oblogger
3 years ago by loftTech
tag explorer and frontmatter logger plugin for obsidian
Automatic Table Of Contents
3 years ago by Johan Satgé
💠 An Obsidian plugin to create a table of contents in a note, that updates itself when the note changes
Multiple Notes Outline
3 years ago by iiz
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Typing
3 years ago by Nikita Konodyuk
Programmatic customizations for groups of notes
Keyword Highlighter
2 years ago by Marcel Goldammer
Automatically highlight specified keywords within your Obsidian notes for enhanced visibility and quick reference.
Subdivider
2 years ago by Tricster
Subdivider converts your notes into nested folders, automatically creating separate files for each subheading.
Mxmind Mindmap
2 years ago by mxmind
mxmind for obsidian plugin
Cards View
2 years ago by Maud Royer
Plugin for Obsidian.md. Displays a card view of your notes.
SystemSculpt AI
2 years ago by SystemSculpt.com
Enhance your Obsidian App experience with AI-powered tools for note-taking, task management, and much, MUCH more.
Header Counter
2 years ago by Nancy Lee
Line Arrange
2 years ago by Chitwan Singh
Obsidian Plugin For Arranging Lines.
Note 2 Tag Generator
2 years ago by Augustin
Daily Note Collector
2 years ago by Adar Butel
An Obsidian plugin that adds links to new notes to your daily note.
Workbench
6 years ago by ryanjamurphy
A plugin to help you collect working materials.
Link indexer
5 years ago by Yuliya Bagriy
Footlinks
5 years ago by Daha
Obsidian plugin that extracts urls from the main text to footer, offering a better reading/editing experience.
Page Heading From Links
5 years ago by Mark Beattie
Obsidian plugin to populate page headings
Carry-Forward
5 years ago by Jacob Levernier
An Obsidian Notes plugin for generating and copying block IDs, and copying lines with a link to the copied line
Title Serial Number
4 years ago by Domenic
This is an obsidian plugin, and it adds serial numbers to your markdown title.
Header navigation
a year ago by readwithai
An obsidian plugin to navigate around and toggle folding on headers
WonderBox
a year ago by Christian HUMBERT
Link Maintainer
a year ago by wenlzhang
An Obsidian plugin that helps you maintain note links when splitting or reorganizing notes.
Smart Link Alias
a year ago by Victor Perez-Cano
Inbox Organiser
a year ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Atomizer
a year ago by Zac Bagley
An AI-Driven Obsidian plugin designed to turn lengthy text into insightful atomic notes. Perfect for turning source notes into ideas in a Zettelkasten workflow.
Dataview Autocompletion
a year ago by Daniel Bauer
Note ID
a year ago by Dominik Mayer
Displays notes by their ID, enabling structured sequences for manuscripts or a Zettelkasten ("Folgezettel")
Automatic Linker
a year ago by Kodai Nakamura
Thecap cv generator
a year ago by Thecap
Multiple Daily Notes
a year ago by Vab Kapoor
Obsidian plugin for adding multiple daily notes, with some extra configurations too.
LawList: Custom List Styles
a year ago by Willem Schlieter
A plugin for custom list styles in Obsidian.md.
Format Automatically with Prettier
a year ago by Dylan Armstrong
Format with Prettier using built-in settings for Obsidian
JIRA links shortener
a year ago by Ruslans Platonovs
Obsidian JIRA links shortener plugin
Simple Tab Indent
a year ago by Thiago Frias
NoteMover shortcut
a year ago by Lars Bücker
Quickly and easily move notes to predefined folders. Perfect for organizing your notes.
Template Folder
10 months ago by LucasOe
Obsidian plugin to move notes to a folder when applying a template.
Discrete
9 months ago by shkarlsson
Note Companion AI
8 months ago by Benjamin Ashgan Shafii
Note Companion: AI assistant for Obsidian that goes beyond just a chat. (prev File Organizer 2000)
Negative Heading
2 months ago by Ashan Devine
Render Discord-style "-#" lines as compact headings in reading view and the editor.