Hi Alex, that is cool, a bit like in Emacs, where you work in a major mode buffer and eval expressions there, maybe sending the results to a repl buffer.
What do you think about some more enhancements in that spirit: [X] eval atom [X] eval expression [ ] eval definition/form (?) [ ] eval region [ ] eval buffer/window (In Emacs all these commands often have "eval-x-and-go" siblings, that eval the expression and then jump to the repl) In Emacs one uses markers for regions, in VIP I'm not sure ... The difference between expression and definition is, that in Emacs the cursor might be inside the expression/definition, and first jumps to the opening paren, then evaluates. (de foo (X) (+ X| 2)) With the cursor behind X would then either return X+2 or foo. Saves some cursor movements before evaluation, but needs different keybindings, not only one. Cheers Thorsten Alexander Burger <a...@software-lab.de> schrieb am So., 18. Apr. 2021, 16:39: > Hi all, > > when a question or request came up at PilCon about evaluating expressions > in > Vip's edit buffer, I explained how this works in a line-oriented way in the > bottom command window. > > Now (version 21.4.18) I added a similiar feature to normal edit buffers: > Hitting > Ctrl-E (edit) on either an open parenthesis or an atom causes the > evaluation of > that expression, with output directed to the command window. > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >