config.edn 12 KB

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