New keyboard shortcuts, block duplication, colored inline icons and more
16 October: Quickly switch between paragraphs and headings, duplicate blocks with a tap, add colored icons to your page and more
Faster heading and paragraph block switching
We’ve added a few new keyboard shortcuts that let you quickly switch a text block between paragraph, H1, H2 and H3. Simply click anywhere in the block you want to switch and hit one of these shortcuts:
Turn into a paragraph
⌘ + ⌥ + 0
Ctrl + Alt + 0
Turn into a heading 1
⌘ + ⌥ + 1
Ctrl + Alt + 1
Turn into a heading 2
⌘ + ⌥ + 2
Ctrl + Alt + 2
Turn into a heading 3
⌘ + ⌥ + 3
Ctrl + Alt + 3
We’ve been using it while writing this changelog and it’s great — especially when you forget to hit # at the start of an empty line and you want a header block.
Duplicate any block instantly
One more neat shortcut to speed up your editing workflow: you can now duplicate any block by either hitting ⌘ + D (on Mac) or Ctrl + D (on Windows), or by holding the Alt key and dragging.
If you use the shortcut, a duplicate of your active block will appear below. If you drag, you can place your block anywhere you like on the page.
And of course, it works for more than one block as a time, too — so you can select multiple blocks and duplicate them all with a quick tap.
Add color to inline icons
You can now select a color for inline icons when you add them to your content
This is great if you want to attract attention to certain parts of your page content — or if you just want an inline icon to match the color of your text .
There are six colors to choose from — and if your space is published on a site, you can also choose the primary and semantic colors for the site to align your icon perfectly with the surrounding text.
To change the color of the icon (or choose a different icon from the picker), simply right-click it in the editor.
Quote search for internal content
We now support exact phrase matching for internal search within GitBook.
If you want to find an exact phrase within your docs without bringing up similar matches in your search results, you can now add quotation marks around your text. Remove the quotation marks and the search will work the same way as before, highlighting close — but not exact — matches.
We’re constantly working to improve the way you and your team work in GitBook, and value your input on features, bugs, and more. Make sure you head to our official GitBook community to join the discussion.
Last updated
Was this helpful?