A R mode is now available for Chamo, as a separate snippet. By now, this mode has only one key binding, to call the "r_eval" command. This command sends the contents of the active view to a background R process. The output of this process is displayed in the "outputs" window. Other commands can easily be defined the same way to interact with other programs (see the details).
If some text is selected in the view, then only this text is sent to the R process. Closing the R output tab in the "outputs" window closes the R process. When the "r_eval" command is executed again, a new process is created. If the command is executed and the R process is still running, then it is used and no other process is launched.
mardi 6 mai 2008
mercredi 30 avril 2008
OCamlbuild support in Chamo
The Chamo editor now includes some ocamlbuild support through the internal command "ocaml_build": An ocamlbuild command is proposed to the user who can edit it and run it.
The output of the command is displayed in a new "outputs" window, and is analyzed. In case of error (or warning considered as error), the editor displays, in the active view, the file where the error was found, and highlights the corresponding characters.
The command used to compile is kept associated to the file, so that it is proposed the next time the internal command "ocaml_build" is launch on the file. These associations are even stored on disk to be kept between two sessions of Chamo launched in the same directory.
The output of the command is displayed in a new "outputs" window, and is analyzed. In case of error (or warning considered as error), the editor displays, in the active view, the file where the error was found, and highlights the corresponding characters.
The command used to compile is kept associated to the file, so that it is proposed the next time the internal command "ocaml_build" is launch on the file. These associations are even stored on disk to be kept between two sessions of Chamo launched in the same directory.
Inscription à :
Articles (Atom)