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

Heading Block: Allow quickly adding specific heading levels #25318

Closed
shaunandrews opened this issue Sep 14, 2020 · 2 comments
Closed

Heading Block: Allow quickly adding specific heading levels #25318

shaunandrews opened this issue Sep 14, 2020 · 2 comments
Labels
[Block] Heading Affects the Headings Block [Feature] Inserter The main way to insert blocks using the + button in the editing interface

Comments

@shaunandrews
Copy link
Contributor

Right now, to add an h4 to my document I need to add a Heading block and then use the block's toolbar to select the h4 level from the menu.

image

I often add the Heading block from the / inserter:

image

What I'd love to do, is to type /h4 and have the Heading block added with its level set to h4. I think we could do this by creating hidden variations of the Heading block that would only appear when searching.

@shaunandrews shaunandrews added the [Block] Heading Affects the Headings Block label Sep 14, 2020
@youknowriad youknowriad added the [Feature] Inserter The main way to insert blocks using the + button in the editing interface label Sep 15, 2020
@diegohaz
Copy link
Member

That would be really good!

I used to type /head + Enter as well. But since I always had to change the heading level manually later I trained myself to use #### + Enter (which would create a heading level 4).

I would like to keep typing /head though as I feel more confident doing so (sometimes I type the wrong number of #).

I also think the /head popup could suggest different levels of heading based on the current document structure. That is, if the last heading is level 2, we can show heading level 1, 2 and 3. I think we can safely omit 4, 5 and 6 in this case.

@talldan
Copy link
Contributor

talldan commented Nov 3, 2020

Duplicate of #7438, fixed by #26597

@talldan talldan closed this as completed Nov 3, 2020
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 [Feature] Inserter The main way to insert blocks using the + button in the editing interface
Projects
None yet
Development

No branches or pull requests

4 participants