Enhance move-to-let to add or augment :let
binding when in macros that support it
#1732
Labels
Projects
:let
binding when in macros that support it
#1732
Is your feature request related to a problem? Please describe.
When using
for
, there are times where I want to move an expression to the:let
For instance, starting with this:
I would like to end up with this:
However, running
move-to-let
results in this:Describe the solution you'd like
When a
move-to-let
action is performed inside afor
macro, it should create (or add to) the:let
section of the macro binding instead of introducing a standalone let block.Describe alternatives you've considered
I usually run the
move-to-let
and then use editor commands to copy/paste the resulting block into the:let
.Additional context
This would also apply to
doseq
, as it also supports a:let
binding.The text was updated successfully, but these errors were encountered: