config.edn 8.3 KB

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