Is it true that if I make changes to any of my bundles, they will no longer
be updated by TextMate updates? Is it possible to make a separate bundle
that just encompases my changes and have them apply to another bundle? If
I've missed this in the manual, can you point me at where I can find it?
-dave
I just noticed this change in the Ruby bundle:
"[NEW] The Ruby bundle has a new snippet to generate ERb's <% … %> and
<%= … %> tags. Both tags are available via control > (⌃>). Add a tab
(⇥) after triggering the snippet if you wish to keep the =. This
depreciates the control X (⌃X) and control Z (⌃Z) snippets from the
Rails bundle and they will be removed in the future. This feature was
designed by the ANSI TextMate Standards Comity"
Which means I'm going to have to retrain my fingers - sooo much easier
to type ^z or ^x with on hand, now have to use two... anyway.. Setting
a document to "Ruby" or "HTML (Rails)", I tried the new trigger. ^>
does give <%= %>, but typing a Tab just inserts a tab. I don't see how
to get just a <% %> block? I tried hitting the trigger again (^>)
because I see comments about how this should toggle the tags, but all
that does is insert another set of <%= %> tags ( <%= <%= %> %> )
What's the magic necessary here?
Thanks,
John
Anyone else get this when committing a single unchanged file? The
Subversion Commit window is filled with:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb:166: undefined local
variable or method `unknown_paths' for main:Object (NameError) from /
Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb:166:in `call' from /Users/
jay/Library/Application Support/TextMate/Support/lib/Builder.rb:
226:in `_nested_structures' from /Users/jay/Library/Application
Support/TextMate/Support/lib/Builder.rb:148:in `method_missing' from /
Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb:166 from /Applications/
TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/
Support/svn_commit.rb:164:in `call' from /Users/jay/Library/
Application Support/TextMate/Support/lib/Builder.rb:226:in
`_nested_structures' from /Users/jay/Library/Application Support/
TextMate/Support/lib/Builder.rb:148:in `method_missing' from /
Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb:164 from /Applications/
TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/
Support/svn_commit.rb:82:in `call' from /Users/jay/Library/
Application Support/TextMate/Support/lib/Builder.rb:226:in
`_nested_structures' from /Users/jay/Library/Application Support/
TextMate/Support/lib/Builder.rb:148:in `method_missing' from /
Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb:82 from /Applications/
TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/
Support/svn_commit.rb:76:in `call' from /Users/jay/Library/
Application Support/TextMate/Support/lib/Builder.rb:226:in
`_nested_structures' from /Users/jay/Library/Application Support/
TextMate/Support/lib/Builder.rb:148:in `method_missing' from /
Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb:76
Followed by the expected "File(s) not modified; nothing to commit."
message.
/Users/jay/Library/Application Support/TextMate/Support/lib/
Builder.rb is currently identical to /Applications/TextMate.app/
Contents/SharedSupport/Support/lib/Builder.rb. Its svn info is:
svn info Builder.rb
Path: Builder.rb
Name: Builder.rb
URL: http://macromates.com/svn/Bundles/trunk/Support/lib/Builder.rb
Repository Root: http://macromates.com/svn/Bundles
Repository UUID: dfb7d73b-c2ec-0310-8fea-fb051d288c6d
Revision: 5871
Node Kind: file
Schedule: normal
Last Changed Author: JEG2
Last Changed Rev: 4942
Last Changed Date: 2006-08-25 22:50:14 -0400 (Fri, 25 Aug 2006)
Text Last Updated: 2006-10-27 14:38:43 -0400 (Fri, 27 Oct 2006)
Properties Last Updated: 2006-10-27 14:38:42 -0400 (Fri, 27 Oct 2006)
Checksum: f8a8ac57907b4a37deae4c03a752d337
I've been using the GetBundle bundle which is why I've got an svn
checkout of Support under Application Support/TextMate.
Thanks,
j.
p.s. - is this the right list for this?
This is sort of a feature request but i think it would be a handy
feature if you could drag a tab out of textmate and it will open that
file in a separate window.
sometimes i like to be looking at 2 files at once. and am a big fan of
vsplit in vim.
Thanks Kim
I love tm_dialog, it looks so cool. I watched the screen cast and I have
something configured (somewhere) wrong. In the screen cast the output is coming
back in the form:
{key = value; }
Which I believe is a plist
But when I run tm_dialog I am getting info back in this format:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>key</key>
<string>value</string>
</dict>
</plist>
Which I guess is the xml representation of the same info. Is there something
obvious I am doing wrong? I didn't see any flags on tm_dialog or in interface
builder. I am a web developer so go easy on me :)
nds
Hi,
I'm really enjoying TextMate. Thanks all.
I have trouble reading the output when I run a Python script. Here's
what I see:
Python 2.5.0 - PyMate r3226
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> mpeg.py
: (2, 'No such file or directory')
Traceback:
function in mpeg.py at line 249
function getparams in mpeg.py at line 243
Is there a way to get a full traceback where the exception class is
printed? e.g. when I run from a terminal I get:
Traceback (most recent call last):
File "/Users/norman/Code/cnuploader/audio/mpeg.py", line 249, in <module>
print getparams('../../../audio/mono.mp3')
File "/Users/norman/Code/cnuploader/audio/mpeg.py", line 243, in getparams
raise e
IOError: [Errno 2] No such file or directory: '../../../audio/mono.mp3'
It would also be nice if all the line numbers were hyperlinked. In
this example only the last one is.
Thanks.
Hi there,
I was having a look at the Blogging Bundle while trying to fix a pet
peeve of mine when I came across blogging.rb:594, # TBD: preserve
order from endpoint file
As that was exactly what I was trying to "fix", here's a vote for
keeping the entry points in the dialog in the same order as they are
in the endpoint file.
I have a couple of main blogs and some test blogs, and it would be
nice to not have them appear before the main blogs in the dialog :D
Just my .02
--
Ale Muñoz
http://sofanaranja.comhttp://appleweblog.com
So I got this thing setup and working nicely, but I'm having one
problem. I can't get code completion to work. I press the hot key for
the snippet "opt+escape" and I've tried clicking the option from the
menu bar. However each time I do it in just inserts an empty pair of
parentheses rather than inserting the parentheses full of code
completed information. Anyone know how to fix this? Thanks!
On Oct 31, 2006, at 6:05 PM, Luke Daley wrote:
> Thomas,
> After trying to install your word completion command, I get this:
> The bundle “tAylott_subtleGradient.tmbundle” does not contain the
> required “info.plist” file (or that file is corrupt) and can
> therefore not be installed.
> Any ideas? Thanks.
> -----------------------------
> Luke Daley
> http://www.ldaley.com
Well, dang. Thanks for letting me know.
I updated that page with the right link to that command and a link to
an updated zip that isn't broken.
thomas Aylott — design42 — subtleGradient — CrazyEgg
> 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
From within:
echo "$TM_FILEPATH" | pbcopy
from without:
echo $( osascript -e 'tell app "TextMate" to return path of first
document' ) | pbcopy
Hi folks:
Rather than pollute the mail list with more scratchings, I have made
a web page for various iTerm/TextMate shell scripts. One of these
runs shell scripts in a new iTerm window, and gives you the chance to
feed the command some arguments, if needed.
http://xanana.ucsc.edu/xtal/textmate_iterm.html
HTH someone.
Bill
William G. Scott
contact info: http://chemistry.ucsc.edu/~wgscott
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
(mapperfrom)
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):
repr(processor),
6. on my machine, as soon as I type the right parenthesis, and then
try to type the comma, textmate completely hangs (via indefinite
beachball).
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
comment.
I'd love any feedback.
--
Rob Warner
rwarner(a)interspatial.com
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 :-(
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
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,
Will :-}
Hi:
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:
osascript<< END
tell application "TextMate"
activate
do shell script "echo $TM_DIRECTORY"
end tell
END
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.)
Thanks.
Bill
Hi All,
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?
Thanks
Gerd
The TextMate book[1] is going to go out to reviewers very soon and we
still need a few people.
If your not already in the beta and would be willing to devote a
little time reading the book and sending in feedback, I would love to
here from you (off-list please). I want to find a few people eager
to learn more about TextMate, since you are the book's target
audience. However, experienced users who will correct my missteps
are also welcome.
Drop me a line if you're interested: james(a)grayproductions.net
James Edward Gray II
1: http://www.pragmaticprogrammer.com/titles/textmate/index.html
hey allan i really like the new "empty" halloween window! i almost
fell from my chair! thank you!
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
Hi,
some python commands are not working here, specifically the commands
which begin with "#!/usr/bin/env python".
When I try them, they output "env: python: No such file or directory"
My python lives at /usr/local/bin/python and this is also what the
(Preferences) textmate shell variable $TM_PYTHON is set to.
What do I need to do to get "#!/usr/bin/env python" also recognize that?
best,
-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands
http://labs.ixopusada.com
-----------------------------
Hi!
There are two commands, "Go to symbol" and "Go to file", that uses a
search dialog to select a file or a symbol.
I think this would be very usefull for other commands too. I am
thinking about the insertion of references and citations in Latex. Is
there a possibility to use this feature in bundles?
Happy Helloween ;)
Helge
Hi!
There are two commands, "Go to symbol" and "Go to file", that uses a search dialog to select a file or a symbol.
I think this would be very usefull for other commands too. I am thinking about the insertion of references and citations in Latex. Is there a possibility to use this feature in bundles?
Happy Helloween ;)
Helge
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
If you hit ctrl-shift-i in an untitled window, TermMate barfs up an
error "(erb):75:in `chdir': No such file or directory - TM_DIRECTORY
(Errno::ENOENT) from (erb):75".
I've been using TextMate to edit some C/C++ code, and I've noticed
that the language module doesn't catch functions where the parameter
list is split across multiple lines.
For example, it will catch this:
void myFunction( int a, int b )
{
}
But it will not catch this:
void myFunction(
int a,
int b
)
{
}
I was just wondering whether the regular expression should be
modifier to ignore any white-space and new-lines between elements of
the function definition?
I'm using TextMate 1305.
--
Kind regards,
James Milne
There seems to be a problem with how TextMate deals with processes
run from a document. If you want your TextMate to become
irresponsive, just do the following
1. Open a new document
2. Type "yes"
3. Press ^R
4. Voilá!
Of course what you do is to run into an endless loop here. But the
problem is that the whole application becomes irresponsive. It really
should not be as prone to errors in external programs, since this
creates the risk of data losses.
Hi,
Is there any way to make a bundle command that works while there
is no file open in TextMate?
I often want to use the 'Remote Open...' command in my remote
editing bundle (http://www.cse.unsw.edu.au/~willu/RemoteEdit/) when
no other windows are open.
Cheers,
Will :-}
Hi there,
I've just updated my bundles from the repository as I thought I'd see
what new goodies are available. Now however when I attempt to commit
I get the usual status window with the following message:
"These files are not under version control, and so will not be committed:
._add_countries.php
test/unit/._postage_price_test.rb
test/fixtures/._products.yml
app/helpers/._application_helper.rb
app/helpers/._basket_helper.rb
app/models/._customer.rb
app/models/._sku.rb
app/models/._country.rb
app/models/._basket.rb
app/models/._card.rb
app/models/._order.rb
app/models/._product.rb
app/models/._basket_item.rb
..."
(and so on)
Then CommitWindow pops up with all those files listed again
(understandably with a ? status) and they are all selected too. This
is different behaviour to what I'm used to - the previously the
subversion bundle silently ignored ._* files and wouldn't even mention
their presence the status window.
I realise the ._* files appear as the project is on a NFS share but
previously this wasn't a problem. Is there way to tell the bundle to
globally ignore ._* or is the only option to set the svn:ignore
property recursively on every directory (and every new directory in
the future)?
(I've update the entire /Library/Application Support/TextMate/
checkout so I've got the up-to-date version of CommitWindow.app too)
Cheers,
Paul.
The 'Insert Command Header' snippet in the 'source' bundle has '//'
hardcoded as the start comment token. Wouldn't it make more sense to
turn it into a command that would take each language comment delimiters
into account?
Cheers,
Emmanuel
After the recent update I'm having trouble with creating new lines.
The return key doesn't work, but Shift + return works, Command +
return works, and the enter key on the numeric keypad works.
Has anyone else had this problem? Anybody have ideas about how to fix
it?
Hi everybody
I am new to TextMate. I searched all-over, but I didn' find the answer
to my problem:
What shortcut is there to switch to the last used editor window/tab?
Just like Command-Tab switches to the last used application. Previously
I worked on Windows PC, and most editors had the shortcut Ctrl-Tab to
cycle through the last used windows.
I'm shure: There MUST be such a feature in TextMate! But where?
Thanks for help!
Andreas
I have a Ruby script like this:
result.each do |k, v|
puts "----"
puts k
v.each {|m| puts "\s#{m}"}
end
The point is that the first two lines (of each iteration) have no space
before them, but the remaining lines have a space. In Terminal the output
starts out like this:
----
String
%
*
+
That is correct. In RubyMate the output starts out like this:
----
String
%
*
+
That's incorrect. Where's my initial space? No matter how many \s I ask for,
I never get that many in the output. m.
PS I think I'm also seeing some occasional problems where a lot of puts
causes the output to hang, so that I have to close the RubyMate window and
get it to stop running. But I'm not able to reproduce reliably so I could be
wrong about this.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Hi all,
I created a find/replace pattern I'll use fairly often. In BBEdit I was able to save this pattern and restore it later. It would be great if I could do that with TM too.
I know about the popup menu in the Find dialog, but that seems to only list _recent_ patterns, right?
Thanks in advance,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
Hi,
I wrote a bundle to access Qt documentation from TextMate a while ago,
just before a Qt bundle appeared in the bundles repository. Its main
advantage over the current one is that you can choose the Qt version you
want to work with. Also, it can either access the doc locally or on the
net. I rewrote a few things to integrate it with the "official bundle" -
mainly to be able to use the TM_QT_DOC_DIR variable. And since the
bundle also generates a list of Qt's keywords, it may be used to
generate the language grammar as well. Now the question is, would anyone
be interested in merging the two bundles? Torsten (if I'm not mistaken,
you're in charge of the Qt bundle, sorry if I'm wrong), what do you
think of it?
You can get it there: http://eturquin.free.fr/pub/MyQt-tmbundle.tar.bz2
Cheers,
Emmanuel
Hi All,
I just loaded the new version (1.5.4 (1311)) and am having a problem with the
`Typeset and View (PDF)' command in the Latex bundle.
I found Command-b now inserts a bold tag instead of running pdflatex etc.
So I went to the bundle editor and removed the activation key equivalent from
the `Bold` command.
Then I made sure that command-b is the key trigger for the `Typeset and View
(PDF)' command.
Now Command-b starts X-Code, not exactly what I was looking for.
Any help or pointers as to where to find the info would be appreciated.
--pete
That's what you get for encouraging me. ;-). Sorry for the whole
new bundle ID, I reconfigured things on my end.

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
Okay, their stupidity is arguable, it's just that they're so simple
it hurts. But they just helped me finish a CSS job in record time,
so I thought I'd share. They're set up to let you speed through
setting up your selectors and then add the definitions you're sure
about. Then you can insert lines and use tab triggered shortcuts to
insert further definitions. Hitting tab at the end of a rule builds
a new rule, hitting tab at the end of a property:value; creates a new
property:value; line. I set up #-Tab to create a quick ID snippet
and .-tab to do a class. They do the same thing, it just works the
way a CSS coder thinks (or at least the way I do).
Lastly, I scoped the Insert Color command to meta.property-list.css
and added a # tab trigger. The ID tab trigger is scoped to
source.css. So if you're inside of a definition typing #-Tab will
give you the color picker (with the groovy color shortcuts) and
outside will give you a new id. I didn't throw that into the bundle,
I'll let you make that mod on your own if you see fit.
Side note: Learning the CTRL-[alpha] navigation keys has been a huge
timesaver for me. Moving my hand over to the arrow keys was almost
as bad as picking up the mouse!

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
Hi,
I was trying to update my *.tmbundles with subversion and got stuck
updating the Rails.tmbundle. I then deleted it and reinstalled am
(still) getting stuck here:
[nacohen@NACBook:~/Library/Application Support/TextMate/Bundles]$ svn
--username anon --password anon co http://macromates.com/svn/Bundles/
trunk/Bundles/Rails.tmbundle
A Rails.tmbundle/Commands
A Rails.tmbundle/Commands/Rake Migrate to Version.tmCommand
A Rails.tmbundle/Commands/Generate.plist
A Rails.tmbundle/Commands/Make Selection in to Partial.plist
...clip...
A Rails.tmbundle/Syntaxes/Ruby on Rails.plist
A Rails.tmbundle/Syntaxes/SQL (Rails).plist
A Rails.tmbundle/Syntaxes/HTML (Rails).plist
Fetching external item into 'Rails.tmbundle/Support/plugins/engines'
It just hangs on the fetching of the external item. Any ideas would
be appreciated. I am very much a newbie when it comes to using
subversion.
Thanks in advance,
Norm
---
Norman A. Cohen
nacohen(a)mac.com
"I take my children everywhere, but they always find their way back
home."
Robert Orben
Hi,
if I have a nib with a NSTextField I start the dialog and type e.g.
German umlauts or Japanese etc. the STDOUT output is a '\U####'
sequence.
>{ignCase = 1; regExp = 1; searchString = "\U00f6\U00e4\U00fc
\U00blabla"; }
Would it be possible to output the content à la
NSFileHandle *fh = [NSFileHandle fileHandleWithStandardOutput];
if (fh) {
[fh writeData:[output dataUsingEncoding:NSUTF8StringEncoding]];
}
??
Or are there any disadvantages with that?
Best,
Hans
I just started watching the screencast about tm_dialog. I tried
running the command Allan did 'tm_dialog', but I just got a giant
tooltip complaining about not having an XCode project or something.
Even trying just a echo "hello" gives an error. (being a tooltip I
can't copy it!) - Ah.. good old screen grab comes to the rescue:
/Library/Application
Support/TextMate/Bundles/XCode.tmbundle/Support/bin/find_xcode_project.rb:27:in
`chdir': can't convert nil into String (TypeE
...
Didn't find an Xcode project file
You may want to set TM_XCODE_PROJECT.
Help?
Thanks!
jt
Steve,
Thanks for the input! This has now been fixed.
- Alex Ross
On Oct 29, 2006, at 7:46 PM, Steve Lianoglou wrote:
> Hey there,
>
> I noticed there's been some activity updating the Python bundle and
> language defs (thanks!). The new language grammar is flagging
> something as invalid, but I'm pretty sure what I'm doing is kosher.
>
> Its catching my return statement that returns a tuple that I'm
> defining (and surrounding) by parenthesis at the time of return.
>
> A trivial example:
>
> def something():
> one = 1
> two = 2
> return (one,two)
>
> It looks like there are three scopes that are being assigned here
> (on the return statement, that is), which I don't think should
> matching here:
>
> invalid.illegal.name.python
> entity.name.function.python
> meta.function-call.python
>
> I just wanted to bring this to your/someone's attention. Thanks for
> taking the time to make the Python bundle better ... if I recall
> correctly, most everything used to be in just a source.python
> scope, so the new work is much appreciated.
>
> Thanks,
> -steve
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
Hi,
is there any way to distinguish what button was pressed if I have more
of them?
E.g. you want to ask the user; two buttons 'Yes' and 'No'. How can you
return that?
Thanks,
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
First, thanks Haris for beginning to incorporate the new tm_dialog
into the LaTeX bundle. But I ran into trouble with the revised Insert
Environment command. Log for r5765 reads:
> Enhanced the Insert Environment command to use the new tm_dialog
> menu. Now when you trigger it with no current word, a menu of all
> environments defined in the LaTeX Config file will show up.
Cool feature! But when I tried it I get the the following error:
tm_dialog: server version at v3, this tool at v4 (they need to
match)
/Library/Application Support/TextMate/Support/lib/dialog.rb:
19:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filemenu'
from /tmp/temp_textmate.eSpoUX:16
I have updated both the Bundles and Support directory and am using
the latest 'cutting edge' version of TM.
Thanks again. Best, Mark
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a case, where I would like to retain the Directory Name of the
File being dropped.
In that case, the TM_DROPPED_FILEPATH variable has the following value:
/Users/username/Sites/siteroot/public_html/textpattern/_templates/articles/article/60.an-example-article.txaml
I want to retain the last directory name, in this case: article.
I tried :
section=`echo $TM_DROPPED_FILE_PATH | perl -pe
's/(.*)?(\/)(\w+)(\/)([\d+]+)(\.)(.*)$/$3/g'`
echo "$section"
But the variable doesn't echo anything.
I tested the replacement pattern with find and replace and it gives me
what I want.
What am I doing wrong here ?
Any help appreciated.
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFRl9B8tSzPOYuZvQRAsvoAJ9AvdJnQlXWIgOEtD1ppcNWAF/1IQCcC/jK
UbfVsF2g0QZwSwMx9WnqKRw=
=qDyr
-----END PGP SIGNATURE-----
Is it possible to use "\z" in the Language Grammer? I'm thinking like
this:
name = 'meta.test';
match = '^(\t)(.+)(\n|\z)';
captures = {
1 = { name = 'whitespace'; };
2 = { name = 'paragraph'; };
3 = { name = 'end-of-line'; }; }
I know I can't currently do this, is it because I don't understand
"\z" or because TextMate doesn't support it? If TM doesn't support
it, why? (I think this would be really useful)
It would seem that the HTML bundle now checks to see if a document
has a doctype of XHTML and if it doesn't it defaults all tags to
their HTML counterparts. This would be great if I didn't spend all
day editing templates in XHTML that aren't always the portion of a
page that contains the doctype.
Could someone possibly point me in the right direction to turn off
the check or default to XHTML instead? I would appreciate it
immensely. :)
I just noticed this a second ago and suspect I have a bunch of code I
need to go through to remove the <br> tags and replace them with <br />.
Jamie
_______________________________________________________________________
Email: jamie(a)methnen.com
Homepage: http://www.methnen.com
"And I always go to pieces. And I have it in my mind, that the sky is
tall and heavy, when I could be brave."
-Karen Peris (Brave)
"I want to find where the maid in the street is pouring her wine,
I heard she takes you in and gives you the words you need said.
If you'll be her brother, she'll kiss you like a sister.
She'll even be your mother, for now."
-Matt Slocum (Sister, Mother)
"And we are drowned."
-Annie Dillard (Tickets For a Prayer Wheel)
_______________________________________________________________________