mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +00:00
enhance: g a to all pages, g g to graph view, g f to open flashcards
close #3393
This commit is contained in:
@@ -27,6 +27,14 @@
|
||||
(when pub-event? (state/pub-event! [:redirect-to-home]))
|
||||
(redirect! {:to :home})))
|
||||
|
||||
(defn redirect-to-all-pages!
|
||||
[]
|
||||
(redirect! {:to :all-pages}))
|
||||
|
||||
(defn redirect-to-graph-view!
|
||||
[]
|
||||
(redirect! {:to :graph}))
|
||||
|
||||
(defn redirect-to-page!
|
||||
([page-name]
|
||||
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name)
|
||||
|
||||
Reference in New Issue
Block a user