Created
July 23, 2020 00:46
-
-
Save tiensonqin/d871dcba33c4be460fabb3add0840276 to your computer and use it in GitHub Desktop.
Logseq config.edn template
This file contains 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
{:project { | |
;; Selected public notes can be published to https://logseq.com/your-project-or-your-username. | |
:name "" | |
:alias "" | |
;; your twitter handle | |
:twitter "" | |
;; description supports both hiccup and html | |
:description []} | |
;; Git settings | |
:git-pull-secs 60 | |
:git-push-secs 10 | |
:git-auto-push true | |
;; The app will ignore those directories or files. | |
;; E.g. "/archived" "/test.md" | |
:hidden [] | |
;; When creating the new journal page, the app will use your template content here. | |
;; Example for Markdown users: "## [[Work]]\n###\n## [[Family]]\n###\n | |
;; Example for Org mode users: "** [[Work]]\n***\n** [[Family]]\n***\n | |
:default-templates | |
{:journals ""} | |
;; The app will show those queries in today's journal page, | |
;; the "NOW" query asks the tasks which need to be finished "now", | |
;; the "NEXT" query asks the future tasks. | |
: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")]] | |
:inputs [:14d :today] | |
:result-transform (fn [result] | |
(sort-by (fn [h] | |
(get h :heading/priority "Z")) result))} | |
{:title "📅 NEXT" | |
:query [:find (pull ?h [*]) | |
:in $ ?start ?next | |
:where | |
[?h :heading/marker ?marker] | |
[?h :heading/ref-pages ?p] | |
[?p :page/journal? true] | |
[?p :page/journal-day ?d] | |
[(> ?d ?start)] | |
[(< ?d ?next)] | |
[(contains? #{"NOW" "LATER"} ?marker)]] | |
:inputs [:today :7d-after] | |
:default-collapsed? true}]} | |
;; Add your own commands to speedup. | |
;; E.g. [["js" "Javascript"]] | |
:commands | |
[["Think" "[[Think]]"]] | |
;; Macros replace texts and will make you more productive. | |
;; For example: | |
;; Add this to the macros below: | |
;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."} | |
;; input "{{{poem(red,blue)}}}" | |
;; becomes | |
;; Rose is red, violet's blue. Life's ordered: Org assists you. | |
:macros {}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment