config.edn 8.2 KB

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