config.edn 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. ;; Whether to show command doc on hover
  102. :ui/show-command-doc? true
  103. ;; Whether to show empty bullets for non-document mode (the default mode)
  104. :ui/show-empty-bullets? false
  105. ;; Pre-defined :view function to use in Query
  106. :query/views
  107. {:pprint
  108. (fn [r] [:pre.code (pprint r)])}
  109. ;; Pre-defined :result-transform function to use in Query
  110. :query/result-transforms
  111. {:sort-by-priority
  112. (fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}
  113. ;; The app will show those queries in today's journal page,
  114. ;; the "NOW" query asks the tasks which need to be finished "now",
  115. ;; the "NEXT" query asks the future tasks.
  116. :default-queries
  117. {:journals
  118. [{:title "🔨 NOW"
  119. :query [:find (pull ?h [*])
  120. :in $ ?start ?today
  121. :where
  122. [?h :block/marker ?marker]
  123. [(contains? #{"NOW" "DOING"} ?marker)]
  124. [?h :block/page ?p]
  125. [?p :block/journal? true]
  126. [?p :block/journal-day ?d]
  127. [(>= ?d ?start)]
  128. [(<= ?d ?today)]]
  129. :inputs [:14d :today]
  130. :result-transform (fn [result]
  131. (sort-by (fn [h]
  132. (get h :block/priority "Z")) result))
  133. :collapsed? false}
  134. {:title "📅 NEXT"
  135. :query [:find (pull ?h [*])
  136. :in $ ?start ?next
  137. :where
  138. [?h :block/marker ?marker]
  139. [(contains? #{"NOW" "LATER" "TODO"} ?marker)]
  140. [?h :block/page ?p]
  141. [?p :block/journal? true]
  142. [?p :block/journal-day ?d]
  143. [(> ?d ?start)]
  144. [(< ?d ?next)]]
  145. :inputs [:today :7d-after]
  146. :collapsed? false}]}
  147. ;; Add your own commands to slash menu to speedup.
  148. ;; E.g.
  149. ;; :commands
  150. ;; [
  151. ;; ["js" "Javascript"]
  152. ;; ["md" "Markdown"]
  153. ;; ]
  154. :commands
  155. []
  156. ;; By default, a block can only be collapsed if it has some children.
  157. ;; `:outliner/block-title-collapse-enabled? true` enables a block with a title
  158. ;; (multiple lines) can be collapsed too. For example:
  159. ;; - block title
  160. ;; block content
  161. :outliner/block-title-collapse-enabled? false
  162. ;; Macros replace texts and will make you more productive.
  163. ;; For example:
  164. ;; Change the :macros value below to:
  165. ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
  166. ;; input "{{poem red,blue}}"
  167. ;; becomes
  168. ;; Rose is red, violet's blue. Life's ordered: Org assists you.
  169. :macros {}
  170. ;; The default level to be opened for the linked references.
  171. ;; For example, if we have some example blocks like this:
  172. ;; - a [[page]] (level 1)
  173. ;; - b (level 2)
  174. ;; - c (level 3)
  175. ;; - d (level 4)
  176. ;;
  177. ;; With the default value of level 2, `b` will be collapsed.
  178. ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
  179. :ref/default-open-blocks-level 2
  180. :ref/linked-references-collapsed-threshold 50
  181. :favorites ["How to take dummy notes?"]
  182. ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
  183. ;; :srs/learning-fraction 0.5
  184. ;; the initial interval after the first successful review of a card (default 4)
  185. ;; :srs/initial-interval 4
  186. ;; hide specific properties for blocks
  187. ;; E.g. :block-hidden-properties #{:created-at :updated-at}
  188. ;; :block-hidden-properties #{}
  189. ;; Enable all your properties to have corresponding pages
  190. :property-pages/enabled? true
  191. ;; Properties to exclude from having property pages
  192. ;; E.g.:property-pages/excludelist #{:duration :author}
  193. ;; :property-pages/excludelist
  194. ;; Enables property values to contain a mix of tags, page-refs, special
  195. ;; punctuation and free-form text
  196. ;; :rich-property-values? true
  197. ;; logbook setup
  198. ;; :logbook/settings
  199. ;; {:with-second-support? false ;limit logbook to minutes, seconds will be eliminated
  200. ;; :enabled-in-all-blocks true ;display logbook in all blocks after timetracking
  201. ;; :enabled-in-timestamped-blocks false ;don't display logbook at all
  202. ;; }
  203. ;; Mobile photo uploading setup
  204. ;; :mobile/photo
  205. ;; {:allow-editing? true}
  206. ;; Mobile features options
  207. ;; Gestures
  208. ;; :mobile
  209. ;; {:gestures/disabled-in-block-with-tags ["kanban"]}
  210. ;; Extra CodeMirror options
  211. ;; :editor/extra-codemirror-options {:keyMap "emacs" :lineWrapping true}
  212. ;; ignore #+keyword: for parsing page references in orgmode
  213. ;; :ignored-page-references-keywords #{"author" "startup"}
  214. ;; Quick capture templates on mobile for recieving contents from other apps.
  215. ;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
  216. ;; by received contents from other apps. Note: the {} cannot be omitted.
  217. ;; - {time}: capture time
  218. ;; - {text}: text that users selected before sharing.
  219. ;; - {url}: url or assets path for media files stored in Logseq.
  220. ;; You can also reorder them, or even only use one or two of them in the template.
  221. ;; You can also insert or format any text in the template as shown in the following examples.
  222. ;; :quick-capture-templates
  223. ;; {:text "[[quick capture]] **{time}**: {text} from {url}"
  224. ;; :media "[[quick capture]] **{time}**: {url}"}
  225. ;; dwim (do what I mean) for Enter key when editing.
  226. ;; Context-awareness of Enter key makes editing more easily
  227. ; :dwim/settings {
  228. ; :admonition&src? true
  229. ; :markup? false
  230. ; :block-ref? true
  231. ; :page-ref? true
  232. ; :properties? true
  233. ; :list? true
  234. ; }
  235. }