Is there a reason why there isn’t a keyboard shortcut for inserting blocks?
I’d be happy with a simple shortcut for the insert after
option that defaults to the end of the content if no block is selected.
However, I think that Wordpress’s block editor has the best implementation of this feature. Basically, in any paragraph block you can simply type a forward slash, /, and it will allow you to change that paragraph block to any other block type. You can even begin typing the name of a block and it will filter the options displayed. Pressing “enter/return” will change the paragraph to the first block type in the list.
This feature becomes even more powerful when it is is combined with the fact that pressing “enter/return” will insert a new paragraph after the current block when almost any block is highlighted. Therefore, I can quickly insert any block from a huge list without having to remember more than two keyboard actions: “return/enter” and “/.”
What this looks like is that I can very easily do the following:
Type my tile. Tab focus to the content area. Type “/ head” followed by “enter” to insert a heading block. Type my heading text. Type enter to begin typing a paragraph. Write some paragraphs. Type “enter” to start new paragraph. Type “/ img” followed by “enter” to insert an image. etc. etc.
I think something that felt this fluid in Kirby would be a really excellent addition.
Here is a reference to the WP feature: https://wordpress.org/documentation/article/keyboard-shortcuts-block-editor/#change-the-block-type-after-adding-a-new-paragraph