Code Monkey home page Code Monkey logo

send-to-shell's Introduction

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.

Imgur

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 [email protected]: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 (c) 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:

send-to-shell's People

Contributors

i-namekawa avatar pjago avatar twizzledrizzle avatar

Watchers

 avatar  avatar  avatar

send-to-shell's Issues

[Bug] Send ipython and %paste commands to terminal automatically

Request

It would be nice, if you add opportunity print commands ipython and %paste commands by default.

Justification

I need write ipython and %paste commands every time when I use Send to Shell, and I spend time to print these commands.

Extended behavior

I select and copy my code โ†’ Ctrl+Shift+Enter โ†’ I not must print ipython and %paste commands manually, it is will input automatically.

Not helped

I try edit powershell_startup parameter in my User/SendToShell.sublime-settings file, for example, "powershell_startup": "\"conemu\", \"ipython\"", but it's not worked.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.