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

Inserter: Show heading level shortcuts in the slash command #32472

Open
melchoyce opened this issue Jun 4, 2021 · 6 comments
Open

Inserter: Show heading level shortcuts in the slash command #32472

melchoyce opened this issue Jun 4, 2021 · 6 comments
Labels
[Block] Heading Affects the Headings Block [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@melchoyce
Copy link
Contributor

melchoyce commented Jun 4, 2021

What problem does this address?

When laying out a page, I often want to work on the overall hierarchy and structure first, which often means adding a bunch of headings at once. You can use the slash command to insert things like /h3 or /h4 directly, but it isn't exposed in the slash autocomplete — you need to know it exists.

What is your proposed solution?

When you type /h3 or /h4, etc, we should show an autocomplete for "heading 3," etc. in the slash command list.

@melchoyce melchoyce added [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Block] Heading Affects the Headings Block labels Jun 4, 2021
@ntsekouras
Copy link
Contributor

Actually there is support, by typing the alike /h3 and pressing Enter, implemented here: #26597. It's similar to the ### handling for heading insertion, it works for now, but could be improved by giving some UI indication for such transformations.

@melchoyce
Copy link
Contributor Author

Oh! Never mind then 😂 I assumed because there wasn't an autocomplete popping up, it wouldn't work. Should I close out this issue, or update it to be about the UI?

@ntsekouras
Copy link
Contributor

I think it can be updated 😄

@melchoyce melchoyce changed the title Inserter: Allow headings level shortcuts in the slash command Inserter: Show heading level shortcuts in the slash command Jun 7, 2021
@mtias
Copy link
Member

mtias commented Jul 13, 2021

It might make sense to treat each heading level as a variation.

@mayankguptadotcom
Copy link

mayankguptadotcom commented Jun 2, 2023

Oh! This will be so useful!
I understand that Gutenberg supports markdown - but still this can be super helpful for those who don't want to learn markdown.

@spencerfinnell
Copy link

It might make sense to treat each heading level as a variation.

@mtias even if they aren't "real" variations, I think mimicking the behavior of variations makes sense in this instance: #53963 (comment)

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 [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants