Merge branch 'master' into zotero/poc

This commit is contained in:
Junyu Zhan
2021-07-28 15:02:07 +08:00
12 changed files with 35 additions and 153 deletions

View File

@@ -849,7 +849,7 @@
(when-let [sibling-block-id (dom/attr sibling-block "blockid")]
(when-let [block (db/pull repo '[*] [:block/uuid (uuid sibling-block-id)])]
(let [original-content (util/trim-safe (:block/content block))
new-value (str original-content " " (string/triml value))
new-value (str (property/remove-built-in-properties format original-content) " " (string/triml value))
tail-len (count (string/triml value))
pos (max
(if original-content
@@ -1518,8 +1518,8 @@
"*" "*"
"_" "_"
"^" "^"
"=" "="
;; ":" ":" ; TODO: only properties editing and org mode tag
})
(def reversed-autopair-map
@@ -1527,7 +1527,7 @@
(keys autopair-map)))
(defonce autopair-when-selected
#{"^" "_"})
#{"^" "_" "="})
(def delete-map
(assoc autopair-map