fix: keep one command for toggle cards

This commit is contained in:
Tienson Qin
2023-11-12 21:49:41 +08:00
parent 40955a025c
commit e0c7ff0ba3
7 changed files with 14 additions and 19 deletions

View File

@@ -451,11 +451,8 @@
:go/prev-journal {:binding "g p"
:fn journal-handler/go-to-prev-journal!}
:go/flashcards {:binding "g f"
:fn (fn []
(if (state/modal-opened?)
(state/close-modal!)
(state/pub-event! [:modal/show-cards])))}
:go/flashcards {:binding ["g f" "t c"]
:fn ui-handler/toggle-cards!}
:ui/toggle-document-mode {:binding "t d"
:fn state/toggle-document-mode!}
@@ -527,9 +524,6 @@
:ui/cycle-color {:binding "c c"
:fn state/cycle-color!}
:ui/toggle-cards {:binding "t c"
:fn ui-handler/toggle-cards!}
:git/commit {:binding "mod+g c"
:inactive (not (util/electron?))
:fn commit/show-commit-modal!}
@@ -723,7 +717,6 @@
:ui/goto-plugins
:ui/install-plugins-from-file
:editor/toggle-open-blocks
:ui/toggle-cards
:ui/clear-all-notifications
:git/commit
:sidebar/close-top
@@ -839,7 +832,6 @@
:editor/toggle-undo-redo-mode
:editor/toggle-number-list
:ui/toggle-wide-mode
:ui/toggle-cards
:ui/toggle-document-mode
:ui/toggle-brackets
:ui/toggle-theme