Code Monkey home page Code Monkey logo

socket's Introduction

Sublime Sockets

Socket REPL support for Sublime Text 3

Status

Alpha. Subject to change.

Usage

Sublime Sockets sends text from Sublime Text buffers to processes listening on the network. It is designed to enable live coding in Arcadia and Nostrand, but it is language agnostic and can be used with any network based tool.

Socket Buffers

A connection between Sublime Text and a network processes is represented by a socket buffer. Socket buffers are created with the Socket: New command. You will be prompted to enter the host and port of the process you want to communicate with. Socket buffers by default sit under the text buffer they were created from.

Communicating

You can connect ordinary Sublime Text buffers to socket buffers to communicate. By default, new socket buffers are connected to the buffer they were created from, but you can always change a buffer's connection with ctrl+c.

Instead of directly typing into a socket buffer, you can send it text from a connected Sublime Text buffer. This allows you to build up a file while evaluating bits of code as you go, taking full advantage of Sublime Text's editing power.

Key Bindings

  • ctrl+s send selection to connected socket buffer
  • ctrl+l send line to connected socket buffer
  • ctrl+b send block to connected socket buffer
  • ctrl+p send paragraph to connected socket buffer
  • ctrl+f send file to connected socket buffer

Named Connections

Specifying the host and port for frequently used network processes can become tedious, so you can specify named connections under Sublime Text → Preferences → Package Settings → Socket → Connections - User. Socket.sublime-commands in this repository contains examples.

Installation

$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
$ git clone https://github.com/nasser/Socket.git

On Package Control soon.

License

Copyright ©️ Ramsey Nasser 2016. Provided under the MIT license.

socket's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

socket's Issues

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.