feature: new keybinding for "toggle expand/collapse this block"

Fixes issue https://github.com/logseq/logseq/issues/9676
Binds to mod + ; by default.
This commit is contained in:
Topher Hunt
2024-02-06 10:36:48 +01:00
committed by Andelf
parent ebb6d86dd5
commit 2bbd1bfc53
3 changed files with 43 additions and 0 deletions

View File

@@ -313,6 +313,9 @@
:editor/collapse-block-children {:binding "mod+up"
:fn editor-handler/collapse!}
:editor/toggle-block-children {:binding "mod+;"
:fn editor-handler/toggle-collapse!}
:editor/indent {:binding "tab"
:fn (editor-handler/keydown-tab-handler :right)}
@@ -667,6 +670,7 @@
:editor/delete-selection
:editor/expand-block-children
:editor/collapse-block-children
:editor/toggle-block-children
:editor/indent
:editor/outdent
:editor/copy
@@ -782,6 +786,7 @@
:editor/right
:editor/collapse-block-children
:editor/expand-block-children
:editor/toggle-block-children
:editor/toggle-open-blocks
:go/backward
:go/forward