mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
enhance(ux): shift + enter to open selected block(s) in sidebar
This commit is contained in:
@@ -291,9 +291,11 @@
|
||||
:editor/move-block-down {:binding (if mac? "mod+shift+down" "alt+shift+down")
|
||||
:fn (editor-handler/move-up-down false)}
|
||||
|
||||
;; FIXME: add open edit in non-selection mode
|
||||
:editor/open-edit {:binding "enter"
|
||||
:fn (partial editor-handler/open-selected-block! :right)}
|
||||
:fn (fn [e]
|
||||
(editor-handler/open-selected-block! :right e))}
|
||||
:editor/open-selected-blocks-in-sidebar {:binding "shift+enter"
|
||||
:fn editor-handler/open-selected-blocks-in-sidebar!}
|
||||
|
||||
:editor/select-block-up {:binding "alt+up"
|
||||
:fn (editor-handler/on-select-block :up)}
|
||||
@@ -782,6 +784,7 @@
|
||||
:editor/move-block-up
|
||||
:editor/move-block-down
|
||||
:editor/open-edit
|
||||
:editor/open-selected-blocks-in-sidebar
|
||||
:editor/select-block-up
|
||||
:editor/select-block-down
|
||||
:editor/select-parent
|
||||
@@ -974,6 +977,7 @@
|
||||
|
||||
:shortcut.category/block-selection
|
||||
[:editor/open-edit
|
||||
:editor/open-selected-blocks-in-sidebar
|
||||
:editor/select-all-blocks
|
||||
:editor/select-parent
|
||||
:editor/select-block-up
|
||||
|
||||
Reference in New Issue
Block a user