Advertisement
bgrolleman

Tools on Tech - Config.edn - June 2023

Jun 18th, 2023
1,731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Clojure 12.47 KB | Source Code | 0 0
  1. {:meta/version 1
  2.  
  3.  ;; Currently, we support either "Markdown" or "Org".
  4.  ;; This can overwrite your global preference so that
  5.  ;; maybe your personal preferred format is Org but you'd
  6.  ;; need to use Markdown for some projects.
  7.  ;; :preferred-format ""
  8.  
  9.  ;; Preferred workflow style.
  10.  ;; Value is either ":now" for NOW/LATER style,
  11.  ;; or ":todo" for TODO/DOING style.
  12.  :preferred-workflow :todo
  13.  
  14.  ;; The app will ignore those directories or files.
  15.  ;; E.g. :hidden ["/archived" "/test.md" "../assets/archived"]
  16.  :hidden []
  17.  
  18.  ;; When creating the new journal page, the app will use your template if there is one.
  19.  ;; You only need to input your template name here.
  20.  :default-templates
  21.  {:journals ""}
  22.  
  23.  ;; Whether to enable hover on tooltip preview feature
  24.  ;; Default is true, you can also toggle this via setting page
  25.  :ui/enable-tooltip? true
  26.  
  27.  ;; Enable Block timestamp
  28.  :feature/enable-block-timestamps? true
  29.  
  30.  ;; Enable remove accents when searching.
  31.  ;; After toggle this option, please remember to rebuild your search index by press (cmd+c cmd+s).
  32.  :feature/enable-search-remove-accents? true
  33.  
  34.  ;; Disable Built-in Scheduled and deadline Query
  35.  ;; :feature/disable-scheduled-and-deadline-query? true
  36.  
  37.  ;; Specify the date on which the week starts.
  38.  ;; Goes from 0 to 6 (Monday to Sunday), default to 6
  39.  :start-of-week 6
  40.  
  41.  ;; Specify a custom CSS import
  42.  ;; This option take precedence over your local `logseq/custom.css` file
  43.  ;; You may find a list of awesome logseq themes here:
  44.  ;; https://github.com/logseq/awesome-logseq#css-themes
  45.  ;; Example:
  46.  :custom-css-url "@import url('https://cdn.jsdelivr.net/gh/dracula/logseq@master/custom.css');"
  47.  
  48.  ;; Set Bullet indentation when exporting
  49.  ;; default option: tab
  50.  ;; Possible options are for `:sidebar` are
  51.  ;; 1. `:eight-spaces` as eight spaces
  52.  ;; 2. `:four-spaces` as four spaces
  53.  ;; 3. `:two-spaces` as two spaces
  54.  ;; :export/bullet-indentation :tab
  55.  
  56.  
  57.  ;; When :all-pages-public? true, export repo would export all pages within that repo.
  58.  ;; Regardless of whether you've set any page to public or not.
  59.  ;; Example:
  60.  ;; :publishing/all-pages-public? true
  61.  
  62.  ;; Specify default home page and sidebar status for Logseq
  63.  ;; If not specified, Logseq default opens journals page on startup
  64.  ;; value for `:page` is name of page
  65.  ;; Possible options for `:sidebar` are
  66.  ;; 1. `"Contents"` to open up `Contents` in sidebar by default
  67.  ;; 2. `page name` to open up some page in sidebar
  68.  ;; 3. Or multiple pages in an array ["Contents" "Page A" "Page B"]
  69.  ;; If `:sidebar` is not set, sidebar will be hidden
  70.  ;; Example:
  71.  ;; 1. Setup page "Changelog" as home page and "Contents" in sidebar
  72.  ;; :default-home {:page "Changelog", :sidebar "Contents"}
  73.  ;; 2. Setup page "Jun 3rd, 2021" as home page without sidebar
  74.  ;; :default-home {:page "Jun 3rd, 2021"}
  75.  ;; 3. Setup page "home" as home page with multiple pages in sidebar
  76.  ;; :default-home {:page "home" :sidebar ["page a" "page b"]}
  77.  
  78.  ;; Tell logseq to use a specific folder in the repo as a default location for notes
  79.  ;; if not specified, notes are stored in `pages` directory
  80.  ;; :pages-directory "your-directory"
  81.  
  82.  ;; Tell logseq to use a specific folder in the repo as a default location for journals
  83.  ;; if not specified, journals are stored in `journals` directory
  84.  ;; :journals-directory "your-directory"
  85.  
  86.  ;; Set this to true will convert
  87.  ;; `[[Grant Ideas]]` to `[[file:./grant_ideas.org][Grant Ideas]]` for org-mode
  88.  ;; For more, see https://github.com/logseq/logseq/issues/672
  89.  ;; :org-mode/insert-file-link? true
  90.  
  91.  ;; If you prefer to use the file name as the page title
  92.  ;; instead of the first heading's title
  93.  ;; the only option for now is `file`
  94.  ;; :page-name-order "file"
  95.  
  96.  ;; Setup custom shortcuts under `:shortcuts` key
  97.  ;; Syntax:
  98.  ;; 1. `+` means keys pressing simultaneously. eg: `ctrl+shift+a`
  99.  ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `s` follow by `t`
  100.  ;; 3. `mod` means `Ctrl` for Windows/Linux  and `Command` for Mac
  101.  ;; 4. use `false` to disable particular shortcut
  102.  ;; 4. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
  103.  ;; full list of configurable shortcuts are available below:
  104.  ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
  105.  ;; Example:
  106.  ;; :shortcuts
  107.  ;; {:editor/new-block       "enter"
  108.  ;;  :editor/new-line        "shift+enter"
  109.  ;;  :editor/insert-link     "mod+shift+k"
  110.  ;;  :editor/hightlight       false
  111.  ;;  :ui/toggle-settings     "t s"
  112.  ;;  :editor/up              ["ctrl+k" "up"]
  113.  ;;  :editor/down            ["ctrl+j" "down"]
  114.  ;;  :editor/left            ["ctrl+h" "left"]
  115.  ;;  :editor/right           ["ctrl+l" "right"]}
  116.  :shortcuts {}
  117.  
  118.  ;; By default, pressing `Enter` in the document mode will create a new line.
  119.  ;; Set this to `true` so that it's the same behaviour as the usual outliner mode.
  120.  :shortcut/doc-mode-enter-for-new-block? false
  121.  
  122.  ;; Block content larger than `block/content-max-length` will not be searchable
  123.  ;; or editable for performance.
  124.  :block/content-max-length 5000
  125.  
  126.  ;; Whether to show command doc on hover
  127.  :ui/show-command-doc? true
  128.  
  129.  ;; Whether to show empty bullets for non-document mode (the default mode)
  130.  :ui/show-empty-bullets? false
  131.  
  132.  ;; Pre-defined :view function to use in Query
  133.  :query/views
  134.  {:pprint
  135.   (fn [r] [:pre.code (pprint r)])}
  136.  
  137.  ;; Pre-defined :result-transform function to use in Query
  138.  :query/result-transforms
  139.  {:sort-by-priority
  140.   (fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}
  141.  
  142.  ;; The app will show those queries in today's journal page,
  143.  ;; the "NOW" query asks the tasks which need to be finished "now",
  144.  ;; the "NEXT" query asks the future tasks.
  145.  :default-queries
  146.  {:journals [
  147. {
  148.   :title ["🗓 Scheduled" ]
  149.   :query [:find (pull ?b [*])
  150.     :in $ ?today
  151.     :where
  152.         [?b :block/marker ?marker]
  153.         [(contains? #{"TODO" "DOING" "WAITING"} ?marker)]
  154.         [?b :block/scheduled ?d]
  155.         [(<= ?d ?today)]
  156.   ]
  157.   :inputs [:today]
  158.   :result-transform (fn [result] (sort-by (fn [r] (get-in r [:block/page :block/journal-day])) result))  ; Sort by the journal date
  159.   :table-view? false
  160.   :breadcrumb-show? false
  161.   :collapsed? false
  162. }
  163. {
  164.     :title ["🍱 Box" ]
  165.     :query [:find (pull ?b [*])
  166.     :where
  167.       [?p :block/name "bento"] ; name is always lowercase
  168.       [?b :block/refs ?p] ; this block references ?p as oppose to being on ?p through :block/page.
  169.       [?b :block/marker "TODO"]
  170.     ]
  171.     :result-transform (fn [result] (sort-by (fn [r] (get-in r [:block/page :block/journal-day])) result))  ; Sort by the journal date
  172.     :table-view? false
  173.     :breadcrumb-show? false
  174.     :collapsed? false
  175.     }
  176.     {
  177.     :title ["🍣 Widgets" ]
  178.     :query [:find (pull ?b [*])
  179.     :where
  180.       [?p :block/name "w"] ; name is always lowercase
  181.       [?b :block/refs ?p] ; this block references ?p as oppose to being on ?p through :block/page.
  182.       [?b :block/marker "TODO"]
  183.     ]
  184.     :result-transform (fn [result] (sort-by (fn [r] (get-in r [:block/page :block/journal-day])) result))  ; Sort by the journal date
  185.     :table-view? false
  186.     :breadcrumb-show? false
  187.     :collapsed? false
  188. }
  189.            {:title "⌛ On this day..."
  190.     :query [:find (pull ?b [*])
  191.        :in $ ?today
  192.        :where
  193.        [?b :block/page ?p]
  194.        [?p :page/journal? true]
  195.        [?p :page/journal-day ?jd]    
  196.        [(str ?jd) ?jds]    
  197.        [(subs ?jds 4 8) ?md1]
  198.        [(str ?today) ?td]
  199.        [(subs ?td 4 8) ?md2]
  200.        [(= ?md1 ?md2)]
  201.        [(< ?jd ?today)]
  202.     ]
  203.     :inputs [:today]
  204.     :breadcrumb-show? true
  205.     :collapsed? False}  
  206. ]}
  207.  
  208.  ;; Add your own commands to slash menu to speedup.
  209.  ;; E.g.
  210.  ;; :commands
  211.  ;; [
  212.  ;; ["js" "Javascript"]
  213.  ;; ["md" "Markdown"]
  214.  ;; ]
  215.  :commands
  216.  [
  217.    ["jira" "TODO {{{jira ,}}}"]
  218.  ]
  219.  
  220.  ;; By default, a block can only be collapsed if it has some children.
  221.  ;; `:outliner/block-title-collapse-enabled? true` enables a block with a title
  222.  ;; (multiple lines) can be collapsed too. For example:
  223.  ;; - block title
  224.  ;;   block content
  225.  :outliner/block-title-collapse-enabled? false
  226.  
  227.  ;; Macros replace texts and will make you more productive.
  228.  ;; For example:
  229.  ;; Change the :macros value below to:
  230.  ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
  231.  ;; input "{{poem red,blue}}"
  232.  ;; becomes
  233.  ;; Rose is red, violet's blue. Life's ordered: Org assists you.
  234.  :macros {
  235.           "jira", "[$1 $2](htps://jiraurl/$1)"
  236.           }
  237.  
  238.  ;; The default level to be opened for the linked references.
  239.  ;; For example, if we have some example blocks like this:
  240.  ;; - a [[page]] (level 1)
  241.  ;;   - b        (level 2)
  242.  ;;     - c      (level 3)
  243.  ;;       - d    (level 4)
  244.  ;;
  245.  ;; With the default value of level 2, `b` will be collapsed.
  246.  ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
  247.  :ref/default-open-blocks-level 2
  248.  
  249.  :ref/linked-references-collapsed-threshold 50
  250.  
  251.  :favorites ["products/logseq for professionals" "My" "products/logseq for professionals workshop" "Morning routine" "Sales" "Tweet Board" "On This Day" "topic" "6363a801-3d21-4509-a8d5-fe547dd4b911"]
  252.  
  253.  ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
  254.  ;; :srs/learning-fraction 0.5
  255.  
  256.  ;; the initial interval after the first successful review of a card (default 4)
  257.  ;; :srs/initial-interval 4
  258.  
  259.  ;; hide specific properties for blocks
  260.  ;; E.g. :block-hidden-properties #{:created-at :updated-at}
  261.  ;; :block-hidden-properties #{}
  262.  
  263.  ;; Enable all your properties to have corresponding pages
  264.  :property-pages/enabled? true
  265.  :mobile/toolbar-stats {:bold {:counts 0}, :brand-youtube {:counts 0}, :checkbox {:counts 0}, :parentheses {:counts 0}, :command {:counts 0}, :calendar {:counts 0}, :paint {:counts 0}, :list {:counts 0}, :link {:counts 0}, :strikethrough {:counts 0}, :code {:counts 0}, :camera {:counts 0}, :rotate {:counts 0}, :tag {:counts 0}, :brackets {:counts 17}, :italic {:counts 0}, :a-b {:counts 0}, :rotate-clockwise {:counts 0}}
  266.  :feature/enable-whiteboards? true
  267.  :file/name-format :triple-lowbar
  268.  :feature/enable-timetracking? true
  269.  :ui/show-full-blocks? false
  270.  :graph/settings {:journal? true, :excluded-pages? false, :orphan-pages? false}
  271.  
  272.  ;; Properties to exclude from having property pages
  273.  ;; E.g.:property-pages/excludelist #{:duration :author}
  274.  ;; :property-pages/excludelist
  275.  
  276.  ;; Enables property values to contain a mix of tags, page-refs, special
  277.  ;; punctuation and free-form text.
  278.  ;; Re-index current graph for config to take effect
  279.  :rich-property-values? true
  280.  
  281.  ;; logbook setup
  282.  :logbook/settings
  283.  {:with-second-support? false ;limit logbook to minutes, seconds will be eliminated
  284.   :enabled-in-all-blocks true ;display logbook in all blocks after timetracking
  285.   :enabled-in-timestamped-blocks false ;don't display logbook at all
  286.  }
  287.  
  288.  ;; Mobile photo uploading setup
  289.  ;; :mobile/photo
  290.  ;; {:allow-editing? true}
  291.  
  292.  ;; Mobile features options
  293.  ;; Gestures
  294.  ;; :mobile
  295.  ;; {:gestures/disabled-in-block-with-tags ["kanban"]}
  296.  
  297.  ;; Extra CodeMirror options
  298.  ;; :editor/extra-codemirror-options {:keyMap "emacs" :lineWrapping true}
  299.  
  300.  ;; ignore #+keyword: for parsing page references in orgmode
  301.  ;; :ignored-page-references-keywords #{"author" "startup"}
  302.  
  303.  ;; Quick capture templates on mobile for recieving contents from other apps.
  304.  ;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
  305.  ;; by received contents from other apps. Note: the {} cannot be omitted.
  306.  ;; - {time}: capture time
  307.  ;; - {text}: text that users selected before sharing.
  308.  ;; - {url}: url or assets path for media files stored in Logseq.
  309.  ;; You can also reorder them, or even only use one or two of them in the template.
  310.  ;; You can also insert or format any text in the template as shown in the following examples.
  311.  ;; :quick-capture-templates
  312.  ;; {:text "[[quick capture]] **{time}**: {text} from {url}"
  313.  ;;  :media "[[quick capture]] **{time}**: {url}"}
  314.  
  315.  ;; File sync options
  316.  ;; Ignore these files when syncing, regexp is supported.
  317.  ;; :file-sync/ignore-files []
  318.  
  319.  ;; dwim (do what I mean) for Enter key when editing.
  320.  ;; Context-awareness of Enter key makes editing more easily
  321.  ; :dwim/settings {
  322.  ;   :admonition&src?  true
  323.  ;   :markup?          false
  324.  ;   :block-ref?       true
  325.  ;   :page-ref?        true
  326.  ;   :properties?      true
  327.  ;   :list?            true
  328.  ; }
  329. :feature/disable-scheduled-and-deadline-query? true
  330.  
  331.  }
  332.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement