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
  • 9 years ago
  • 2 hours ago
  • 10 years ago

Installs

  • Total 262
  • Win 0
  • Mac 148
  • Linux 114
May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27
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 1 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 1 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.