After the latest update, whenever I run ‘mate' from the command line, I get this message: 'Can’t launch TextMate.app (error -10810)’. Once I start Textmate, if I uninstall the command line support, and re-enable it, ‘mate’ works until the next reboot.
Anyone know why that might be?
Hi!
Another question about my GitHub Markdown bundle (which I’d like to propose become official when it’s good enough).
The underscore handling in GitHub Flavoured Markdown (https://help.github.com/articles/github-flavored-markdown/#multiple-undersc…) basically means I need to disable/override all of the existing underscore handling in the GitHub Markdown bundle. Is that possible somehow?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Is there a way to highlight (or flash) the line the cursor is on
programmatically?
Something like this:
===+===
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
highlight(os.environ.get('TM_CURRENT_LINE', ""))
# ..do something else..
===+===
Many thanks in advance,
Michele
The current behavior of pasting each line in a different caret is a very
nice default, but sometimes I would need to paste a selection with multiple
lines and have it replicated into each caret. Is it possible to do this
right now?
Thanks in advance
--
José Manuel.
I have a 100+ files that were saved with "ISO-8851-1 Western” encoding. I need to convert and save them to “UTF-8”encoding. I can easily open all of them but when I attempt so perform a “Save as” it only saves the first document. Is there save all of them in a single step?
Thanks.
Another possible injection selection weirdness:
I’m injecting my text.html.markdown.github grammar into text.html.markdown using the (text.html.markdown) injection selector (was (L:text.html.markdown) until the fix in the last thread) and hidden from the user with hideFromUser in the tmLanguage file. I’m wanting to override the “Preview” menu action so that my GitHub Markdown bundle’s “Preview” menu action can take priority using the same shortcut. I’ve found a few possible options that I expected to work but don’t:
- setting the scope to text.html.markdown.github doesn’t seem to match the document scope so never actually matches and the Preview runs the old Markdown one
- setting the scope to text.html.markdown pops up a little menu to let me choose between the two
This may well not be possible in TextMate 2 as-is. Any thoughts on how to do this (beyond just using another shortcut, my current solution)?
Thanks!
Mike McQuaid
http://mikemcquaid.com
Can rmate be persuaded not to return focus to the terminal window when a tab/window it has opened closes?
I often open multiple tabs and windows over ssh using rmate. Whenever I close any of them focus reverts (after a short delay - probably the closing of the ssh tunnel after confirming a write or something) to the terminal window. If I also want to close the tab revealed by closing the first I hit Cmd+w, but the terminal gets the command because focus has switched! It's very annoying to have to get my terminals back in order so often.
Is this rmate's fault, or textmate? And can this behaviour be altered somehow?
--
Justin C, by the sea.
Hello,
I have a local mysql database that I try to connect to from Textmate 2.0.
When I define the connection setting in configuration dialog, and try to
submit to query, I get this error message:
undefined method `force_encoding' for #
I am on Mac OS X 10.11 and I installed the latest sql bundle from Github.
All that I have found are about Ruby and nothing specifically about SQL
bundle. Any suggestion on how to fix this problem?
Best,
Hooman
I’m working on a bundle to add Markdown Extra to the stock Markdown language grammar with an injection. I have some of it working, but can’t seem to build the right regex to find the added classes syntax.
Here’s the Markdown Extra in question:
![Vagrant Logo](/images/icons/vagrant-logo.png){.image-right .image-33}When developing web sites on the Mac, we have a number of choices for serving the content and design we're working on.
I’m after the {.image-right .image-33} part and I’ve tried:
{ patterns = (
{ name = 'source.yaml.front-matter';
begin = '\A-{3}';
end = '-{3}';
patterns = ( { include = 'source.yaml'; } );
},
{ name = 'text.html.markdown.classes';
begin = '\{';
end = '\}';
},
{ name = 'markup.raw.block.markdown';
begin = '^`{3}';
end = '^`{3}';
},
);
}
and
{ patterns = (
{ name = 'source.yaml.front-matter';
begin = '\A-{3}';
end = '-{3}';
patterns = ( { include = 'source.yaml'; } );
},
{ name = 'text.html.markdown.classes';
begin = '\)\{';
end = '\}';
},
{ name = 'markup.raw.block.markdown';
begin = '^`{3}';
end = '^`{3}';
},
);
}
What did I get wrong?
Bob
-------------------
Robert J. Rockefeller
Richmond Hill, GA
www.bobrockefeller.com
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