config.edn 14 KB

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