config.edn 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. {:meta/version 1
  2. ;; Currently, we support either "Markdown" or "Org".
  3. ;; This can overwrite your global preference so that
  4. ;; maybe your personal preferred format is Org but you'd
  5. ;; need to use Markdown for some projects.
  6. ;; :preferred-format ""
  7. ;; Preferred workflow style.
  8. ;; Value is either ":now" for NOW/LATER style,
  9. ;; or ":todo" for TODO/DOING style.
  10. :preferred-workflow :now
  11. ;; The app will ignore those directories or files.
  12. ;; E.g. "/archived" "/test.md"
  13. :hidden []
  14. ;; When creating the new journal page, the app will use your template if there is one.
  15. ;; You only need to input your template name here.
  16. :default-templates
  17. {:journals ""}
  18. ;; Whether to enable hover on tooltip preview feature
  19. ;; Default is true, you can also toggle this via setting page
  20. :ui/enable-tooltip? true
  21. ;; Enable Block timestamp
  22. :feature/enable-block-timestamps? false
  23. ;; Disable Built-in Scheduled and deadline Query
  24. ;; :feature/disable-scheduled-and-deadline-query? true
  25. ;; Specify the date on which the week starts.
  26. ;; Goes from 0 to 6 (Monday to Sunday), default to 6
  27. :start-of-week 6
  28. ;; Specify a custom CSS import
  29. ;; This option take precedence over your local `logseq/custom.css` file
  30. ;; You may find a list of awesome logseq themes here:
  31. ;; https://github.com/logseq/awesome-logseq#css-themes
  32. ;; Example:
  33. ;; :custom-css-url "@import url('https://cdn.jsdelivr.net/gh/dracula/logseq@master/custom.css');"
  34. ;; Set Bullet indentation when exporting
  35. ;; default option: tab
  36. ;; Possible options are for `:sidebar` are
  37. ;; 1. `:eight-spaces` as eight spaces
  38. ;; 2. `:four-spaces` as four spaces
  39. ;; 3. `:two-spaces` as two spaces
  40. ;; :export/bullet-indentation :tab
  41. ;; When :all-pages-public? true, export repo would export all pages within that repo.
  42. ;; Regardless of whether you've set any page to public or not.
  43. ;; Example:
  44. ;; :publishing/all-pages-public? true
  45. ;; Specify default home page and sidebar status for Logseq
  46. ;; If not specified, Logseq default opens journals page on startup
  47. ;; value for `:page` is name of page
  48. ;; Possible options for `:sidebar` are
  49. ;; 1. `"Contents"` to open up `Contents` in sidebar by default
  50. ;; 2. `page name` to open up some page in sidebar
  51. ;; 3. Or multiple pages in an array ["Contents" "Page A" "Page B"]
  52. ;; If `:sidebar` is not set, sidebar will be hidden
  53. ;; Example:
  54. ;; 1. Setup page "Changelog" as home page and "Contents" in sidebar
  55. ;; :default-home {:page "Changelog", :sidebar "Contents"}
  56. ;; 2. Setup page "Jun 3rd, 2021" as home page without sidebar
  57. ;; :default-home {:page "Jun 3rd, 2021"}
  58. ;; 3. Setup page "home" as home page with multiple pages in sidebar
  59. ;; :default-home {:page "home" :sidebar ["page a" "page b"]}
  60. ;; Tell logseq to use a specific folder in the repo as a default location for notes
  61. ;; if not specified, notes are stored in `pages` directory
  62. ;; :pages-directory "your-directory"
  63. ;; Tell logseq to use a specific folder in the repo as a default location for journals
  64. ;; if not specified, journals are stored in `journals` directory
  65. ;; :journals-directory "your-directory"
  66. ;; Set this to true will convert
  67. ;; `[[Grant Ideas]]` to `[[file:./grant_ideas.org][Grant Ideas]]` for org-mode
  68. ;; For more, see https://github.com/logseq/logseq/issues/672
  69. ;; :org-mode/insert-file-link? true
  70. ;; If you prefer to use the file name as the page title
  71. ;; instead of the first heading's title
  72. ;; the only option for now is `file`
  73. ;; :page-name-order "file"
  74. ;; Setup custom shortcuts under `:shortcuts` key
  75. ;; Syntax:
  76. ;; 1. `+` means keys pressing simultaneously. eg: `ctrl+shift+a`
  77. ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `s` follow by `t`
  78. ;; 3. `mod` means `Ctrl` for Windows/Linux and `Command` for Mac
  79. ;; 4. use `false` to disable particular shortcut
  80. ;; 4. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
  81. ;; full list of configurable shortcuts are available below:
  82. ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  83. ;; Example:
  84. ;; :shortcuts
  85. ;; {:editor/new-block "enter"
  86. ;; :editor/new-line "shift+enter"
  87. ;; :editor/insert-link "mod+shift+k"
  88. ;; :editor/hightlight false
  89. ;; :ui/toggle-settings "t s"
  90. ;; :editor/up ["ctrl+k" "up"]
  91. ;; :editor/down ["ctrl+j" "down"]
  92. ;; :editor/left ["ctrl+h" "left"]
  93. ;; :editor/right ["ctrl+l" "right"]}
  94. :shortcuts {}
  95. ;; By default, pressing `Enter` in the document mode will create a new line.
  96. ;; Set this to `true` so that it's the same behaviour as the usual outliner mode.
  97. :shortcut/doc-mode-enter-for-new-block? false
  98. ;; Whether to show command doc on hover
  99. :ui/show-command-doc? true
  100. ;; Whether to show empty bullets for non-document mode (the default mode)
  101. :ui/show-empty-bullets? false
  102. ;; Pre-defined :view function to use in Query
  103. :query/views
  104. {:pprint
  105. (fn [r] [:pre.code (pprint r)])}
  106. ;; Pre-defined :result-transform function to use in Query
  107. :query/result-transforms
  108. {:sort-by-priority
  109. (fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}
  110. ;; The app will show those queries in today's journal page,
  111. ;; the "NOW" query asks the tasks which need to be finished "now",
  112. ;; the "NEXT" query asks the future tasks.
  113. :default-queries
  114. {:journals
  115. [{:title "🔨 NOW"
  116. :query [:find (pull ?h [*])
  117. :in $ ?start ?today
  118. :where
  119. [?h :block/marker ?marker]
  120. [(contains? #{"NOW" "DOING"} ?marker)]
  121. [?h :block/page ?p]
  122. [?p :block/journal? true]
  123. [?p :block/journal-day ?d]
  124. [(>= ?d ?start)]
  125. [(<= ?d ?today)]]
  126. :inputs [:14d :today]
  127. :result-transform (fn [result]
  128. (sort-by (fn [h]
  129. (get h :block/priority "Z")) result))
  130. :collapsed? false}
  131. {:title "📅 NEXT"
  132. :query [:find (pull ?h [*])
  133. :in $ ?start ?next
  134. :where
  135. [?h :block/marker ?marker]
  136. [(contains? #{"NOW" "LATER" "TODO"} ?marker)]
  137. [?h :block/ref-pages ?p]
  138. [?p :block/journal? true]
  139. [?p :block/journal-day ?d]
  140. [(> ?d ?start)]
  141. [(< ?d ?next)]]
  142. :inputs [:today :7d-after]
  143. :collapsed? false}]}
  144. ;; Add your own commands to speedup.
  145. ;; E.g. [["js" "Javascript"]]
  146. :commands
  147. []
  148. ;; By default, a block can only be collapsed if it has some children.
  149. ;; `:outliner/block-title-collapse-enabled? true` enables a block with a title
  150. ;; (multiple lines) can be collapsed too. For example:
  151. ;; - block title
  152. ;; block content
  153. :outliner/block-title-collapse-enabled? false
  154. ;; Macros replace texts and will make you more productive.
  155. ;; For example:
  156. ;; Add this to the macros below:
  157. ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
  158. ;; input "{{{poem red,blue}}}"
  159. ;; becomes
  160. ;; Rose is red, violet's blue. Life's ordered: Org assists you.
  161. :macros {}
  162. ;; The default level to be opened for the linked references.
  163. ;; For example, if we have some example blocks like this:
  164. ;; - a [[page]] (level 1)
  165. ;; - b (level 2)
  166. ;; - c (level 3)
  167. ;; - d (level 4)
  168. ;;
  169. ;; With the default value of level 2, `b` will be collapsed.
  170. ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
  171. :ref/default-open-blocks-level 2
  172. :ref/linked-references-collapsed-threshold 50
  173. :favorites ["How to take dummy notes?"]
  174. ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
  175. ;; :srs/learning-fraction 0.5
  176. ;; the initial interval after the first successful review of a card (default 4)
  177. ;; :srs/initial-interval 4
  178. ;; hide specific properties for blocks
  179. ;; E.g. #{:created-at :updated-at}
  180. ;; :block-hidden-properties #{}
  181. ;; logbook setup
  182. ;; :logbook/settings
  183. ;; {:with-second-support? false ;limit logbook to minutes, seconds will be eliminated
  184. ;; :enabled-in-all-blocks true ;display logbook in all blocks after timetracking
  185. ;; :enabled-in-timestamped-blocks false ;don't display logbook at all
  186. ;; }
  187. ;; Mobile photo uploading setup
  188. ;; :mobile/photo
  189. ;; {:allow-editing? true}
  190. ;; Extra CodeMirror options
  191. ;; :editor/extra-codemirror-options {:keyMap "emacs" :lineWrapping true}
  192. ;; ignore #+keyword: for parsing page references in orgmode
  193. ;; :ignored-page-references-keywords #{"author" "startup"}
  194. ;; Quick capture templates on mobile for recieving contents from other apps.
  195. ;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
  196. ;; by received contents from other apps. Note: the {} cannot be omitted.
  197. ;; - {time}: capture time
  198. ;; - {text}: text that users selected before sharing.
  199. ;; - {url}: url or assets path for media files stored in Logseq.
  200. ;; You can also reorder them, or even only use one or two of them in the template.
  201. ;; You can also insert or format any text in the template as shown in the following examples.
  202. ;; :quick-capture-templates
  203. ;; {:text "[[quick capture]] **{time}**: \n - {text} from {url}"
  204. ;; :media "[[quick capture]] **{time}**: \n - {url}"}
  205. }