mirror of https://github.com/logseq/logseq
enhance: only apply DWIM to list item when cursor at EOL
parent
1ae8087ae3
commit
eeb48ba6b8
|
@ -2421,7 +2421,8 @@
|
||||||
(when (thingatpt/get-setting :properties?)
|
(when (thingatpt/get-setting :properties?)
|
||||||
(thingatpt/properties-at-point input))
|
(thingatpt/properties-at-point input))
|
||||||
(when (thingatpt/get-setting :list?)
|
(when (thingatpt/get-setting :list?)
|
||||||
(thingatpt/list-item-at-point input)))]
|
(and (cursor/end-of-line? input) ;; only apply DWIM when cursor at EOL
|
||||||
|
(thingatpt/list-item-at-point input))))]
|
||||||
(cond
|
(cond
|
||||||
thing-at-point
|
thing-at-point
|
||||||
(case (:type thing-at-point)
|
(case (:type thing-at-point)
|
||||||
|
|
Loading…
Reference in New Issue