Created
June 28, 2020 23:30
-
-
Save tiensonqin/845f3f0dee0f19d5f0cc9c1587a7169c to your computer and use it in GitHub Desktop.
A logseq.edn example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{: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