Hi all,
I'm trying to develop a bundle for communicating with a TCP server, and
would like to create 1) a bundle command that opens the connection, and 2)
other commands that use that connection object (eg via grabbing text
selection in the editor window).
In Python, I've created a bundle command like this:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = "127.0.0.1"
PORT = 7098
sock.connect((HOST, PORT))
sock.send("some command...")
print sock.recv(512)
That sets up the socket correctly, in fact you can send messages to the TCP
server.
However each time I send a command, the socket is obviously re-created; I
wondered if I TextMate provides a mechanism to save the 'sock' binding in
the current environment - so that I can reuse it later within other
commands.
Hope this makes sense - thanks in advance for any help.
Mike
I’ve posted about this before but didn’t come to a solution.
Say I have this R code:
foo <- test
foofoofoo <- test
foofoo <- test
How can I align the code like this:
foo <- test
foofoofoo <- test
foofoo <- test
I’ve tried selecting the code and running Bundles > Align > Align Source, but I get the message "Failure running “Align Source” interpreter failed: No such file or directory”.
Any suggestions?
Ross Ahmed
Ecologist
—
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
I’ve posted about this before but didn’t come to a solution.
Say I have this R code:
foo <- test
foofoofoo <- test
foofoo <- test
How can I align the code like this:
foo <- test
foofoofoo <- test
foofoo <- test
I’ve tried selecting the code and running Bundles > Align > Align Source, but I get the message "Failure running “Align Source” interpreter failed: No such file or directory”.
Any suggestions?
Ross Ahmed
Ecologist
—
07875533906
Twitter: @RossAhmed <https://twitter.com/RossAhmed>
LinkedIn: Ross Ahmed <https://www.linkedin.com/pub/ross-ahmed/2a/775/590>
Dear Sir:
I am running TextMate version-beta.8.5 on a Mac with OS10.11.2, and texlive
2015.
TexMaker, TexShop, and latex on terminal all work fine with the same .tex
file. But TextMate complains that:
"! LaTeX Error: File `xy.sty' not found."
The file xy.sty is properly located in the texlive system.
It must be a trivial problem except that I cannot figure it out. I
appreciate your help,
Luke W. Mo
Virginia Tech
Hi,
I was wondering if there is still an API to write Plug-ins for TextMate because I would like to create a Python debugger plug-in.
Thank you for this wonderful editor,
Louis
Since yesterdays update (v2.0-beta.8.4), the web view can’t load non-https urls.
This could of course be solved for the php documentation by using their secure domain, https://secure.php.net <https://secure.php.net/>. But I’m quite sure there are other bundles that open external sources over http as well.
Koen
Koen Punt mail(a)koen.pt <mailto:me@koen.pt> koen.pt <http://koen.pt/>
When editing a bundle, you can set the file types which this bundle should
apply to by default
Is there any way I am able to include file masks in this, or does it just
work on file extension?
For example, I have *.js files which obviously default to Javascript
My Smarty bundle is set to handle all *.tpl files
But now I want to override this by treating "js_*.tpl" files as Javascript
also
Thanks