ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Send to Shell

by Twizzledrizzle ST3 Win

Sublime Text package to send text to an external shell running Ipython

Details

Installs

  • Total 557
  • Win 557
  • Mac 0
  • Linux 0
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 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 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

Send to Shell

Send to Shell is a free plugin for Sublime Text on Windows, to work nicely together with an external terminal running IPython.

Prerequsites

You need to install Pywin32 before using this package, since Send to Shell uses some windows API's to access your terminal shell.

Features

  • Puts selected text into clipboard memory, and sends by default %Paste to the specified terminal shell (referenced by window title).
    • (ctrl-shift-enter)
  • Also possible to run the entire file (Puts '%run ' + file_path into clipboard memory and sends it to the terminal shell)
    • (ctrl-shift-b)
  • Shells tested 1 PowerShell 2 Command Prompt 3 ConEmu
  • Edit Send to Shell's settings to change the following (default in ()):
    • The window title to search for ('Windows PowerShell')
    • The command to run an entire script ('%run')
    • The command to run in the shell to paste the text ('%paste')
    • The command to run if no terminal is found ('powershell')
    • The command to start python ('ipython')

Releases

  • 0.1.0

Installation

Use the excellent Package Control to install Send to Shell.

You can do a manual installation by cloning this repository into your Packages folder. Sublime Text -> Preferences -> Browse Packages…

git clone git@github.com:https://github.com/Twizzledrizzle/Send-to-Shell

How-To

Key Bindings

The default key bindings are stored at /Send to Shell/Default.sublime-keymap. As always, you can use your user keymap file to setup your own key bindings.

Note: The commands from the Send to Shell menu are also available through the Command Palette (CTRL/CMD + SHIFT + P)

Command Reference

License

The MIT License (MIT)

Copyright © 2015 TwizzleDrizzle, https://github.com/Twizzledrizzle/Send-to-Shell

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

See Also

For further information, please take the time to look at following links: