Easily Shift and Change markdown headings.

Overview

Obsidian Heading Shifter

github workflow github release "Buy Me A Coffee"

Easily Shift and Change markdown headings.

Demo

Demo

Why use this plugin

Obsidian links numerous markdown files to form knowledge. Daily rearrangement of links is important to create a good knowledge base.

The following situations often occur in this process.

  1. Cut out A part of File 1 to an independent File 2 and linked.
    • Heading3 in file 1 is changed to Heading1 in file 2
  2. Incorporated the content of File 3 into a part of File 4
    • Heading2 in file 3 is changed to Heading4 in file 4

With this plugin, you can change the Heading size (the number of #) in a batch instead of changing it manually.

How to install

From within Obsidian

You can activate this plugin within Obsidian by doing the following:

  • Open Settings > Community plugin
  • Make sure Restricted mode is off
  • Click Browse community plugins
  • Search for Heading Shifter
  • Click Install -> Enable

Manual installation

Download directory(includes main.js, manifest.json, styles.css) from the latest release and put them into <vault>/.obsidian/plugins/ folder.

Features

Applying Heading 1

Applying Heading Demo

Commands

Command Description Hotkey
Apply Heading 0 Change Current line to no heading. -
Apply Heading 1~6 Change Current line to heading 1~6. -

It is useful to assign a hotkey such as Ctrl + 0 ~ 6

Headings Shift

Headings Shift Demo

Settings

Setting Description Value(Default)
Lower limit of Heading The lower Heading Size that will be decreased by the Heading Shift 0~6(1)
Enable override tab behavior If true, Tab execute "Increase Headings" and Shift-Tab execute "Decrease Headings" 2 boolean(false)

Commands

Command Description Hotkey
Increase Headings Increase heading of selected lines(with heading)
Decrease Headings Decrease heading of selected lines(with heading)

It is useful to assign a hotkey such as Ctrl + Shift + Left/Right

  • Increase Headings is ineffective if selected lines contains less than Lower limit of Heading.
  • Decrease Headings is ineffective if selected lines contains more than heading 6.

Loadmap

Nothing specific at this time.

Contribute

Feel free to report issues or request features.

Footnotes

  1. All of Applying Heading commands work when only one line is selected.

  2. May conflict with other plugin behavior

You might also like...

Get, change, and otherwise interact with your notes in Obsidian via a REST API.

Local REST API for Obsidian See our interactive docs: https://coddingtonbear.github.io/obsidian-local-rest-api/ Have you ever needed to automate inter

Dec 22, 2022

Place your Bob-ombs so they surround opposing Bob-ombs. Captured Bob-ombs change color and join your team. The player uith the most Bob-ombs at the end is the Hinner.

Place your Bob-ombs so they surround opposing Bob-ombs. Captured Bob-ombs change color and join your team. The player uith the most Bob-ombs at the end is the Hinner.

Bob-omb Reverse with Arduino MKR 1010 Wifi 🐦 @cbarange & @j-peguet | 5th January 2022 Intro Docs MQTT with Arduino 👉 https://docs.arduino.cc/tutoria

Jan 13, 2022

This project is a To-do list app which users can store and edit their Todo Tasks. Users can also change the order of their todo

Project This project is about a todo app bundling using webpack Additional description about the project and its features. Built With HTML CSS Javascr

Jun 17, 2022

Change font for your notes and code.

Change font for your notes and code.

Google fonts for Logseq A Logseq plugin to use Google Fonts for rendering. Google fonts have more than 1400+ fonts which can be used in Logseq now. Yo

Dec 12, 2022

Run a command, watch the filesystem, stop the process on file change and then run the command again...

hubmon Run a command, watch the filesystem, stop the process on file change and then run the command again... Install You can install this command lin

Jul 30, 2022

Change the color of an image to a specific color you have in mind.

image-recolor Run it: https://image-recolor.vercel.app/ image.recolor.mov Acknowledgments Daniel Büchele for the algorithm: https://twitter.com/daniel

Oct 25, 2022

Refresh - Simple browser reload on file change middleware for your Deno web applications.

refresh Simple browser reload on file change middleware for your Deno web applications. Usage To use refresh middleware, just add a few extra lines to

Dec 19, 2022

Favicon.js - A simple javascript library to change the page favicon.

favicon.js A simple javascript library to change the page favicon. How to use To use favicon.js, include it in your head element: head script src

Dec 26, 2021

Navigation-Menu-Javascript - A simple Navbar navigation using vanilla javascript, to change links to the active link when clicked.

Navigation-Menu-Javascript - A simple Navbar navigation using vanilla javascript, to change links to the active link when clicked.

Navigation-Menu-Javascript A simple Navbar navigation using vanilla javascript, to change links to the active link when clicked. Desktop view Mobile v

Feb 16, 2021
Comments
  • Shift headings on tab/shift+tab when headings are selected?

    Shift headings on tab/shift+tab when headings are selected?

    Would you consider adding this as an option?

    I think the ergonomics are sensible-ish to invoke Increase Headings or Decrease Headings when hitting tab or shift+tab respectively, in the case that the user has a text selection which includes headings. Probably makes sense as an option in case that collides with others' workflows. Open to any thoughts or discussion and possibly willing to just write the feature

    enhancement 
    opened by vsinha 5
  • Offtopic - Maybe another plugin?

    Offtopic - Maybe another plugin?

    Hi, I didn't know where to propose it, but when I saw your plugin I thought of something that I've been waiting for a long time and nobody does.

    I think it would be very interesting to do something similar with the images, there is no easy way to reduce or increase the size of the images in the document in a dynamic way.

    I usually use the replace option to change all images at once:

    for this: 300

    But if you need to adjust only a few specific images it is a slow and manual process.

    I think some part of your code for heading shifter could be used to get something similar but with images.

    opened by javiavid 2
  • feature request: put cursor at end of line when applying heading on blank line

    feature request: put cursor at end of line when applying heading on blank line

    Currently, applying heading on a blank line would generate a line like <cursor>###, would like to propose putting the cursor at the end like ### <cursor>.

    It would be more intuitive for people who apply heading first and then type the title.

    opened by ykpre 1
Releases(1.3.1)
Owner
kasahala
Suffering to die easy.
kasahala
An obsidian plugin for uploading local images embedded in markdown to remote store and export markdown for publishing to static site.

Obsidian Publish This plugin cloud upload all local images embedded in markdown to specified remote image store (support imgur only, currently) and ex

Addo.Zhang 7 Dec 13, 2022
A plugin for the Obsidian markdown note application, adding functionality to render markdown documents with multiple columns of text.

Multi-Column Markdown Take your boring markdown document and add some columns to it! With Multi Column Markdown rather than limiting your document lay

Cameron Robinson 91 Jan 2, 2023
A markdown-it plugin that process images through the eleventy-img plugin. Can be used in any projects that uses markdown-it.

markdown-it-eleventy-img A markdown-it plugin that process images through the eleventy-img plugin. Can be used in any projects that use markdown-it. F

null 25 Dec 20, 2022
Markdown Transformer. Transform markdown files to different formats

Mdtx Inspired by generative programming and weed :). So I was learning Elm language at home usually in the evening and now I am missing all this gener

Aexol 13 Jan 2, 2023
Chat View let's you quickly and easily create elegant Chat UIs in your Markdown Files.

Obsidian Chat View Plugin Chat View let's you quickly and easily create elegant Chat UIs in your Markdown Files. Usage Every chat message must be pref

Adifyr 96 Dec 27, 2022
Easily publish notes to the web This plugin integrates with obsius.site to publish markdown notes on the web.

Obsius Publish Easily publish notes to the web This plugin integrates with obsius.site to publish markdown notes on the web. Limitations The type of c

Jon Grythe Stødle 66 Dec 20, 2022
Keep the type of storage value unchanged and change array and object directly. Supports listening to the changes and setting expires.

proxy-web-storage A more convenient way to use storage through proxy. try it on codesandbox. Install npm i proxy-web-storage Features Base Keep the ty

null 221 Dec 25, 2022
A Meme generator website where you can change and customize images to create great memes😎.

App Screenshot: Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory,

Harsh Jain 7 Dec 21, 2022