zmq
minimal messaging interface for Sublime Text 3
Details
Installs
- Total 264
- Win 0
- Mac 149
- Linux 115
Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | 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 | 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
Darwin. Tested on OS X 10.10 and 10.9
libzmq on *nix sym linked at
/usr/local/lib/libzmq.4.dylib
or just edit zmq.py.make sure your particular usr/local libzmq works.
Shut off and quit your sublime text 3 editor completely.
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.