Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.09 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.09 KB

SendTextPlus for Sublime Text

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.

Installation

Via Package Control.

Demo

Usage

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.

Some Details

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!