You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Point within the str form, e.g., after the r
Slurp forward
(def foo
(str)
42))
The str did not embrace the following form, but instead lost some whitespace; and an unmatched close-paren, which Calva highlights in red, got added at the end of the following form.
Whitespace inside the end of the str form seems to be the key to the matter. If there is none, then slurp-forward works as expected by bringing the 42 into the str form.
Observed in Calva 2.0.195
The text was updated successfully, but these errors were encountered:
How would we ideally want the form to look like after slurping? Using a | to mark the cursor here:
Before:
(deffoo
(str|
)
42)
After A (this is probably easiest to achieve):
(deffoo
(str|42))
After B:
(deffoo
(str|42))
After C:
(deffoo
(str|42))
C has the advantage that if you want to keep 42 on the next line you can just press enter. OTOH, from A, B is just a ctrl+j away. (And C just another ctrl+j away.
Starting with this
Point within the str form, e.g., after the r
Slurp forward
The str did not embrace the following form, but instead lost some whitespace; and an unmatched close-paren, which Calva highlights in red, got added at the end of the following form.
Whitespace inside the end of the str form seems to be the key to the matter. If there is none, then slurp-forward works as expected by bringing the 42 into the str form.
Observed in Calva 2.0.195
The text was updated successfully, but these errors were encountered: