Skip to content

Instantly share code, notes, and snippets.

@tiensonqin
Created June 28, 2020 23:30
Show Gist options
  • Save tiensonqin/845f3f0dee0f19d5f0cc9c1587a7169c to your computer and use it in GitHub Desktop.
Save tiensonqin/845f3f0dee0f19d5f0cc9c1587a7169c to your computer and use it in GitHub Desktop.
A logseq.edn example
{:git-auto-push true
:git-push-secs 10
:git-pull-secs 60
:hidden ["/pem"]
:text-formats []
:image-formats []
:starred ["LATER"
"Logseq"
"Think"
"Markdown"]
:shortcuts {:editor/new-heading "alt+enter"}
:commands
[["Logseq" "[[Logseq]]"]
["Think" "[[Think]]"]]
:default-templates
{:journals "** [[Logseq]]
***
** [[Family]]
***
"}
:default-queries
{:journals [{:title "ƒ NOW"
:query "[[:find (pull ?h [*])
:in $ ?start ?today
:where
[?h :heading/marker ?marker]
[?h :heading/page ?p]
[?p :page/journal? true]
[?p :page/journal-day ?d]
[(>= ?d ?start)]
[(<= ?d ?today)]
[(= ?marker \"NOW\")]]
:10d
:today]"}
{:title "➨ NEXT"
:query "[[:find (pull ?h [*])
:in $ ?start ?next
:where
[?h :heading/marker ?marker]
[?h :heading/page ?p]
[?p :page/journal? true]
[?p :page/journal-day ?d]
[(> ?d ?start)]
[(< ?d ?next)]
[(contains? #{\"NOW\" \"LATER\"} ?marker)]]
:today
:7d-after]"
:default-collapsed? true}
;; {:title "∞ LATER"
;; :query "[[:find (pull ?h [*])
;; :in $ ?start
;; :where
;; [?h :heading/marker ?marker]
;; [?h :heading/page ?p]
;; [?p :page/journal? true]
;; [?p :page/journal-day ?d]
;; [(>= ?d ?start)]
;; [(= ?marker \"LATER\")]]
;; :60d]"
;; :default-collapsed? true}
]
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment