> Is there a shortcut I'm missing that would give me the path of the
> current file I'm working on? Ideally a key-combo that would put it on
> the clipboard
echo "$TM_FILEPATH" | pbcopy
echo $( osascript -e 'tell app "TextMate" to return path of first
document' ) | pbcopy
Im hoping this reproduces on other machines, this is with the latest
Textmate with all the halloween stuff that just downloaded last night.
the bug is that TextMate hangs totally when entering a particular
sequence of text, when Python highlighting is enabled.
Steps to reproduce:
1. create a new file.
2. Enter the following line (im sure lots of other text works, this
is the one i found):
print "registerprocessor", str(mapper), repr(processor.key), str
3. save the file with a .py extension, say "foo.py"
4. make sure the "python" file type is selected at the bottom. the
file should light up with the python highlighting.
5. place the cursor directly before the word "repr" in the above
string. then, type this text within the line (type it by hand;
cutting and pasting doesnt seem to do it):
6. on my machine, as soon as I type the right parenthesis, and then
try to type the comma, textmate completely hangs (via indefinite
im gathering the python highlighting has an endless loop in it. can
we revert to the previous highlighter ? it worked much better, this
one doenst even highlight consistently (i.e. variable names sometimes
come out *bold*, sometimes *italic*, etc).
I've put together an AccuRev bundle--you can get it from http://
interspatial.com/downloads/AccuRev.tmbundle.tgz. It contains three
commands: Add to Depot, Keep, and Promote. Keep and Promote allow a
I'd love any feedback.
Quick dumb question:
Why is it that when I select "XHTML" bundle, I get no PHP
highlighting at all, and when I select "PHP" bundle, I get no HTML
highlighting at all?
How can I get both at the same time? I'm having to constantly switch
back and forth :-(
:::: DataFly.Net ::::
Complete Web Services
are a little more scary than easter eggs... :)
One quick question though... Are all the Halloween eggs supposed to
disappear by themselves after halloween? And if so, halloween in
which time zone? I'm in Aus, and it is the 1st of Nov here, and the
eggs are all still in effect. They turned on as soon as I got the
new version yesterday, before it was halloween in the US, and I still
have them today, after halloween in Aus.
Be well, and happy hallow eve,
I am trying to write a simple osascript command-line utility that
acquires the directory of the file displayed in the frontmost
TextMate editor window, and am having trouble.
I've been trying to use applescript syntax such as this:
tell application "TextMate"
do shell script "echo $TM_DIRECTORY"
but the variable $TM_DIRECTORY is apparently empty.
Is there another way to accomplish this, with or without
applescripting? (I'd prefer a less pathological scripting language.)
I really have gotten used to MultiMarkdown. But for a new project I
need to work a lot with Wiki Markup.
Has anyone written an XSLT or something else to produce Wiki Markup
from MultiMarkdown documnets?