feat: add collapse all binding (#2186)

A shortcut to collapse all top level blocks. It helps in getting
a quick summary of document, especially when there are outlines.

Co-authored-by: Nikhil Warke <nwarke@protonmail.com>
This commit is contained in:
Nikhil Warke
2021-06-16 08:44:06 +05:30
committed by GitHub
parent 0c5b59077f
commit 5446c17f58
2 changed files with 20 additions and 0 deletions

View File

@@ -195,6 +195,10 @@
{:desc "Collapse"
:binding "mod+up"
:fn editor-handler/collapse!}
:editor/collapse-top-blocks
{:desc "Collapse all blocks"
:binding "mod+shift+l"
:fn editor-handler/collapse-all!}
:editor/indent
{:desc "Indent block"
:binding "tab"
@@ -315,6 +319,7 @@
:editor/new-line
:editor/indent
:editor/outdent
:editor/collapse-top-blocks
:editor/collapse-block-children
:editor/expand-block-children
:go/search