mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
Add first pass at large vars linter
Had to tweak rewrite-clj to read vars with metadata. Added fail fast behavior to fns to prevent silent failure which was impacting tasks. Started looking at a few vars. More to look at
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
;; Note – when you change this file, you will need to do a hard reset.
|
||||
;; The commands are registered when the Clojurescript code runs for the first time
|
||||
(defonce all-default-keyboard-shortcuts
|
||||
(defonce ^:large-vars/data-var all-default-keyboard-shortcuts
|
||||
{:date-picker/complete {:desc "Date picker: Choose selected day"
|
||||
:binding "enter"
|
||||
:fn ui-handler/shortcut-complete}
|
||||
@@ -449,7 +449,7 @@
|
||||
(reduce into {}
|
||||
(map (fn [sym] {sym (get all-default-keyboard-shortcuts sym)}) symbols)))
|
||||
|
||||
(defonce config
|
||||
(defonce ^:large-vars/data-var config
|
||||
(atom
|
||||
{:shortcut.handler/date-picker
|
||||
(build-category-map [:date-picker/complete
|
||||
@@ -584,7 +584,7 @@
|
||||
(with-meta {:before m/enable-when-not-editing-mode!}))}))
|
||||
|
||||
;; Categories for docs purpose
|
||||
(def category
|
||||
(def ^:large-vars/data-var category
|
||||
{:shortcut.category/basics
|
||||
^{:doc "Basics"}
|
||||
[:editor/new-block
|
||||
|
||||
Reference in New Issue
Block a user