config.edn 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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. ;; Set a custom date format for journal page title
  19. ;; Example:
  20. ;; :journal/page-title-format "EEE, do MMM yyyy"
  21. ;; Whether to enable hover on tooltip preview feature
  22. ;; Default is true, you can also toggle this via setting page
  23. :ui/enable-tooltip? true
  24. ;; Show brackets around page references
  25. ;; :ui/show-brackets? true
  26. ;; Enable showing the body of blocks when referencing them.
  27. :ui/show-full-blocks? false
  28. ;; Expand block references automatically when zoom-in
  29. :ui/auto-expand-block-refs? true
  30. ;; Enable Block timestamp
  31. :feature/enable-block-timestamps? false
  32. ;; Enable remove accents when searching.
  33. ;; After toggle this option, please remember to rebuild your search index by press (cmd+c cmd+s).
  34. :feature/enable-search-remove-accents? true
  35. ;; Enable journals
  36. ;; :feature/enable-journals? true
  37. ;; Enable flashcards
  38. ;; :feature/enable-flashcards? true
  39. ;; Enable Whiteboards
  40. ;; :feature/enable-whiteboards? true
  41. ;; Disable the built-in Scheduled tasks and deadlines query
  42. ;; :feature/disable-scheduled-and-deadline-query? true
  43. ;; Specify the number of days in the future to display in the
  44. ;; scheduled tasks and deadlines query, with a default value of 7 which
  45. ;; displays tasks for the next 7 days.
  46. ;; Example usage:
  47. ;; Display all scheduled and deadline blocks for the next 14 days
  48. ;; :scheduled/future-days 14
  49. ;; Specify the date on which the week starts.
  50. ;; Goes from 0 to 6 (Monday to Sunday), default to 6
  51. :start-of-week 6
  52. ;; Specify a custom CSS import
  53. ;; This option take precedence over your local `logseq/custom.css` file
  54. ;; You may find a list of awesome logseq themes here:
  55. ;; https://github.com/logseq/awesome-logseq#css-themes
  56. ;; Example:
  57. ;; :custom-css-url "@import url('https://cdn.jsdelivr.net/gh/dracula/logseq@master/custom.css');"
  58. ;; Specify a custom js import
  59. ;; This option take precedence over your local `logseq/custom.js` file
  60. ;; :custom-js-url ""
  61. ;; Set a custom Arweave gateway
  62. ;; Default gateway: https://arweave.net
  63. ;; :arweave/gateway ""
  64. ;; Set Bullet indentation when exporting
  65. ;; default option: tab
  66. ;; Possible options for `:export/bullet-indentation` are
  67. ;; 1. `:eight-spaces` as eight spaces
  68. ;; 2. `:four-spaces` as four spaces
  69. ;; 3. `:two-spaces` as two spaces
  70. ;; :export/bullet-indentation :tab
  71. ;; When :all-pages-public? true, export repo would export all pages within that repo.
  72. ;; Regardless of whether you've set any page to public or not.
  73. ;; Example:
  74. ;; :publishing/all-pages-public? true
  75. ;; Specify default home page and sidebar status for Logseq
  76. ;; If not specified, Logseq default opens journals page on startup
  77. ;; value for `:page` is name of page
  78. ;; Possible options for `:sidebar` are
  79. ;; 1. `"Contents"` to open up `Contents` in sidebar by default
  80. ;; 2. `page name` to open up some page in sidebar
  81. ;; 3. Or multiple pages in an array ["Contents" "Page A" "Page B"]
  82. ;; If `:sidebar` is not set, sidebar will be hidden
  83. ;; Example:
  84. ;; 1. Setup page "Changelog" as home page and "Contents" in sidebar
  85. ;; :default-home {:page "Changelog", :sidebar "Contents"}
  86. ;; 2. Setup page "Jun 3rd, 2021" as home page without sidebar
  87. ;; :default-home {:page "Jun 3rd, 2021"}
  88. ;; 3. Setup page "home" as home page with multiple pages in sidebar
  89. ;; :default-home {:page "home" :sidebar ["page a" "page b"]}
  90. ;; Tell logseq to use a specific folder in the repo as a default location for notes
  91. ;; if not specified, notes are stored in `pages` directory
  92. ;; :pages-directory "your-directory"
  93. ;; Tell logseq to use a specific folder in the repo as a default location for journals
  94. ;; if not specified, journals are stored in `journals` directory
  95. ;; :journals-directory "your-directory"
  96. ;; Set this to true will convert
  97. ;; `[[Grant Ideas]]` to `[[file:./grant_ideas.org][Grant Ideas]]` for org-mode
  98. ;; For more, see https://github.com/logseq/logseq/issues/672
  99. ;; :org-mode/insert-file-link? true
  100. ;; Setup custom shortcuts under `:shortcuts` key
  101. ;; Syntax:
  102. ;; 1. `+` means keys pressing simultaneously. eg: `ctrl+shift+a`
  103. ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `t` followed by `s`
  104. ;; 3. `mod` means `Ctrl` for Windows/Linux and `Command` for Mac
  105. ;; 4. use `false` to disable particular shortcut
  106. ;; 5. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
  107. ;; full list of configurable shortcuts are available below:
  108. ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  109. ;; Example:
  110. ;; :shortcuts
  111. ;; {:editor/new-block "enter"
  112. ;; :editor/new-line "shift+enter"
  113. ;; :editor/insert-link "mod+shift+k"
  114. ;; :editor/highlight false
  115. ;; :ui/toggle-settings "t s"
  116. ;; :editor/up ["ctrl+k" "up"]
  117. ;; :editor/down ["ctrl+j" "down"]
  118. ;; :editor/left ["ctrl+h" "left"]
  119. ;; :editor/right ["ctrl+l" "right"]}
  120. :shortcuts {}
  121. ;; By default, pressing `Enter` in the document mode will create a new line.
  122. ;; Set this to `true` so that it's the same behaviour as the usual outliner mode.
  123. :shortcut/doc-mode-enter-for-new-block? false
  124. ;; Block content larger than `block/content-max-length` will not be searchable
  125. ;; or editable for performance.
  126. :block/content-max-length 10000
  127. ;; Whether to show command doc on hover
  128. :ui/show-command-doc? true
  129. ;; Whether to show empty bullets for non-document mode (the default mode)
  130. :ui/show-empty-bullets? false
  131. ;; Pre-defined :view function to use with advanced queries
  132. :query/views
  133. {:pprint
  134. (fn [r] [:pre.code (pprint r)])}
  135. ;; Pre-defined :result-transform function for use with advanced queries
  136. :query/result-transforms
  137. {:sort-by-priority
  138. (fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}
  139. ;; The app will show those queries in today's journal page,
  140. ;; the "NOW" query asks the tasks which need to be finished "now",
  141. ;; the "NEXT" query asks the future tasks.
  142. :default-queries
  143. {:journals
  144. [{:title "🔨 NOW"
  145. :query [:find (pull ?h [*])
  146. :in $ ?start ?today
  147. :where
  148. [?h :block/marker ?marker]
  149. [(contains? #{"NOW" "DOING"} ?marker)]
  150. [?h :block/page ?p]
  151. [?p :block/journal? true]
  152. [?p :block/journal-day ?d]
  153. [(>= ?d ?start)]
  154. [(<= ?d ?today)]]
  155. :inputs [:14d :today]
  156. :result-transform (fn [result]
  157. (sort-by (fn [h]
  158. (get h :block/priority "Z")) result))
  159. :group-by-page? false
  160. :collapsed? false}
  161. {:title "📅 NEXT"
  162. :query [:find (pull ?h [*])
  163. :in $ ?start ?next
  164. :where
  165. [?h :block/marker ?marker]
  166. [(contains? #{"NOW" "LATER" "TODO"} ?marker)]
  167. [?h :block/page ?p]
  168. [?p :block/journal? true]
  169. [?p :block/journal-day ?d]
  170. [(> ?d ?start)]
  171. [(< ?d ?next)]]
  172. :inputs [:today :7d-after]
  173. :group-by-page? false
  174. :collapsed? false}]}
  175. ;; Add your own commands to slash menu to speedup.
  176. ;; E.g.
  177. ;; :commands
  178. ;; [
  179. ;; ["js" "Javascript"]
  180. ;; ["md" "Markdown"]
  181. ;; ]
  182. :commands
  183. []
  184. ;; By default, a block can only be collapsed if it has some children.
  185. ;; `:outliner/block-title-collapse-enabled? true` enables a block with a title
  186. ;; (multiple lines) can be collapsed too. For example:
  187. ;; - block title
  188. ;; block content
  189. :outliner/block-title-collapse-enabled? false
  190. ;; Macros replace texts and will make you more productive.
  191. ;; For example:
  192. ;; Change the :macros value below to:
  193. ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
  194. ;; input "{{poem red,blue}}"
  195. ;; becomes
  196. ;; Rose is red, violet's blue. Life's ordered: Org assists you.
  197. :macros {}
  198. ;; The default level to be opened for the linked references.
  199. ;; For example, if we have some example blocks like this:
  200. ;; - a [[page]] (level 1)
  201. ;; - b (level 2)
  202. ;; - c (level 3)
  203. ;; - d (level 4)
  204. ;;
  205. ;; With the default value of level 2, `b` will be collapsed.
  206. ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
  207. :ref/default-open-blocks-level 2
  208. :ref/linked-references-collapsed-threshold 50
  209. ;; Favorites to list on the left sidebar
  210. :favorites []
  211. ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
  212. ;; :srs/learning-fraction 0.5
  213. ;; the initial interval after the first successful review of a card (default 4)
  214. ;; :srs/initial-interval 4
  215. ;; hide specific properties for blocks
  216. ;; E.g. :block-hidden-properties #{:created-at :updated-at}
  217. ;; :block-hidden-properties #{}
  218. ;; Enable all your properties to have corresponding pages
  219. :property-pages/enabled? true
  220. ;; Properties to exclude from having property pages
  221. ;; E.g.:property-pages/excludelist #{:duration :author}
  222. ;; :property-pages/excludelist
  223. ;; By default, property value separated by commas will not be treated as
  224. ;; page references. You can add properties to enable it.
  225. ;; E.g. :property/separated-by-commas #{:alias :tags}
  226. ;; :property/separated-by-commas #{}
  227. ;; Properties that are ignored when parsing property values for references
  228. ;; :ignored-page-references-keywords #{:author :startup}
  229. ;; logbook setup
  230. ;; :logbook/settings
  231. ;; {:with-second-support? false ;limit logbook to minutes, seconds will be eliminated
  232. ;; :enabled-in-all-blocks true ;display logbook in all blocks after timetracking
  233. ;; :enabled-in-timestamped-blocks false ;don't display logbook at all
  234. ;; }
  235. ;; Mobile photo uploading setup
  236. ;; :mobile/photo
  237. ;; {:allow-editing? true
  238. ;; :quality 80}
  239. ;; Mobile features options
  240. ;; Gestures
  241. ;; :mobile
  242. ;; {:gestures/disabled-in-block-with-tags ["kanban"]}
  243. ;; Extra CodeMirror options
  244. ;; See https://codemirror.net/5/doc/manual.html#config for possible options
  245. ;; :editor/extra-codemirror-options {:keyMap "emacs" :lineWrapping true}
  246. ;; Enable logical outdenting
  247. ;; :editor/logical-outdenting? true
  248. ;; When both text and a file are in the clipboard, paste the file
  249. ;; :editor/preferred-pasting-file? true
  250. ;; Quick capture templates for receiving contents from other apps.
  251. ;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
  252. ;; by received contents from other apps. Note: the {} cannot be omitted.
  253. ;; - {time}: capture time
  254. ;; - {date}: capture date using current date format, use `[[{date}]]` to get a page reference
  255. ;; - {text}: text that users selected before sharing.
  256. ;; - {url}: url or assets path for media files stored in Logseq.
  257. ;; You can also reorder them, or even only use one or two of them in the template.
  258. ;; You can also insert or format any text in the template as shown in the following examples.
  259. ;; :quick-capture-templates
  260. ;; {:text "[[quick capture]] **{time}**: {text} from {url}"
  261. ;; :media "[[quick capture]] **{time}**: {url}"}
  262. ;; Quick capture options
  263. ;; :quick-capture-options {:insert-today? false :redirect-page? false :default-page "my page"}
  264. ;; File sync options
  265. ;; Ignore these files when syncing, regexp is supported.
  266. ;; :file-sync/ignore-files []
  267. ;; dwim (do what I mean) for Enter key when editing.
  268. ;; Context-awareness of Enter key makes editing more easily
  269. ; :dwim/settings {
  270. ; :admonition&src? true
  271. ; :markup? false
  272. ; :block-ref? true
  273. ; :page-ref? true
  274. ; :properties? true
  275. ; :list? true
  276. ; }
  277. ;; Decide the way to escape the special characters in the page title.
  278. ;; Warning:
  279. ;; This is a dangerous operation. If you want to change the setting,
  280. ;; should access the setting `Filename format` and follow the instructions.
  281. ;; Or you have to rename all the affected files manually then re-index on all
  282. ;; clients after the files are synced. Wrong handling may cause page titles
  283. ;; containing special characters to be messy.
  284. ;; Available values:
  285. ;; :file/name-format :triple-lowbar
  286. ;; ;use triple underscore `___` for slash `/` in page title
  287. ;; ;use Percent-encoding for other invalid characters
  288. :file/name-format :triple-lowbar
  289. ;; specify the format of the filename for journal files
  290. ;; :journal/file-name-format "yyyy_MM_dd"
  291. }