|
|
@@ -15,41 +15,41 @@
|
|
|
(def default-config
|
|
|
{:shortcut.handler/date-picker
|
|
|
{:date-picker/complete
|
|
|
- {:desc "Date picker choose selected day"
|
|
|
+ {:desc "Date picker: Choose selected day"
|
|
|
:binding "enter"
|
|
|
:fn ui-handler/shortcut-complete}
|
|
|
:date-picker/prev-day
|
|
|
- {:desc "Date picker select previous day"
|
|
|
+ {:desc "Date picker: Select previous day"
|
|
|
:binding "left"
|
|
|
:fn ui-handler/shortcut-prev-day}
|
|
|
:date-picker/next-day
|
|
|
- {:desc "Date picker select next day"
|
|
|
+ {:desc "Date picker: Select next day"
|
|
|
:binding "right"
|
|
|
:fn ui-handler/shortcut-next-day}
|
|
|
:date-picker/prev-week
|
|
|
- {:desc "Date picker select prev week"
|
|
|
+ {:desc "Date picker: Select previous week"
|
|
|
:binding "up"
|
|
|
:fn ui-handler/shortcut-prev-week}
|
|
|
:date-picker/next-week
|
|
|
- {:desc "Date picker select next week"
|
|
|
+ {:desc "Date picker: Select next week"
|
|
|
:binding "down"
|
|
|
:fn ui-handler/shortcut-next-week}}
|
|
|
|
|
|
:shortcut.handler/auto-complete
|
|
|
{:auto-complete/prev
|
|
|
- {:desc "Auto-complete previous selected item"
|
|
|
+ {:desc "Auto-complete: Choose selected item"
|
|
|
+ :binding "enter"
|
|
|
+ :fn ui-handler/auto-complete-complete}
|
|
|
+ :auto-complete/shift-complete
|
|
|
+ {:desc "Auto-complete: Select previous item"
|
|
|
:binding "up"
|
|
|
:fn ui-handler/auto-complete-prev}
|
|
|
:auto-complete/next
|
|
|
- {:desc "Auto-complete next selected item"
|
|
|
+ {:desc "Auto-complete: Select next item"
|
|
|
:binding "down"
|
|
|
:fn ui-handler/auto-complete-next}
|
|
|
:auto-complete/complete
|
|
|
- {:desc "Auto-complete choose selected item"
|
|
|
- :binding "enter"
|
|
|
- :fn ui-handler/auto-complete-complete}
|
|
|
- :auto-complete/shift-complete
|
|
|
- {:desc "Auto-complete open selected item in sidebar"
|
|
|
+ {:desc "Auto-complete: Open selected item in sidebar"
|
|
|
:binding "shift+enter"
|
|
|
:fn ui-handler/auto-complete-shift-complete}}
|
|
|
|
|
|
@@ -72,7 +72,7 @@
|
|
|
:binding "enter"
|
|
|
:fn editor-handler/keydown-new-block-handler}
|
|
|
:editor/new-line
|
|
|
- {:desc "Newline in block"
|
|
|
+ {:desc "New line in current block"
|
|
|
:binding "shift+enter"
|
|
|
:fn editor-handler/keydown-new-line-handler}
|
|
|
:editor/cycle-todo
|
|
|
@@ -104,7 +104,7 @@
|
|
|
:binding "mod+shift+s"
|
|
|
:fn editor-handler/strike-through-format!}
|
|
|
:editor/insert-link
|
|
|
- {:desc "Html Link"
|
|
|
+ {:desc "HTML Link"
|
|
|
:binding "mod+k"
|
|
|
:fn editor-handler/html-link-format!}
|
|
|
:editor/move-block-up
|
|
|
@@ -116,39 +116,39 @@
|
|
|
:binding (if mac? "mod+shift+down" "alt+shift+down")
|
|
|
:fn (editor-handler/move-up-down false)}
|
|
|
:editor/clear-block
|
|
|
- {:desc "Clear entire block content"
|
|
|
+ {:desc "Delete entire block content"
|
|
|
:binding (if mac? "ctrl+l" "alt+l")
|
|
|
:fn editor-handler/clear-block-content!}
|
|
|
:editor/kill-line-before
|
|
|
- {:desc "Kill line before cursor position"
|
|
|
+ {:desc "Delete line before cursor position"
|
|
|
:binding (if mac? "ctrl+u" "alt+u")
|
|
|
:fn editor-handler/kill-line-before!}
|
|
|
:editor/kill-line-after
|
|
|
- {:desc "Kill line after cursor position"
|
|
|
+ {:desc "Delete line after cursor position"
|
|
|
:binding (if mac? false "alt+k")
|
|
|
:fn editor-handler/kill-line-after!}
|
|
|
:editor/beginning-of-block
|
|
|
- {:desc "Move cursor to the beginning of block"
|
|
|
+ {:desc "Move cursor to the beginning of a block"
|
|
|
:binding (if mac? false "alt+a")
|
|
|
:fn editor-handler/beginning-of-block}
|
|
|
:editor/end-of-block
|
|
|
- {:desc "Move cursor to the end of block"
|
|
|
+ {:desc "Move cursor to the end of a block"
|
|
|
:binding (if mac? false "alt+e")
|
|
|
:fn editor-handler/end-of-block}
|
|
|
:editor/forward-word
|
|
|
- {:desc "Move cursor forward by word"
|
|
|
+ {:desc "Move cursor forward a word"
|
|
|
:binding (if mac? "ctrl+shift+f" "alt+f")
|
|
|
:fn editor-handler/cursor-forward-word}
|
|
|
:editor/backward-word
|
|
|
- {:desc "Move cursor backward by word"
|
|
|
+ {:desc "Move cursor backward a word"
|
|
|
:binding (if mac? "ctrl+shift+b" "alt+b")
|
|
|
:fn editor-handler/cursor-backward-word}
|
|
|
:editor/forward-kill-word
|
|
|
- {:desc "Kill a word forwards"
|
|
|
+ {:desc "Delete a word forwards"
|
|
|
:binding (if mac? "ctrl+w" "alt+d")
|
|
|
:fn editor-handler/forward-kill-word}
|
|
|
:editor/backward-kill-word
|
|
|
- {:desc "Kill a word backwards"
|
|
|
+ {:desc "Delete a word backwards"
|
|
|
:binding (if mac? false "alt+w")
|
|
|
:fn editor-handler/backward-kill-word}
|
|
|
:editor/replace-block-reference-at-point
|
|
|
@@ -241,11 +241,11 @@
|
|
|
:binding "mod+shift+a"
|
|
|
:fn editor-handler/select-all-blocks!}
|
|
|
:editor/zoom-in
|
|
|
- {:desc "Zoom in when editing / Forward"
|
|
|
+ {:desc "Zoom in editing block / Forwards otherwise"
|
|
|
:binding (if mac? "mod+." "alt+right")
|
|
|
:fn editor-handler/zoom-in!}
|
|
|
:editor/zoom-out
|
|
|
- {:desc "Zoom out when editing / Back"
|
|
|
+ {:desc "Zoom out editing block / Backwards otherwise"
|
|
|
:binding (if mac? "mod+," "alt+left")
|
|
|
:fn editor-handler/zoom-out!}
|
|
|
:ui/toggle-brackets
|
|
|
@@ -264,6 +264,14 @@
|
|
|
{:desc "Jump to journals"
|
|
|
:binding (if mac? "mod+j" "alt+j")
|
|
|
:fn route-handler/go-to-journals!}
|
|
|
+ :go/backward
|
|
|
+ {:desc "Backwards"
|
|
|
+ :binding "mod+open-square-bracket"
|
|
|
+ :fn (fn [_] (js/window.history.back))}
|
|
|
+ :go/forward
|
|
|
+ {:desc "Forwards"
|
|
|
+ :binding "mod+close-square-bracket"
|
|
|
+ :fn (fn [_] (js/window.history.forward))}
|
|
|
:search/re-index
|
|
|
{:desc "Rebuild search index"
|
|
|
:binding "mod+c mod+s"
|
|
|
@@ -302,7 +310,7 @@
|
|
|
:binding "t t"
|
|
|
:fn state/toggle-theme!}
|
|
|
:ui/toggle-contents
|
|
|
- {:desc "Toggle Contents in sidebar"
|
|
|
+ {:desc "Toggle Favorites in sidebar"
|
|
|
:binding "t c"
|
|
|
:fn ui-handler/toggle-contents!}
|
|
|
:ui/toggle-wide-mode
|
|
|
@@ -310,7 +318,7 @@
|
|
|
:binding "t w"
|
|
|
:fn ui-handler/toggle-wide-mode!}
|
|
|
:editor/toggle-open-blocks
|
|
|
- {:desc "Toggle open blocks, either collapse or expand all blocks"
|
|
|
+ {:desc "Toggle open blocks (collapse or expand all blocks)"
|
|
|
:binding "t o"
|
|
|
:fn editor-handler/toggle-open!}
|
|
|
;; :ui/toggle-between-page-and-file route-handler/toggle-between-page-and-file!
|
|
|
@@ -353,7 +361,9 @@
|
|
|
:editor/zoom-out
|
|
|
:editor/collapse-block-children
|
|
|
:editor/expand-block-children
|
|
|
- :editor/toggle-open-blocks]
|
|
|
+ :editor/toggle-open-blocks
|
|
|
+ :go/backward
|
|
|
+ :go/forward]
|
|
|
|
|
|
:shortcut.category/block-editing
|
|
|
^{:doc "Block editing general"}
|
|
|
@@ -398,7 +408,6 @@
|
|
|
:shortcut.category/toggle
|
|
|
^{:doc "Toggle"}
|
|
|
[:ui/toggle-help
|
|
|
- :ui/toggle-new-block
|
|
|
:editor/toggle-open-blocks
|
|
|
:ui/toggle-wide-mode
|
|
|
:ui/toggle-document-mode
|