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

zmq

by reqshark MacLinux ALL

minimal messaging interface for Sublime Text 3

Labels zeromq, binding, zmq

Details

  • 2015.03.13.18.26.11
  • github.​com
  • github.​com
  • 10 years ago
  • 13 minutes ago
  • 11 years ago

Installs

  • Total 265
  • Win 0
  • Mac 150
  • Linux 115
Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23
Windows 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
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 1 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

sublimezmq

Sublime Text binding

Minimal messaging interface for Sublime Text 3.

Basic Kernel Setup

  1. Darwin. Tested on OS X 10.10 and 10.9

  2. libzmq on *nix sym linked at /usr/local/lib/libzmq.4.dylib or just edit zmq.py.

  3. make sure your particular usr/local libzmq works.

  4. Shut off and quit your sublime text 3 editor completely.

  5. Then from inside Sublime's Packages directory git clone along these lines:

$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
$ git clone https://github.com/reqshark/sublimezmq.git && cd sublimezmq
#dont depart sublimezmq dir yet. clean up pkg before turning sublime back on:
$ rm -rf .git && rm History.md && rm README.md

Now what

hook Sublime Text 3's sublime_plugin.EventListener over zmq sockets.

Here's an example using the node zeromq bindings. The idea is to efficiently distribute information or events from sublime text: “ js var zmq = require('zmq') var sub = zmq.socket('sub')

sub.connect('tcp://127.0.0.1:64000')

sub.subscribe('on_post_save') //sub.subscribe('on_modified') console.log('subscriber connected to on_post_save and on_modified events')

sub.on('message', function (msg) { console.log(String(msg)) });

License
-------

This is free and unencumbered software released into the public domain.