guns / vim-sexp

Precision Editing for S-expressions
MIT License
614 stars 33 forks source link

Include macro characters in COMPOUND FORM #30

Open achikin opened 2 years ago

achikin commented 2 years ago

Clojure uses reader macros like @ and # before forms. I think it makes sense to include macro characters as a part of the COMPOUND FORM to make it more consistent with ELEMENT behavior In the current implementation ( | denotes cursor, <> denotes vim command):

@(re-|frame/subscribe [::the-sub])
<daf>
|@
;; but
(@a|bc de fg)
<dae>
(|de fg)

After my suggestion:

@(re-|frame/subscribe [::the-sub])
<daf>
|
;; but
(@a|bc de fg)
<dae>
(|de fg)