config.edn 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. {;; Currently, we support either "Markdown" or "Org".
  2. ;; This can overwrite your global preference so that
  3. ;; maybe your personal preferred format is Org but you'd
  4. ;; need to use Markdown for some projects.
  5. ;; :preferred-format ""
  6. ;; Preferred workflow style.
  7. ;; Value is either ":now" for NOW/LATER style,
  8. ;; or ":todo" for TODO/DOING style.
  9. :preferred-workflow :now
  10. ;; The app will ignore those directories or files.
  11. ;; E.g. "/archived" "/test.md"
  12. :hidden []
  13. ;; When creating the new journal page, the app will use your template if there is one.
  14. ;; You only need to input your template name here.
  15. :default-templates
  16. {:journals ""}
  17. ;; Whether to enable hover on tooltip preview feature
  18. ;; Default is true, you can also toggle this via setting page
  19. :ui/enable-tooltip? true
  20. :feature/enable-block-timestamps? false
  21. ;; Specify a custom CSS import
  22. ;; This option take precedence over your local `logseq/custom.css` file
  23. ;; You may find a list of awesome logseq themes here:
  24. ;; https://github.com/logseq/awesome-logseq#css-themes
  25. ;; Example:
  26. ;; :custom-css-url "@import url('https://cdn.jsdelivr.net/gh/dracula/logseq@master/custom.css');"
  27. ;; When :all-pages-public? true, export repo would export all pages within that repo.
  28. ;; Regardless of whether you've set any page to public or not.
  29. ;; Example:
  30. ;; :publishing/all-pages-public? true
  31. ;; Specify default home page and sidebar status for Logseq
  32. ;; If not specified, Logseq default opens journals page on startup
  33. ;; value for `:page` is name of page
  34. ;; Possible options for `:sidebar` are
  35. ;; 1. `"Contents"` to open up `Contents` in sidebar by default
  36. ;; 2. `page name` to open up some page in sidebar
  37. ;; 3. Or multiple pages in an array ["Contents" "Page A" "Page B"]
  38. ;; If `:sidebar` is not set, sidebar will be hidden
  39. ;; Example:
  40. ;; 1. Setup page "Changelog" as home page and "Contents" in sidebar
  41. ;; :default-home {:page "Changelog", :sidebar "Contents"}
  42. ;; 2. Setup page "Jun 3rd, 2021" as home page without sidebar
  43. ;; :default-home {:page "Jun 3rd, 2021"}
  44. ;; 3. Setup page "home" as home page with multiple pages in sidebar
  45. ;; :default-home {:page "home" :sidebar ["page a" "page b"]}
  46. ;; Tell logseq to use a specific folder in the repo as a default location for notes
  47. ;; if not specified, notes are stored in `pages` directory
  48. ;; :pages-directory "your-directory"
  49. ;; Tell logseq to use a specific folder in the repo as a default location for journals
  50. ;; if not specified, journals are stored in `journals` directory
  51. ;; :journals-directory "your-directory"
  52. ;; Set this to true will convert
  53. ;; `[[Grant Ideas]]` to `[[file:./grant_ideas.org][Grant Ideas]]` for org-mode
  54. ;; For more, see https://github.com/logseq/logseq/issues/672
  55. ;; :org-mode/insert-file-link? true
  56. ;; If you prefer to use the file name as the page title
  57. ;; instead of the first heading's title
  58. ;; the only option for now is `file`
  59. ;; :page-name-order "file"
  60. ;; Setup custom shortcuts under `:shortcuts` key
  61. ;; Syntax:
  62. ;; 1. `+` means keys pressing simultaneously. eg: `ctrl+shift+a`
  63. ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `s` follow by `t`
  64. ;; 3. `mod` means `Ctrl` for Windows/Linux and `Command` for Mac
  65. ;; 4. use `false` to disable particular shortcut
  66. ;; 4. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
  67. ;; full list of configurable shortcuts are available below:
  68. ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  69. ;; Example:
  70. ;; :shortcuts
  71. ;; {:editor/new-block "enter"
  72. ;; :editor/new-line "shift+enter"
  73. ;; :editor/insert-link "mod+shift+k"
  74. ;; :editor/hightlight false
  75. ;; :ui/toggle-settings "t s"
  76. ;; :editor/up ["ctrl+k" "up"]
  77. ;; :editor/down ["ctrl+j" "down"]
  78. ;; :editor/left ["ctrl+h" "left"]
  79. ;; :editor/right ["ctrl+l" "right"]}
  80. :shortcuts {}
  81. ;; By default, pressing `Enter` in the document mode will create a new line.
  82. ;; Set this to `true` so that it's the same behaviour as the usual outliner mode.
  83. :shortcut/doc-mode-enter-for-new-block? false
  84. ;; Whether to show command doc on hover
  85. :ui/show-command-doc? true
  86. ;; Whether to show empty bullets for non-document mode (the default mode)
  87. :ui/show-empty-bullets? false
  88. ;; The app will show those queries in today's journal page,
  89. ;; the "NOW" query asks the tasks which need to be finished "now",
  90. ;; the "NEXT" query asks the future tasks.
  91. :default-queries
  92. {:journals
  93. [{:title "🔨 NOW"
  94. :query [:find (pull ?h [*])
  95. :in $ ?start ?today
  96. :where
  97. [?h :block/marker ?marker]
  98. [(contains? #{"NOW" "DOING"} ?marker)]
  99. [?h :block/page ?p]
  100. [?p :block/journal? true]
  101. [?p :block/journal-day ?d]
  102. [(>= ?d ?start)]
  103. [(<= ?d ?today)]]
  104. :inputs [:14d :today]
  105. :result-transform (fn [result]
  106. (sort-by (fn [h]
  107. (get h :block/priority "Z")) result))
  108. :collapsed? false}
  109. {:title "📅 NEXT"
  110. :query [:find (pull ?h [*])
  111. :in $ ?start ?next
  112. :where
  113. [?h :block/marker ?marker]
  114. [(contains? #{"NOW" "LATER" "TODO"} ?marker)]
  115. [?h :block/ref-pages ?p]
  116. [?p :block/journal? true]
  117. [?p :block/journal-day ?d]
  118. [(> ?d ?start)]
  119. [(< ?d ?next)]]
  120. :inputs [:today :7d-after]
  121. :collapsed? false}]}
  122. ;; Add your own commands to speedup.
  123. ;; E.g. [["js" "Javascript"]]
  124. :commands
  125. []
  126. ;; Macros replace texts and will make you more productive.
  127. ;; For example:
  128. ;; Add this to the macros below:
  129. ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
  130. ;; input "{{{poem red,blue}}}"
  131. ;; becomes
  132. ;; Rose is red, violet's blue. Life's ordered: Org assists you.
  133. :macros {}
  134. :markdown/version 2
  135. ;; The default level to be opened for the linked references.
  136. ;; For example, if we have some example blocks like this:
  137. ;; - a [[page]] (level 1)
  138. ;; - b (level 2)
  139. ;; - c (level 3)
  140. ;; - d (level 4)
  141. ;;
  142. ;; With the default value of level 2, `b` will be collapsed.
  143. ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
  144. :ref/default-open-blocks-level 2
  145. :ref/linked-references-collapsed-threshold 50
  146. ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
  147. ;; :srs/learning-fraction 0.5
  148. ;; the initial interval after the first successful review of a card (default 4)
  149. ;; :srs/initial-interval 4
  150. ;; hide specific properties for blocks
  151. ;; E.g. #{:created-at :updated-at}
  152. ;; :block-hidden-properties #{}
  153. }