Closed abogoyavlensky closed 5 years ago
And the UX of this feature could be still a matter for discussion. In PR I suggest this option:
Cause in my opinion most likely we use plain compilation without result for function definition or other definitions with probably many other expressions after they have been changed somewhere inside. And we use current block evaluation when the result is more important for us. It slightly changes the default behavior so that to eval entire file you need to move the cursor outside of any blocks.
The main feature that was added in this PR is:
The same for an outer block.
Here block means everything between round brackets
(...)
. It is slightly different than Atom's Proto Repl implementation which offers evaluation of vectors[...]
.Caveats:
Resolves #61
A short demonstration: (keybindnigs used for recording:
ctrl+n
: "Eval and show the result",ctrl+alt+e
: "Eval")