This package improves SendText, particularly for r
,
python
and julia
syntaxes. It supports
- Terminal of Mac
- iTerm 2 of Mac
- screen and tmux on Unix machines.
Via Package Control.
cmd+enter
(Mac) or ctrl+enter
(Windows/Linux)
If text is selected, it sends the text to the program selected. If no text is selected, then it sends the current block (if found). Finally, it moves the cursor to the next line.
Terminal is the default for Mac and tmux is the default for Linux. To configure the settings, open Preferences -> Package Settings -> SendTextPlus -> Settings.
For r
, a block is defined via a fancy regular expression which essentially
detects {
,}
pairs. For julia
, a block is defined by indented code with
respectively to xxx
, end
pairs. For python
, blocks are detected via
indentations, but it is assumed that ipython is used. If you are not using
ipython, get one!