Skip to content

Allow /h2 /h3 ... for the creation of the proper header block #53963

Closed

Description

@tkapler

What problem does this address?

I often need to make header with other level then default H2. But it takes too much steps and or even switching from keyboard to mouse to do it.

What is your proposed solution?

Simply allow /h1-/h6 shortcuts, that would directly create header with proper level.

Activity

  1. added
    [Type] Enhancement
    [Feature] Inserter
    on Aug 26, 2023
  2. Mamaduka commented on Aug 26, 2023

    @Mamaduka
    Member

    You should already be able to do that. Try typing /h3 and then hit the Enter. See #26597.

  3. added
    [Block] Heading
    and removed
    [Feature] Inserter
    on Aug 26, 2023
  4. spencerfinnell commented on Aug 26, 2023

    @spencerfinnell

    Perhaps @tkapler was referring to a flow that more similarly mirrors how embeds are handled. If you type /reddit you get actual confirmation that it is a real block because the variation of the Embed block shows up in the suggestions:

    Screenshot 2023-08-26 at 4 11 52 PM

    Showing the different heading levels in the suggestions would give users confidence that there actually is a shortcut direct to a heading level instead of having the user guess that pressing enter will use the variation.

    Normal behavior of pressing enter when there are no block suggestions is to just go to a new paragraph, because supposedly you are "just typing" at that point. If you happen to be typing /h3 and pressing Enter you get a different experience.

    Screen Capture on 2023-08-26 at 16-15-28

    I certainly think the existing behavior is fine to keep but it makes a lot of sense to me to show the suggestions prior to pressing Enter as well.

  5. spencerfinnell commented on Aug 26, 2023

    @spencerfinnell

    I believe discussion can be continued in the original: #32472

  6. tkapler commented on Aug 26, 2023

    @tkapler
    Author

    You should already be able to do that. Try typing /h3 and then hit the Enter. See #26597.

    what? i have never noticed that. It does not show any indication that it will do anything. You can mark it as closed then, but i believe it should be shown somehow, at least keep showing "header".

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[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions