Heading Toggler

by Lord Turmoil
5
4
3
2
1
Score: 52/100

Description

Category: Note Enhancements

The Heading Toggler plugin streamlines the process of adjusting heading levels in Obsidian notes. With customizable hotkeys, users can effortlessly increase or decrease heading levels or toggle text between normal and heading formats (H1-H6). This eliminates the need to manually add or remove # characters, enhancing productivity and reducing errors when formatting notes. The plugin is particularly useful for users who frequently organize their notes using headings and want a quicker way to manage their structure.

Reviews

No reviews yet.

Stats

3
stars
709
downloads
0
forks
646
days
621
days
648
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
13
commits

Latest Version

2 years ago

Changelog

Version 1.1.2

Changes

  • Will retain cursor position when toggling heading level

README file from

Github

Heading Toggler for Obsidian

Copyright © Tony's Studio 2024


Overview

This plugin allows you to toggle heading levels quickly. You can bind hotkeys to increase or decrease heading levels without typing those # characters. 😀

Features

  • Increase heading level: normal text to H6, H6 to H5 ... H2 to H1.
  • Decrease heading level: H1 to H2, ... H6 to normal text.
  • Toggle heading level to H1...6: Toggle between heading and normal text.

You can bind these commands with your favorite hotkeys in the options. 😉

Installation

From Community Plugins

  1. Go to the "Community plugins" section in the Options dialog.
  2. Browse for "Heading Toggler" and click "Install" when you find it.
  3. Go back to "Installed plugins" to enable it.

From GitHub Release

  1. Go to the release page of heading-toggler-obsidian.
  2. Download the plugin files (main.js and manifest.json).
  3. Place them in the plugin folder in the Obsidian vault, e.g. .obsidian/plugins/heading-toggler. You may need to create a new directory.
  4. Go to "Community plugins" > "Installed plugins" to enable it.

Limitations

By default, Obsidian doesn't support nested headings, which means only the H1 in the following Markdown will be rendered as expected.

# Normal H1

- ## H2 in list

> ### H3 in quotes

Therefore, this plugin won't apply nested headings and takes listing and quotes as normal text as below.

# Normal H1

## - H2 in list

### > H3 in quotes

Contributing

Improvement of this plugin is welcomed. 😋

Project Setup

Clone the repository: heading-toggler-obsidian. If you don't want to develop it inside the Obsidian vault, you can create a link to the repository.

For Windows users, you can use mklink.

mklink /D heading-toggler path\to\your\repository

For Linux users, you can use ln.

ln -s heading-toggler path/to/your/repository

Development

This plugin is quite simple, all logics are in main.ts.

  • npm run dev: build the plugin for development.
  • npm run build: build the plugin for production.
  • npm run version: update version.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Admonition
5 years ago by Jeremy Valentine
Adds admonition block-styled content to Obsidian.md
Advanced Tables
6 years ago by Tony Grosinger
Improved table navigation, formatting, and manipulation in Obsidian.md
Auto pair chinese symbol
5 years ago by renmu123
中文符号自动补齐
Auto-\displaystyle Inline Math
2 years ago by Ryota Ushio
An Obsidian.md plugin to automatically make all inline maths \displaystyle.
Autocorrect Formatter
2 years ago by b-yp
A plugin running on Obsidian that utilizes autocorrect to format Markdown content.
Better Heading Hierarchy
10 months ago by rogerfan48
a Obsidian plugin that add guide lines to make the hierarchy of Markdown headings more visually clear
Better Order List
2 years ago by Boninall
BlindFold
3 years ago by my99n
blindfold hides away the unwants
Blockquote Levels
4 years ago by Carlo Zottmann
A plugin for Obsidian (https://obsidian.md) that adds commands for increasing/decreasing the blockquote level of the current line or selection(s).
Bottom to Top
a year ago by Henry Gustafson
Callout Integrator
3 years ago by
A plugin for Obsidian to allow the integration of long blocks of text into callouts.
Callout Toggles
2 years ago by Aly Thobani
An Obsidian plugin to quickly add, change, or remove callout wrappers in your notes.
Canvas Format Brush
a year ago by wenlzhang
An Obsidian plugin that allows you to copy and paste formatting attributes (size and color) between canvas elements, similar to the format painter in Word.
Change Case
3 years ago by David Brockman
Plugin to let you change the case (camelCase, snake_case, etc) of the current selection.
Chat clips
a year ago by sleepingraven
Record chat in ordinary markdown list.
cMenu
5 years ago by Chetachi
An Obsidian.md plugin that adds a minimal text editor modal for a smoother writing/editing experience ✍🏽.
Code block from selection
5 years ago by Dmitry Savosh
Obsidian plugin. Adds code block for the selected text.
Discord Timestamps
a year ago by Erika Gozar
Displays discord timestamps in read mode as they would appear in Discord.
Edit mode switch
2 years ago by Mara-Li
Add a button in file header to switch between LP & Source while editing
Extended Markdown Syntax
a year ago by Kotaindah55
Extend your Markdown syntax using delimiters instead of HTML tags, such as underlining, superscript, subscript, highlighting, and spoiler.
Filename Emoji Remover
4 years ago by Yüksel Tolun
A simple plugin for the note taking app Obsidian that will rename your files to remove emojis in their names.
Floating Headings
3 months ago by k0src
Displays a floating, collapsible outline of a note's headings on the right side of the editor. Expands on hover, click to navigate.
Format Hotkeys
5 years ago by Ansel Santosa
Google Docs style formatting hotkeys for Obsidian
Formatto
2 years ago by Deca
Simple, fast, and easy-to-use Obsidian Markdown formatter.
Go To Heading
3 years ago by join
Quickly navigate between your document's headings in Obsidian
Heading Decorator
a year ago by dragonish
Implement displaying specific content around headings based on their levels.
Heading Helper
10 months ago by Siddhartha Khuntia
Heading Level Indent
3 years ago by svonjoi
obsidian plugin for hierarchical structuration of document content based on heading levels
Heading Shifter
4 years ago by kasahala
Easily Shift and Change markdown headings.
Headings in Explorer
2 years ago by Patrick Chiang
This Obsidian plugin makes headings first class concepts in the file explorer and consolidates navigation to a single panel.
heti
2 years ago by Moeyua
Image Helper
2 years ago by Chongmyung Park
Context menu to convert a image to another format in reading view in Obsidian.md
Image Size
a year ago by Jie Zhang
Set the default size for pasted images.
Inline spoilers
2 years ago by logonoff
Adds Discord-like syntax for inline spoilers.
Insert Heading Link
4 years ago by Signynt
Add a Link to a Heading.
Interlinear Glossing
3 years ago by Mijyuoon
An Obsidian plugin for interlinear glosses used in linguistics texts.
Jisage -Japanese Indentation-
a year ago by Telehakke
Obsidian plugin.
Keyboard Formatter
8 months ago by Lauloque
Formats keyboard text (kbd) in your Obsidian notes quickly and consistently.
Lapel
4 years ago by Liam Cain
🤵 Dress up your editor. Obsidian plugin to show the heading level in the gutter.
LaTeX to unicode converter
3 years ago by fjdu
Convert LaTeX commands into unicode sequences
Linter
5 years ago by Victor Tao
An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
Markdown Formatting Assistant
5 years ago by Reocin
This Plugin provides a simple WYSIWYG Editor for Markdown and in addition a command line interface. The command line interface facilitate a faster workflow.
Multi-line Formatting
5 years ago by nmady
Format Obsidian text over an entire selection, even if that selection has paragraph breaks in the middle!
Negative Heading
a month ago by Ashan Devine
Render Discord-style "-#" lines as compact headings in reading view and the editor.
Note Placeholder
a year ago by XZSt4nce
Replaces text of note link to placeholder in view mode.
Number Headings
5 years ago by Kevin Albrecht
Automatically number headings in a document in Obsidian
ObsidianTweaks
4 years ago by Jeppe Klitgaard
A plugin that implements a number of tweaks that should've been native to Obsidian.
Ordered List Style
3 years ago by erykwalder
Paste Mode
5 years ago by Jacob Levernier
Obsidian Notes plugin for pasting text and blockquotes to the cursor's current level of indentation.
Paste Reformatter
a year ago by Keath Milligan
A plugin for Obsidian that reformats pasted HTML and plain text content, giving you precise control over how content is transformed when pasted into your notes.
Remove Newlines
2 years ago by Elias Jaffe
A plugin for Obsidian.md which removes newlines and blank lines from selected or pasted text.
Short Internal Links to Headings
3 years ago by Scott Moore
An Obsidian plugin to display short internal links.
Smart Typography
5 years ago by mgmeyers
Converts quotes to curly quotes, dashes to em dashes, and periods to ellipses
Sticky Headings
2 years ago by Shen Shen
SupSub
3 years ago by Wjgoarxiv
::SupSub enables wrapping selected text with `<sup>` or `<sub>` tags::
Table Extended
5 years ago by AidenLx
Extend basic table in Obsidian with MultiMarkdown table syntax
Text Conversions
3 years ago by Juan D Frias
Text conversions for Obsidian
Theme toggle
a year ago by @gapmiss
Obsidian.md plugin … adds a ribbon icon and command for toggling between dark & light theme modes.
Toggle Case
3 years ago by automattech
Obsidian plugin to toggle between `lowercase` `UPPERCASE` and `Title Case`
Vim Marker Sharpener
a year ago by Artem Dvoryadkin
Text formatting commands in Vim mode. Supports applying styles (bold, italic, etc.). Works correctly in visual mode with selected text.
Wrap with shortcuts
4 years ago by Manic Chuang
Wrap selected text in custom tags with shortcuts.
Writing
3 years ago by johackim
Write and format your next book directly from Obsidian
Zoom
5 years ago by Viacheslav Slinko
复制图文 (Copy Image Text)
a year ago by msgk
obsidian插件,复制笔记内容(包括文本和图片)到剪贴板