Using a non-standard editor with the / edit command

Recently, I tried to use non-default editors (like atoms or exalted ones) using a command /editin JShell. To do this, I installed the editor with the following command:

/set editor -wait atom

As stated in the documentation, when I type the command /edit, JShell creates a temporary file opened by the editor of my choice. The code that is saved in the file is evaluated by JShell. However, I cannot get it to evaluate the changes right after I click save. They are evaluated in the shell a few seconds after being saved in the editor.

Is it possible to evaluate them right away, just like clicking on "Accept" in EditPad (default editor)?

+4
source share

Source: https://habr.com/ru/post/1674898/


All Articles