config.edn 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. {:meta/version 1
  2. ;; Set the preferred format.
  3. ;; This is _only_ for file graphs.
  4. ;; Available options:
  5. ;; - Markdown (default)
  6. ;; - Org
  7. ;; :preferred-format "Markdown"
  8. ;; Set the preferred workflow style.
  9. ;; This is _only_ for file graphs.
  10. ;; Available options:
  11. ;; - :now for NOW/LATER style (default)
  12. ;; - :todo for TODO/DOING style
  13. :preferred-workflow :now
  14. ;; Exclude directories/files.
  15. ;; This is _only_ for file graphs.
  16. ;; Example usage:
  17. ;; :hidden ["/archived" "/test.md" "../assets/archived"]
  18. :hidden []
  19. ;; Define the default journal page template.
  20. ;; Enter the template name between the quotes.
  21. ;; This is _only_ for file graphs.
  22. :default-templates
  23. {:journals ""}
  24. ;; Set a custom date format for the journal page title.
  25. ;; This is _only_ for file graphs.
  26. ;; Default value: "MMM do, yyyy"
  27. ;; e.g., "Jan 19th, 2038"
  28. ;; Example usage e.g., "Tue 19th, Jan 2038"
  29. ;; :journal/page-title-format "EEE do, MMM yyyy"
  30. ;; Specify the journal filename format using a valid date format string.
  31. ;; !Warning:
  32. ;; This configuration is not retroactive and affects only new journals.
  33. ;; To show old journal files in the app, manually rename the files in the
  34. ;; journal directory to match the new format.
  35. ;; This is _only_ for file graphs.
  36. ;; Default value: "yyyy_MM_dd"
  37. ;; :journal/file-name-format "yyyy_MM_dd"
  38. ;; Enable tooltip preview on hover.
  39. ;; Default value: true
  40. :ui/enable-tooltip? true
  41. ;; Display brackets [[]] around page references.
  42. ;; Default value: true
  43. ;; :ui/show-brackets? true
  44. ;; Display all lines of a block when referencing ((block)).
  45. ;; Default value: false
  46. :ui/show-full-blocks? false
  47. ;; Automatically expand block references when zooming in.
  48. ;; Default value: true
  49. :ui/auto-expand-block-refs? true
  50. ;; Hide empty block properties
  51. ;; This is _only_ for DB graphs.
  52. ;; Default value: false
  53. ;; :ui/hide-empty-properties? false
  54. ;; Disable accent marks when searching.
  55. ;; After changing this setting, rebuild the search index by pressing (^C ^S).
  56. ;; Default value: true
  57. :feature/enable-search-remove-accents? true
  58. ;; Enable journals.
  59. ;; Default value: true
  60. ;; :feature/enable-journals? true
  61. ;; Enable flashcards.
  62. ;; Default value: true
  63. ;; :feature/enable-flashcards? true
  64. ;; Enable whiteboards.
  65. ;; Default value: true
  66. ;; :feature/enable-whiteboards? true
  67. ;; Disable the journal's built-in 'Scheduled tasks and deadlines' query.
  68. ;; Default value: false
  69. ;; :feature/disable-scheduled-and-deadline-query? false
  70. ;; Specify the number of days displayed in the future for
  71. ;; the 'scheduled tasks and deadlines' query.
  72. ;; Example usage:
  73. ;; Display all scheduled and deadline blocks for the next 14 days:
  74. ;; :scheduled/future-days 14
  75. ;; Default value: 7
  76. ;; :scheduled/future-days 7
  77. ;; Specify the first day of the week.
  78. ;; Available options:
  79. ;; - integer from 0 to 6 (Monday to Sunday)
  80. ;; Default value: 6 (Sunday)
  81. :start-of-week 6
  82. ;; Specify a custom CSS import.
  83. ;; This option takes precedence over the local `logseq/custom.css` file.
  84. ;; Example usage:
  85. ;; :custom-css-url "@import url('https://cdn.jsdelivr.net/gh/dracula/logseq@master/custom.css');"
  86. ;; Specify a custom JS import.
  87. ;; This option takes precedence over the local `logseq/custom.js` file.
  88. ;; Example usage:
  89. ;; :custom-js-url "https://cdn.logseq.com/custom.js"
  90. ;; Set bullet indentation when exporting
  91. ;; Available options:
  92. ;; - `:eight-spaces` as eight spaces
  93. ;; - `:four-spaces` as four spaces
  94. ;; - `:two-spaces` as two spaces
  95. ;; - `:tab` as a tab character (default)
  96. ;; :export/bullet-indentation :tab
  97. ;; Publish all pages within the Graph
  98. ;; Regardless of whether individual pages have been marked as public.
  99. ;; Default value: false
  100. ;; :publishing/all-pages-public? false
  101. ;; Define the default home page and sidebar status.
  102. ;; If unspecified, the journal page will be loaded on startup and the right sidebar will stay hidden.
  103. ;; The `:page` value represents the name of the page displayed at startup.
  104. ;; Available options for `:sidebar` are:
  105. ;; - "Contents" to display the Contents page in the right sidebar.
  106. ;; - A specific page name to display in the right sidebar.
  107. ;; - An array of multiple pages, e.g., ["Contents" "Page A" "Page B"].
  108. ;; If `:sidebar` remains unset, the right sidebar will stay hidden.
  109. ;; Examples:
  110. ;; 1. Set "Changelog" as the home page and display "Contents" in the right sidebar:
  111. ;; :default-home {:page "Changelog", :sidebar "Contents"}
  112. ;; 2. Set "Jun 3rd, 2021" as the home page without the right sidebar:
  113. ;; :default-home {:page "Jun 3rd, 2021"}
  114. ;; 3. Set "home" as the home page and display multiple pages in the right sidebar:
  115. ;; :default-home {:page "home", :sidebar ["Page A" "Page B"]}
  116. ;; Set the default location for storing notes.
  117. ;; This is _only_ for file graphs.
  118. ;; Default value: "pages"
  119. ;; :pages-directory "pages"
  120. ;; Set the default location for storing journals.
  121. ;; This is _only_ for file graphs.
  122. ;; Default value: "journals"
  123. ;; :journals-directory "journals"
  124. ;; Set the default location for storing whiteboards.
  125. ;; This is _only_ for file graphs.
  126. ;; Default value: "whiteboards"
  127. ;; :whiteboards-directory "whiteboards"
  128. ;; Enabling this option converts
  129. ;; [[Grant Ideas]] to [[file:./grant_ideas.org][Grant Ideas]] for org-mode.
  130. ;; For more information, visit https://github.com/logseq/logseq/issues/672
  131. ;; This is _only_ for file graphs.
  132. ;; :org-mode/insert-file-link? false
  133. ;; Configure custom shortcuts.
  134. ;; Syntax:
  135. ;; 1. + indicates simultaneous key presses, e.g., `Ctrl+Shift+a`.
  136. ;; 2. A space between keys represents key chords, e.g., `t s` means
  137. ;; pressing `t` followed by `s`.
  138. ;; 3. mod refers to `Ctrl` for Windows/Linux and `Command` for Mac.
  139. ;; 4. Use false to disable a specific shortcut.
  140. ;; 5. You can define multiple bindings for a single action, e.g., ["ctrl+j" "down"].
  141. ;; The full list of configurable shortcuts is available at:
  142. ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  143. ;; Example:
  144. ;; :shortcuts
  145. ;; {:editor/new-block "enter"
  146. ;; :editor/new-line "shift+enter"
  147. ;; :editor/insert-link "mod+shift+k"
  148. ;; :editor/highlight false
  149. ;; :ui/toggle-settings "t s"
  150. ;; :editor/up ["ctrl+k" "up"]
  151. ;; :editor/down ["ctrl+j" "down"]
  152. ;; :editor/left ["ctrl+h" "left"]
  153. ;; :editor/right ["ctrl+l" "right"]}
  154. :shortcuts {}
  155. ;; Configure the behavior of pressing Enter in document mode.
  156. ;; if set to true, pressing Enter will create a new block.
  157. ;; Default value: false
  158. :shortcut/doc-mode-enter-for-new-block? false
  159. ;; Block content larger than `block/title-max-length` will not be searchable
  160. ;; or editable for performance.
  161. ;; Default value: 10000
  162. :block/title-max-length 10000
  163. ;; Display command documentation on hover.
  164. ;; Default value: true
  165. :ui/show-command-doc? true
  166. ;; Display empty bullet points.
  167. ;; Default value: false
  168. :ui/show-empty-bullets? false
  169. ;; Pre-defined :view function to use with advanced queries.
  170. :query/views
  171. {:pprint
  172. (fn [r] [:pre.code (pprint r)])}
  173. ;; Advanced queries `:result-transform` function.
  174. ;; Transform the query result before displaying it.
  175. ;; Example usage for DB graphs:
  176. ;; :query/result-transforms
  177. ;; {:sort-by-priority
  178. ;; (fn [result] (sort-by (fn [h] (get h :logseq.property/priority "Z")) result))}
  179. ;; Queries will be displayed at the bottom of today's journal page.
  180. ;; Example usage:
  181. ;; :default-queries
  182. ;; {:journals []}
  183. ;; Add custom commands to the command palette
  184. ;; Example usage:
  185. ;; :commands
  186. ;; [
  187. ;; ["js" "Javascript"]
  188. ;; ["md" "Markdown"]
  189. ;; ]
  190. :commands []
  191. ;; Enable collapsing blocks with titles but no children.
  192. ;; By default, only blocks with children can be collapsed.
  193. ;; Setting `:outliner/block-title-collapse-enabled?` to true allows collapsing
  194. ;; blocks with titles (multiple lines) and content. For example:
  195. ;; - block title
  196. ;; block content
  197. ;; Default value: false
  198. :outliner/block-title-collapse-enabled? false
  199. ;; Macros replace texts and will make you more productive.
  200. ;; Example usage:
  201. ;; Change the :macros value below to:
  202. ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
  203. ;; input "{{poem red,blue}}"
  204. ;; becomes
  205. ;; Rose is red, violet's blue. Life's ordered: Org assists you.
  206. :macros {}
  207. ;; Configure the default expansion level for linked references.
  208. ;; For example, consider the following block hierarchy:
  209. ;; - a [[page]] (level 1)
  210. ;; - b (level 2)
  211. ;; - c (level 3)
  212. ;; - d (level 4)
  213. ;;
  214. ;; With the default value of level 2, block b will be collapsed.
  215. ;; If the level's value is set to 3, block c will be collapsed.
  216. ;; Default value: 2
  217. :ref/default-open-blocks-level 2
  218. ;; Configure the threshold for linked references before collapsing.
  219. ;; Default value: 100
  220. :ref/linked-references-collapsed-threshold 50
  221. ;; Graph view configuration.
  222. ;; Example usage:
  223. ;; :graph/settings
  224. ;; {:orphan-pages? true ; Default value: true
  225. ;; :builtin-pages? false ; Default value: false
  226. ;; :excluded-pages? false ; Default value: false
  227. ;; :journal? false} ; Default value: false
  228. ;; Graph view configuration.
  229. ;; Example usage:
  230. ;; :graph/forcesettings
  231. ;; {:link-dist 180 ; Default value: 180
  232. ;; :charge-strength -600 ; Default value: -600
  233. ;; :charge-range 600} ; Default value: 600
  234. ;; Favorites to list on the left sidebar
  235. ;; This is _only_ for file graphs.
  236. :favorites []
  237. ;; Set flashcards interval.
  238. ;; This is _only_ for file graphs.
  239. ;; Expected value:
  240. ;; - Float between 0 and 1
  241. ;; higher values result in faster changes to the next review interval.
  242. ;; Default value: 0.5
  243. ;; :srs/learning-fraction 0.5
  244. ;; Set the initial interval after the first successful review of a card.
  245. ;; This is _only_ for file graphs.
  246. ;; Default value: 4
  247. ;; :srs/initial-interval 4
  248. ;; Hide specific block properties.
  249. ;; This is _only_ for file graphs.
  250. ;; Example usage:
  251. ;; :block-hidden-properties #{:public :icon}
  252. ;; Create a page for all properties.
  253. ;; This is _only_ for file graphs.
  254. ;; Default value: true
  255. :property-pages/enabled? true
  256. ;; Properties to exclude from having property pages
  257. ;; This is _only_ for file graphs.
  258. ;; Example usage:
  259. ;; :property-pages/excludelist #{:duration :author}
  260. ;; By default, property value separated by commas will not be treated as
  261. ;; page references. You can add properties to enable it.
  262. ;; This is _only_ for file graphs.
  263. ;; Example usage:
  264. ;; :property/separated-by-commas #{:alias :tags}
  265. ;; Properties that are ignored when parsing property values for references
  266. ;; This is _only_ for file graphs.
  267. ;; Example usage:
  268. ;; :ignored-page-references-keywords #{:author :website}
  269. ;; logbook configuration.
  270. ;; This is _only_ for file graphs.
  271. ;; :logbook/settings
  272. ;; {:with-second-support? false ;limit logbook to minutes, seconds will be eliminated
  273. ;; :enabled-in-all-blocks true ;display logbook in all blocks after timetracking
  274. ;; :enabled-in-timestamped-blocks false ;don't display logbook at all
  275. ;; }
  276. ;; Mobile photo upload configuration.
  277. ;; :mobile/photo
  278. ;; {:allow-editing? true
  279. ;; :quality 80}
  280. ;; Mobile features options
  281. ;; Gestures
  282. ;; Example usage:
  283. ;; :mobile
  284. ;; {:gestures/disabled-in-block-with-tags ["kanban"]}
  285. ;; Extra CodeMirror options
  286. ;; See https://codemirror.net/5/doc/manual.html#config for possible options
  287. ;; Example usage:
  288. ;; :editor/extra-codemirror-options
  289. ;; {:lineWrapping false ; Default value: false
  290. ;; :lineNumbers true ; Default value: true
  291. ;; :readOnly false} ; Default value: false
  292. ;; Enable logical outdenting
  293. ;; Default value: false
  294. ;; :editor/logical-outdenting? false
  295. ;; Prefer pasting the file when text and a file are in the clipboard.
  296. ;; Default value: false
  297. ;; :editor/preferred-pasting-file? false
  298. ;; Quick capture templates for receiving content from other apps.
  299. ;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
  300. ;; by receiving content from other apps. Note: the {} cannot be omitted.
  301. ;; - {time}: capture time
  302. ;; - {date}: capture date using current date format, use `[[{date}]]` to get a page reference
  303. ;; - {text}: text that users selected before sharing.
  304. ;; - {url}: URL or assets path for media files stored in Logseq.
  305. ;; You can also reorder them or use only one or two of them in the template.
  306. ;; You can also insert or format any text in the template, as shown in the following examples.
  307. ;; :quick-capture-templates
  308. ;; {:text "[[quick capture]] **{time}**: {text} from {url}"
  309. ;; :media "[[quick capture]] **{time}**: {url}"}
  310. ;; Quick capture options.
  311. ;; - insert-today? Insert the capture at the end of today's journal page (boolean).
  312. ;; - redirect-page? Redirect to the quick capture page after capturing (boolean).
  313. ;; - default-page The default page to capture to if insert-today? is false (string).
  314. ;; :quick-capture-options
  315. ;; {:insert-today? false ;; Default value: true
  316. ;; :redirect-page? false ;; Default value: false
  317. ;; :default-page "quick capture"} ;; Default page: "quick capture"
  318. ;; File sync options
  319. ;; Ignore these files when syncing, regexp is supported.
  320. ;; This is _only_ for file graphs.
  321. ;; :file-sync/ignore-files []
  322. ;; Configure the Enter key behavior for
  323. ;; context-aware editing with DWIM (Do What I Mean).
  324. ;; context-aware Enter key behavior implies that pressing Enter will
  325. ;; have different outcomes based on the context.
  326. ;; For instance, pressing Enter within a list generates a new list item,
  327. ;; whereas pressing Enter in a block reference opens the referenced block.
  328. ;; :dwim/settings
  329. ;; {:admonition&src? true ;; Default value: true
  330. ;; :markup? false ;; Default value: false
  331. ;; :block-ref? true ;; Default value: true
  332. ;; :page-ref? true ;; Default value: true
  333. ;; :properties? true ;; Default value: true
  334. ;; :list? false} ;; Default value: false
  335. ;; Configure the escaping method for special characters in page titles.
  336. ;; This is _only_ for file graphs.
  337. ;; Warning:
  338. ;; This is a dangerous operation. To modify the setting,
  339. ;; you'll need to manually rename all affected files and
  340. ;; re-index them on all clients after synchronization.
  341. ;; Incorrect handling may result in messy page titles.
  342. ;; Available options:
  343. ;; - :triple-lowbar (default)
  344. ;; ;use triple underscore `___` for slash `/` in page title
  345. ;; ;use Percent-encoding for other invalid characters
  346. :file/name-format :triple-lowbar}