|
|
@@ -181,7 +181,7 @@
|
|
|
:cards/recall {:binding "t"
|
|
|
:fn srs/recall}
|
|
|
|
|
|
- :editor/escape-editing {:binding false
|
|
|
+ :editor/escape-editing {:binding []
|
|
|
:fn (fn [_ _]
|
|
|
(editor-handler/escape-editing))}
|
|
|
|
|
|
@@ -338,7 +338,7 @@
|
|
|
:editor/zoom-out {:binding (if mac? "mod+," "alt+left")
|
|
|
:fn editor-handler/zoom-out!}
|
|
|
|
|
|
- :editor/toggle-undo-redo-mode {:binding false
|
|
|
+ :editor/toggle-undo-redo-mode {:binding []
|
|
|
:fn undo-redo/toggle-undo-redo-mode!}
|
|
|
|
|
|
:editor/toggle-number-list {:binding "t n"
|
|
|
@@ -406,8 +406,8 @@
|
|
|
(state/pub-event! [:modal/command-palette]))}
|
|
|
|
|
|
:graph/export-as-html {:fn #(export-handler/download-repo-as-html!
|
|
|
- (state/get-current-repo))
|
|
|
- :binding false}
|
|
|
+ (state/get-current-repo))
|
|
|
+ :binding []}
|
|
|
|
|
|
:graph/open {:fn #(do
|
|
|
(editor-handler/escape-editing)
|
|
|
@@ -417,10 +417,10 @@
|
|
|
:graph/remove {:fn #(do
|
|
|
(editor-handler/escape-editing)
|
|
|
(state/set-state! :ui/open-select :graph-remove))
|
|
|
- :binding false}
|
|
|
+ :binding []}
|
|
|
|
|
|
:graph/add {:fn (fn [] (route-handler/redirect! {:to :repo-add}))
|
|
|
- :binding false}
|
|
|
+ :binding []}
|
|
|
|
|
|
:graph/db-add {:fn #(state/pub-event! [:graph/new-db-graph])
|
|
|
;; TODO: Remove this once feature is released
|
|
|
@@ -428,12 +428,12 @@
|
|
|
:binding false}
|
|
|
|
|
|
:graph/save {:fn #(state/pub-event! [:graph/save])
|
|
|
- :binding false}
|
|
|
+ :binding []}
|
|
|
|
|
|
:graph/re-index {:fn (fn []
|
|
|
(p/let [multiple-windows? (ipc/ipc "graphHasMultipleWindows" (state/get-current-repo))]
|
|
|
(state/pub-event! [:graph/ask-for-re-index (atom multiple-windows?) nil])))
|
|
|
- :binding false}
|
|
|
+ :binding []}
|
|
|
|
|
|
:command/run {:binding "mod+shift+1"
|
|
|
:inactive (not (util/electron?))
|
|
|
@@ -510,7 +510,7 @@
|
|
|
:inactive (not (util/electron?))
|
|
|
:fn page-handler/copy-current-file}
|
|
|
|
|
|
- :editor/copy-page-url {:binding false
|
|
|
+ :editor/copy-page-url {:binding []
|
|
|
:inactive (not (util/electron?))
|
|
|
:fn #(page-handler/copy-page-url)}
|
|
|
|
|
|
@@ -532,7 +532,7 @@
|
|
|
:inactive (not (config/plugin-config-enabled?))
|
|
|
:fn plugin-config-handler/open-replace-plugins-modal}
|
|
|
|
|
|
- :ui/clear-all-notifications {:binding false
|
|
|
+ :ui/clear-all-notifications {:binding []
|
|
|
:fn :frontend.handler.notification/clear-all!}
|
|
|
|
|
|
:editor/toggle-open-blocks {:binding "t o"
|
|
|
@@ -545,19 +545,19 @@
|
|
|
:inactive (not (util/electron?))
|
|
|
:fn commit/show-commit-modal!}
|
|
|
|
|
|
- :dev/show-block-data {:binding false
|
|
|
+ :dev/show-block-data {:binding []
|
|
|
:inactive (not (state/developer-mode?))
|
|
|
:fn :frontend.handler.common.developer/show-block-data}
|
|
|
|
|
|
- :dev/show-block-ast {:binding false
|
|
|
+ :dev/show-block-ast {:binding []
|
|
|
:inactive (not (state/developer-mode?))
|
|
|
:fn :frontend.handler.common.developer/show-block-ast}
|
|
|
|
|
|
- :dev/show-page-data {:binding false
|
|
|
+ :dev/show-page-data {:binding []
|
|
|
:inactive (not (state/developer-mode?))
|
|
|
:fn :frontend.handler.common.developer/show-page-data}
|
|
|
|
|
|
- :dev/show-page-ast {:binding false
|
|
|
+ :dev/show-page-ast {:binding []
|
|
|
:inactive (not (state/developer-mode?))
|
|
|
:fn :frontend.handler.common.developer/show-page-ast}})
|
|
|
|