added shortcut for closing the right sidebar top item resolving issue #7275 (#7622)

* added shortcut for closing the right sidebar top item resolving issue #7275

* namespace update & binding update

* reverting git binding

* Address remaining feedback

- Use close instead of clear as it is a more general verb for future
  commands
- Use 'c t' for binding

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
Sebastian Sosa
2022-12-12 10:52:57 -05:00
committed by GitHub
parent 7d606846a1
commit 5f3636a924
2 changed files with 8 additions and 1 deletions

View File

@@ -287,6 +287,9 @@
:sidebar/open-today-page {:binding (if mac? "mod+shift+j" "alt+shift+j")
:fn page-handler/open-today-in-sidebar}
:sidebar/close-top {:binding "c t"
:fn #(state/sidebar-remove-block! 0)}
:sidebar/clear {:binding "mod+c mod+c"
:fn #(do
(state/clear-sidebar-blocks!)
@@ -582,7 +585,9 @@
:ui/install-plugins-from-file
:editor/toggle-open-blocks
:ui/toggle-cards
:git/commit])
:git/commit
:sidebar/close-top
])
(with-meta {:before m/enable-when-not-editing-mode!}))}))
;; To add a new entry to this map, first add it here and then
@@ -703,6 +708,7 @@
:graph/add
:graph/save
:graph/re-index
:sidebar/close-top
:sidebar/clear
:sidebar/open-today-page
:search/re-index