Add command to save graph to disk

This commit is contained in:
Gabriel Horner
2022-02-20 21:11:42 -05:00
committed by Andelf
parent 86ea102b89
commit 6957b17843
2 changed files with 11 additions and 2 deletions

View File

@@ -315,11 +315,11 @@
:binding "mod+shift+p"
:fn (fn [] (state/toggle! :ui/command-palette-open?))}
:graph/open {:desc "Select graph to open"
:graph/open {:desc "Select graph to open"
:fn (fn [] (state/set-state! :ui/open-select :graph-open))
:binding "mod+shift+g"}
:graph/remove {:desc "Remove a graph"
:graph/remove {:desc "Remove a graph"
:fn (fn [] (state/set-state! :ui/open-select :graph-remove))
:binding false}
@@ -327,6 +327,10 @@
:fn (fn [] (route-handler/redirect! {:to :repo-add}))
:binding false}
:graph/save {:desc "Save current graph to disk"
:fn #(state/pub-event! [:graph/save])
:binding false}
:command/run (when (util/electron?)
{:desc "Run git command"
:binding "mod+shift+1"
@@ -511,6 +515,7 @@
:graph/open
:graph/remove
:graph/add
:graph/save
:editor/cycle-todo
:editor/up
:editor/down
@@ -695,6 +700,7 @@
:graph/open
:graph/remove
:graph/add
:graph/save
:sidebar/clear
:sidebar/open-today-page
:search/re-index