Navigation Menu

Skip to content

jbtule/atom-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run scripts in Atom!

Currently supports:

  • Bash
  • Coffeescript
  • Go (only by file)
  • Javascript
  • Perl
  • PHP
  • Python
  • Ruby

You only have to add a few lines in a PR to support another.

Installation

apm install script

Usage

Select some code and hit cmd-i. Your code will get run in a fresh instance of the interpreter used by your scripting language.

If you don't select any text, it will run the entire file instead.

ctrl-c will kill the process but leaves the pane open for viewing.

ctrl-w closes the pane and kills the process.

You can also close the pane and kill the process by clicking the close icon in the upper left.

Development

Use the atom contributing guidelines. They're pretty sane.

Quick and dirty setup

apm develop script

This will clone the script repository to ~/github unless you set the ATOM_REPOS_HOME environment variable.

I already cloned it!

If you cloned it somewhere else, you'll want to use apm link --dev within the package directory, followed by apm install to get dependencies.

Workflow

After pulling upstream changes, make sure to run apm update.

To start hacking, make sure to run atom --dev from the package directory. Cut a branch while you're working and submit a Pull Request when done or when you want some feedback!

About

Run (scripts | selections | source ) within atom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 72.5%
  • Perl 13.8%
  • CSS 8.2%
  • Python 3.3%
  • JavaScript 1.3%
  • Go 0.6%
  • Shell 0.3%