Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase/decrease heading level of more than one heading at a time #40345

Open
ClarusDignus opened this issue Apr 14, 2022 · 1 comment
Open
Labels
[Block] Heading Affects the Headings Block [Type] Enhancement A suggestion for improvement.

Comments

@ClarusDignus
Copy link

ClarusDignus commented Apr 14, 2022

Problem

When copying page/post contents to other pages/posts, I sometimes have to manually increase/decrease the heading level of dozens of headings.

E.g., a page's content consists of a h2 heading and h3 headings. I copy and paste this content into a new page under a h3 heading, so for the pasted content, I need to decrease the headings; the h2 heading needs to be decreased to h4, and the h3 elements need to be decreased to h5.

Solution

When multiple blocks are selected/highlighted, there should be:

  1. a button to increase all selected/highlighted headings by one heading level.
  2. a button to decrease all selected/highlighted headings by one heading level.

Something similar already exists. When multiple blocks are selected/highlighted, up and down arrows appear above the selected/highlighted blocks:

move-blocks

Up/down arrows could similarly be used to increase/decrease the heading levels of multiple headings. A "H" icon could be placed before the up/down arrows to distinguish them from the up/down arrows for moving blocks.

@ndiego ndiego added [Type] Enhancement A suggestion for improvement. [Block] Heading Affects the Headings Block labels Apr 15, 2022
@ellatrix
Copy link
Member

Related: allowing non consecutive selection: #16811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Heading Affects the Headings Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants