Eval
Execute selection, replace or show output in panel, any language.
Details
Installs
- Total 609
- Win 253
- Mac 197
- Linux 159
Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime-Eval
- Supports any language via easy and flexible config.
- Threaded non-blocking code execution.
- Output to panel or inline replace.
- Simultaneous execution in multiple selections.
Usage
Open the Command Palette and type “Eval” to see the available commands. For example “Eval: Python” evaluates selection (or entire buffer) as python code and shows the output in panel.
“Eval: Terminate” stops execution.
There are two types of invocations:
- Replace: Execute selection and replace with output. Empty selection = current line. Supports multiple selections simultaneously.
- Panel output: Execute selection and show output in panel. Empty selection = entire file. Runs non-blocking in a thread.
Config
- Open the Command Palette and select “Eval: Settings”. In the config you can add new methods (languages) and change timeout time.
- New methods will automatically be available in the Command Palette.
Keybinds: There are no default keybinds, as to not interfere with your settings. To add a keybind for a method, put the following in you keybind config.
{ "keys": ["super+p"], "command": "eval", "args": { "method": "Python Replace" } }, { "keys": ["ctrl+super+p"], "command": "eval", "args": { "method": "Python" } },
Issues, pull requests and suggestions for improvement are always welcome!