Auto Heading shortcut

Is there a kind of keyboard shortcut to activate auto heading for a specific block? Or is it only available via context menu? And does it also work in the app? Thx

3 Likes

ditto for your your last question

This is not a keyboard shortcut, but at least I find it quicker than typing it all out or using the context menu. Based on this comment I found that defining the following command in config.edn works:

 :commands [
    ["ha" [[:editor/input "\nheading:: true"]]]
 ]

Activate auto heading by using /ha in the block.

2 Likes

Thanks for the tip :v:

Would you think of a way to bring auto-heading to h1 at the first indent level?
For me, auto-heading sets the block size to h2 …

Not that I can think of, unfortunately, and to be honest I hadn’t noticed before now. It seems like if you zoom in on a block with auto heading it is automatically changed to h1 size, so I’m guessing h1 is the default size for the page/top level block header, and therefore h2 is used for subsequent blocks.