I was recently trying to use non-default editors (such as atom or sublime) with the /edit
command in JShell. To do that, I set the editor with the following command:
/set editor -wait atom
As the documentation states, when I type the /edit
command JShell creates a temporary file opened by the editor of my choice. The code that is saved in the file gets evaluated by JShell. However I cannot make it evaluate the changes immediately after i hit save. They are being evaluated in the shell after a few seconds after saving in the editor.
Is there any way to have them evaluated immediately, the same as by hitting "Accept" in the EditPad (the default editor)?