feat: alt+shift+j to open today in sidebar && g h to go to home

This commit is contained in:
Tienson Qin
2021-08-26 13:10:05 +08:00
parent d61663f3aa
commit 8da50f56a5
2 changed files with 17 additions and 0 deletions

View File

@@ -307,6 +307,10 @@
:fn #(repo-handler/re-index!
nfs-handler/rebuild-index!
page-handler/create-today-journal!)}
:sidebar/open-today-page
{:desc "Open today's page in the right sidebar"
:binding (if mac? "mod+shift+j" "alt+shift+j")
:fn page-handler/open-today-in-sidebar}
:sidebar/clear
{:desc "Clear all in the right sidebar"
:binding "mod+c mod+c"
@@ -326,6 +330,10 @@
{:desc "Run git command"
:binding "mod+shift+1"
:fn #(state/pub-event! [:command/run])}
:go/home
{:desc "Go to home"
:binding "g h"
:fn #(route-handler/redirect! {:to :home})}
:ui/toggle-document-mode
{:desc "Toggle document mode"
:binding "t d"