Allow setting a default page or view when the application starts, instead of defaulting to the Journal.
There is a setting called :default-home
already available for that purpose in config.edn
.
;; Specify default home page and sidebar status for Logseq
;; If not specified, Logseq default opens journals page on startup
;; value for `:page` is name of page
;; Possible options for `:sidebar` are
;; 1. `"Contents"` to open up `Contents` in sidebar by default
;; 2. `page name` to open up some page in sidebar
;; 3. Or multiple pages in an array ["Contents" "Page A" "Page B"]
;; If `:sidebar` is not set, sidebar will be hidden
;; Example:
;; 1. Setup page "Changelog" as home page and "Contents" in sidebar
;; :default-home {:page "Changelog", :sidebar "Contents"}
;; 2. Setup page "Jun 3rd, 2021" as home page without sidebar
;; :default-home {:page "Jun 3rd, 2021"}
;; 3. Setup page "home" as home page with multiple pages in sidebar
;; :default-home {:page "home" :sidebar ["page a" "page b"]}
1 Like
I know this is an old post, and I’m not sure if my query counts as its own separate query, but I was wondering if this works with “Today”?
That is, instead of the full journal appearing as the default page, I was hoping to simply have today’s journal page only.
The difference between a blank page and a page with yesterday’s scribbles is quite remarkable.
Thanks in advance.
Oh, and while we’re here, is there a publicly available list of terms (like Sidebar, Changelog, Contents, etc.) that LogSeq has defined for these settings?
1 Like
Would love to know how to set the default-home
to the <current day>
as well!