mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +00:00
fix slash command clashes with Org-mode italics (#3010)
* enhance: fix https://github.com/logseq/logseq/issues/990 Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
This commit is contained in:
@@ -131,10 +131,12 @@
|
||||
(move-cursor-to input pos)))
|
||||
|
||||
(defn move-cursor-to-thing
|
||||
[input thing from]
|
||||
(let [[content _pos] (get-input-content&pos input)
|
||||
pos (string/index-of content thing from)]
|
||||
(move-cursor-to input pos)))
|
||||
([input thing]
|
||||
(move-cursor-to-thing input thing (pos input)))
|
||||
([input thing from]
|
||||
(let [[content _pos] (get-input-content&pos input)
|
||||
pos (string/index-of content thing from)]
|
||||
(move-cursor-to input pos))))
|
||||
|
||||
(defn move-cursor-forward-by-word
|
||||
[input]
|
||||
|
||||
Reference in New Issue
Block a user