config.edn 10 KB

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