fix(dwim): jump out of properties drawer if empty key at point

This commit is contained in:
leizhe
2021-10-18 21:05:23 +08:00
committed by Tienson Qin
parent 81fc5b1ed6
commit 035cd9c6fd

View File

@@ -2385,12 +2385,12 @@
(cursor/move-cursor-to-line-end input))
;; when cursor in empty property key
;; (and property-key (= property-key ""))
;; (do (delete-and-update
;; input
;; (cursor/line-beginning-pos input)
;; (cursor/line-end-pos input))
;; (cursor/move-cursor-to-line-end (inc (:end thing-at-point))))
(and property-key (= property-key ""))
(do (delete-and-update
input
(cursor/line-beginning-pos input)
(inc (cursor/line-end-pos input)))
(cursor/move-cursor-to-line-end input))
:else
;;When cursor in other place of PROPERTIES drawer, add :|: in a new line and move cursor to |
(do