config.edn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. ;; Setup custom shortcuts under `:shortcuts` key
  74. ;; Syntax:
  75. ;; 1. `+` means keys pressing simultaneously. eg: `ctrl+shift+a`
  76. ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `s` follow by `t`
  77. ;; 3. `mod` means `Ctrl` for Windows/Linux and `Command` for Mac
  78. ;; 4. use `false` to disable particular shortcut
  79. ;; 4. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
  80. ;; full list of configurable shortcuts are available below:
  81. ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  82. ;; Example:
  83. ;; :shortcuts
  84. ;; {:editor/new-block "enter"
  85. ;; :editor/new-line "shift+enter"
  86. ;; :editor/insert-link "mod+shift+k"
  87. ;; :editor/hightlight false
  88. ;; :ui/toggle-settings "t s"
  89. ;; :editor/up ["ctrl+k" "up"]
  90. ;; :editor/down ["ctrl+j" "down"]
  91. ;; :editor/left ["ctrl+h" "left"]
  92. ;; :editor/right ["ctrl+l" "right"]}
  93. :shortcuts {}
  94. ;; By default, pressing `Enter` in the document mode will create a new line.
  95. ;; Set this to `true` so that it's the same behaviour as the usual outliner mode.
  96. :shortcut/doc-mode-enter-for-new-block? false
  97. ;; Block content larger than `block/content-max-length` will not be searchable
  98. ;; or editable for performance.
  99. :block/content-max-length 10000
  100. ;; Whether to show command doc on hover
  101. :ui/show-command-doc? true
  102. ;; Whether to show empty bullets for non-document mode (the default mode)
  103. :ui/show-empty-bullets? false
  104. ;; Pre-defined :view function to use with advanced queries
  105. :query/views
  106. {:pprint
  107. (fn [r] [:pre.code (pprint r)])}
  108. ;; Pre-defined :result-transform function for use with advanced queries
  109. :query/result-transforms
  110. {:sort-by-priority
  111. (fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}
  112. ;; The app will show those queries in today's journal page,
  113. ;; the "NOW" query asks the tasks which need to be finished "now",
  114. ;; the "NEXT" query asks the future tasks.
  115. :default-queries
  116. {:journals
  117. [{:title "🔨 NOW"
  118. :query [:find (pull ?h [*])
  119. :in $ ?start ?today
  120. :where
  121. [?h :block/marker ?marker]
  122. [(contains? #{"NOW" "DOING"} ?marker)]
  123. [?h :block/page ?p]
  124. [?p :block/journal? true]
  125. [?p :block/journal-day ?d]
  126. [(>= ?d ?start)]
  127. [(<= ?d ?today)]]
  128. :inputs [:14d :today]
  129. :result-transform (fn [result]
  130. (sort-by (fn [h]
  131. (get h :block/priority "Z")) result))
  132. :collapsed? false}
  133. {:title "📅 NEXT"
  134. :query [:find (pull ?h [*])
  135. :in $ ?start ?next
  136. :where
  137. [?h :block/marker ?marker]
  138. [(contains? #{"NOW" "LATER" "TODO"} ?marker)]
  139. [?h :block/page ?p]
  140. [?p :block/journal? true]
  141. [?p :block/journal-day ?d]
  142. [(> ?d ?start)]
  143. [(< ?d ?next)]]
  144. :inputs [:today :7d-after]
  145. :collapsed? false}]}
  146. ;; Add your own commands to slash menu to speedup.
  147. ;; E.g.
  148. ;; :commands
  149. ;; [
  150. ;; ["js" "Javascript"]
  151. ;; ["md" "Markdown"]
  152. ;; ]
  153. :commands
  154. []
  155. ;; By default, a block can only be collapsed if it has some children.
  156. ;; `:outliner/block-title-collapse-enabled? true` enables a block with a title
  157. ;; (multiple lines) can be collapsed too. For example:
  158. ;; - block title
  159. ;; block content
  160. :outliner/block-title-collapse-enabled? false
  161. ;; Macros replace texts and will make you more productive.
  162. ;; For example:
  163. ;; Change the :macros value below to:
  164. ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
  165. ;; input "{{poem red,blue}}"
  166. ;; becomes
  167. ;; Rose is red, violet's blue. Life's ordered: Org assists you.
  168. :macros {}
  169. ;; The default level to be opened for the linked references.
  170. ;; For example, if we have some example blocks like this:
  171. ;; - a [[page]] (level 1)
  172. ;; - b (level 2)
  173. ;; - c (level 3)
  174. ;; - d (level 4)
  175. ;;
  176. ;; With the default value of level 2, `b` will be collapsed.
  177. ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
  178. :ref/default-open-blocks-level 2
  179. :ref/linked-references-collapsed-threshold 50
  180. :favorites []
  181. ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
  182. ;; :srs/learning-fraction 0.5
  183. ;; the initial interval after the first successful review of a card (default 4)
  184. ;; :srs/initial-interval 4
  185. ;; hide specific properties for blocks
  186. ;; E.g. :block-hidden-properties #{:created-at :updated-at}
  187. ;; :block-hidden-properties #{}
  188. ;; Enable all your properties to have corresponding pages
  189. :property-pages/enabled? true
  190. ;; Properties to exclude from having property pages
  191. ;; E.g.:property-pages/excludelist #{:duration :author}
  192. ;; :property-pages/excludelist
  193. ;; By default, property value separated by commas will not be treated as
  194. ;; page references. You can add properties to enable it.
  195. ;; E.g. :property/separated-by-commas #{:alias :tags}
  196. ;; :property/separated-by-commas #{}
  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. ;; File sync options
  226. ;; Ignore these files when syncing, regexp is supported.
  227. ;; :file-sync/ignore-files []
  228. ;; dwim (do what I mean) for Enter key when editing.
  229. ;; Context-awareness of Enter key makes editing more easily
  230. ; :dwim/settings {
  231. ; :admonition&src? true
  232. ; :markup? false
  233. ; :block-ref? true
  234. ; :page-ref? true
  235. ; :properties? true
  236. ; :list? true
  237. ; }
  238. ;; Decide the way to escape the special characters in the page title.
  239. ;; Warning:
  240. ;; This is a dangerous operation. If you want to change the setting,
  241. ;; should access the setting `Filename format` and follow the instructions.
  242. ;; Or you have to rename all the affected files manually then re-index on all
  243. ;; clients after the files are synced. Wrong handling may cause page titles
  244. ;; containing special characters to be messy.
  245. ;; Available values:
  246. ;; :file/name-format :triple-lowbar
  247. ;; ;use triple underscore `___` for slash `/` in page title
  248. ;; ;use Percent-encoding for other invalid characters
  249. ;; :file/name-format :legacy
  250. ;; ;use Percent-encoding for slash and other invalid characters
  251. ;; ;parse `.` in file name as slash `/` in page title
  252. :file/name-format :triple-lowbar
  253. }