mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
Merge remote-tracking branch 'upstream/master' into whiteboards
This commit is contained in:
@@ -35,6 +35,10 @@
|
||||
[]
|
||||
(redirect! {:to :graph}))
|
||||
|
||||
(defn redirect-to-all-graphs
|
||||
[]
|
||||
(redirect! {:to :repos}))
|
||||
|
||||
(defn redirect-to-page!
|
||||
"Must ensure `page-name` is dereferenced (not an alias), or it will create a wrong new page with that name (#3511)."
|
||||
([page-name]
|
||||
@@ -145,6 +149,13 @@
|
||||
(state/set-search-mode! search-mode))
|
||||
(state/pub-event! [:go/search]))
|
||||
|
||||
(defn sidebar-journals!
|
||||
[]
|
||||
(state/sidebar-add-block!
|
||||
(state/get-current-repo)
|
||||
(:db/id (db/get-page (date/today)))
|
||||
:page))
|
||||
|
||||
(defn go-to-journals!
|
||||
[]
|
||||
(state/set-journals-length! 3)
|
||||
|
||||
Reference in New Issue
Block a user