Skip to content

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

Closed

Description

@melchoyce

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.

Activity

  1. added
    [Feature] Inserter
    [Block] Heading
    on Jun 4, 2021
  2. ntsekouras commented on Jun 7, 2021

    @ntsekouras
    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.

  3. melchoyce commented on Jun 7, 2021

    @melchoyce
    ContributorAuthor

    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?

  4. ntsekouras commented on Jun 7, 2021

    @ntsekouras
    Contributor

    I think it can be updated 😄

  5. changed the title [-]Inserter: Allow headings level shortcuts in the slash command[/-] [+]Inserter: Show heading level shortcuts in the slash command[/+] on Jun 7, 2021
  6. mtias commented on Jul 13, 2021

    @mtias
    Member

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

  7. added
    [Status] In Progress
    on Aug 2, 2021
  8. removed their assignment
    on Jul 15, 2022
  9. mayankguptadotcom commented on Jun 2, 2023

    @mayankguptadotcom

    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.

  10. spencerfinnell commented on Aug 26, 2023

    @spencerfinnell

    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)

  11. added
    [Type] Enhancement
    on Sep 8, 2023
  12. removed
    [Status] In Progress
    on Nov 13, 2024
  13. t-hamano commented on Dec 26, 2025

    @t-hamano
    Contributor

    This issue should have been resolved by #73823.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Heading[Feature] Inserter[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions