mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
fix: tag with page references
This commit is contained in:
@@ -2325,15 +2325,6 @@
|
||||
(= "#" (util/nth-safe value (dec pos)))))
|
||||
(state/set-editor-show-page-search-hashtag! false)
|
||||
|
||||
(or
|
||||
(surround-by? input "#" " ")
|
||||
(surround-by? input "#" :end)
|
||||
(= key "#"))
|
||||
(do
|
||||
(commands/handle-step [:editor/search-page-hashtag])
|
||||
(state/set-last-pos! (:pos (util/get-caret-pos input)))
|
||||
(reset! commands/*slash-caret-pos (util/get-caret-pos input)))
|
||||
|
||||
(and
|
||||
(contains? (set/difference (set (keys reversed-autopair-map))
|
||||
#{"`"})
|
||||
@@ -2359,6 +2350,15 @@
|
||||
:else
|
||||
nil))
|
||||
|
||||
(or
|
||||
(surround-by? input "#" " ")
|
||||
(surround-by? input "#" :end)
|
||||
(= key "#"))
|
||||
(do
|
||||
(commands/handle-step [:editor/search-page-hashtag])
|
||||
(state/set-last-pos! (:pos (util/get-caret-pos input)))
|
||||
(reset! commands/*slash-caret-pos (util/get-caret-pos input)))
|
||||
|
||||
(let [sym "$"]
|
||||
(and (= key sym)
|
||||
(>= (count value) 1)
|
||||
|
||||
Reference in New Issue
Block a user