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)
_______________________________________________________________________
Hi,
just saw the tm_dialog screencast: http://macromates.com/screencast/
intro_to_tm_dialog.mov
just a quick note to say that I'm amazed at tm_dialog... Well,
tm_dialog isgreat :), but really it's more the power of the Interface
Builder, what you can do without coding that got me of my feet.
really amazing.
Best regards, (and now waiting eagerly for the next tm_dalog
screencasts :))
--
Pedro Melo
JID: xmpp:melo@simplicidade.org
Hi,
first of all tm_dialog is ... I don't find words for that. Thanks A
LOT!!!!!!
tm_dialog will revolutionize my work ;)
----
I just played with it to use it with Hypersearch.
I followed your instructions but I have a tiny problem:
I created a nib test1 with an TextField and two check boxes.
Everything is fine except there is no return for the TextField. Only
my checkboxes appears.
If I add a second TextField to the nib then the value of the FISRT
TextField is returned but unquoted.
What I did wrong? For checking this I attach two small nibs 'test1'
with one TextField and 'test2' with two TextFieldes.
Here's the terminal output:
l:~/Documents Bibiko$ tm_dialog ~/Documents/test1.nib
{sw1 = 1; sw2 = 1; }
l:~/Documents Bibiko$ tm_dialog ~/Documents/test2.nib
{searchString = aaa; sw1 = 1; sw2 = 1; }
I couldn't find my error.
I use TM Cutting-Edge build 1305 downloaded one hour ago.
Thanks in advance,
Hans
Greetings,
The latest Python bundle from SVN is apparently missing a
"magic_method_name" rule in its syntax file which causes TextMate to
flood console.log with error messages at each keystroke.
--
Luc Heinrich - luc(a)honk-honk.com - http://www.honk-honk.com
Hi TextMate'rs,
I often mistakingly type CJK letters in TextMate documents by totally
forgetting checking what input method I'm in.
If this happens, I don't find any solution to go back to normal.
Pressing Command-Z doesn't seem to help there. The only thing I can
do is close the window without saving, which, invariably, loses what
I've been working so far.
Is there any solution to quickly revert to where I was?
Also, is there any way to force TextMate to use a specific input
method, let's say, US mode?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
AIM: samuraicoder(a)mac.com
Hi,
For better or worse, I create a lot of JavaScript dynamically via PHP
in my current project. Would it be possible to get TextMate to treat
anything inside <? ?> (or <?php ?>) that is inside <script> tags as
PHP code instead of JavaScript?
- Luke.
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
The 'Commit' command in the Subversion bundle seems to be broken
since Since TM Rev 1305 (+ latest svn bundle from trunk). I get the
following error on commits:
subversion/libsvn_ra/ra_loader.c:283: (apr_err=170000)
svn: Unrecognized URL scheme for ''
According to the Subversion FAQ [1] this indicates that the dynamic
linker/loader can't find the plugins to load. However, doing a commit
on the command line works just fine for me, so it seems to be an
issue with the Subversion bundle only. Is anybody else having this
problem? Thanks.
Sebastian
[1] http://subversion.tigris.org/faq.html#unrecognized-url-error
I've been trying to come up with a solution to creating shell scripts
within Textmate and creating a widget on the Dashboard layer to call
the script with references to any files or URLs passed to it, and I
have eventually come up with a Textmate widget & bundle to do all this.
I've created a screencast (sorry - no audio) to show the various
features of the bundle and the widget, and it can be found at:
http://homepage.mac.com/andy.herbert/Textmate-widget.mov
Features shown in the screencast include:
The actual widget is included inside the bundle and is installed in ~/
Library/Widgets/ the first time you call the bundle command to create
a new widget using the currently opened document.
To call a script using the widget click on the Textmate icon, to pass
files to the script as $1, $2.. etc drag files from Finder on to the
Textmate icon, you can also drag a URL on to it if you have a web-
browser open, this too is passed as $1.
If when the script is called there is any output a green icon will
appear on the widget, and when this is clicked you will be able to
view the output log, same goes with any errors the script throws up,
except this time the icon is red.
Flipping the widget over will allow you to edit the widget's label or
modify the script the widget uses. All scripts used by the widget are
held in ~/Library/Application Support/Textmate/Widget Scripts/ and
are deleted when you remove the widget.
Both the output and error logs are stored in ~/Library/Logs/, each
widget has a separate file, and is deleted and re-created each time
each script is called.
The widget bundle can be found at:
http://homepage.mac.com/andy.herbert/Widget.tmbundle.zip
I hope it might be useful to someone else on this list.
Hi,
It is very cool that enter now opens URLs in textmate.
It would be a nice addition if, as in Safari and mail.app, adding a modifier
opened the URL without bringing the browser to the front-most.
So, I suggest "Cmd-ENTER" = open in browser in background
tim
Hello, everyone.
As you may know I have written a basic code completion system and
documentation-lookup command for TextMate(^M and^H). I have also finished
a definition look up system for Cocoa(suggestion for key-trigger
appreciated).
The solution I have used is to look up every method in a gzipped
list and
accessing it from ruby via the shell command zgrep. Since I want the
system to work with more than just cocoa I thought I tell anyone
interrested so that they can give me their opinions. Currently the list
is formatted in the following way:
[methodName][tab][framework][tab][behavior][tab][Class][tab][methodtype][tab][returnType]([tab][arg])[newline]
ofcourse if there are more args, then the parenthesis is repeated, and if
there is no arg the whole parenthesis is omitted. hopefully the following
ruby dict explains the various abbreviations.
{:AppKit => "AK",
:CoreData => "CD",
:CoreImage => "CI",
:Foundation => "F",
:instancemethods=> "im",
:classmethods => "cm",
:classes=> "Cl",
:protocols => "Pr",
:delegatemethods => "dm",
:notifications => "no"}
behaviours are either classes or protocols, methodtypes are either
instancemethods delegatemethods notifications or classmethods.
displayMode AK Cl NSToolbar im
NSToolbarDisplayMode
propertyForKey: F Cl NSStream im
id NSString *
textUnfilteredFileTypes F Cl NSAttributedString
cm NSArray *
textUnfilteredPasteboardTypes F Cl NSAttributedString
cm NSArray *
textView:clickedOnLink:atIndex: AK Cl NSTextView
dm BOOL NSTextView
* id unsigned
when looking up methods for completion and documentation this is all the
information I need for my uses. The problem comes when doing declaration
lookup, since not all classes are declared in a file with the same name
and there are categories and so on. Currently I am using an xml dump from
AppKido converted into a ruby dict using crazy gsub commands.
Unfortunately the appkido parser is a little wacky, so I thought that I
would ask the list for help.
What is needed is a file or a script that generates the file
according to
the spec above, but when a method is declared in a file that does not
correspond to the class name, the filename should be written after the
Class using a separator that is not a tab (; perhaps).
If anyone see a problem coming up with this approach please say
so, if
you have any other critisism feel free to add it. Hopefully this layout
contains enough parameters should someone want to write completion and
lookup commands for pyobjc or rubycocoa. Perhaps it would be smart to
come up with a name for an index file, containing your own indexed
methods, that will be automatically picked up by the various completion
and look-up tmCommands.
Joachim Mårtensson
It was bothering me that the cleanup command in GTD2 wasn't
preserving whitespace before projects. I.e. this...
* Foo
- bar
* Baz
- bob
- fred
Would be turned into:
* Foo
- bar
* Baz
- bob
- fred
This "fixes" it in a way that'll likely be laughed at. Point and
laugh away, it works for me... :-)
b.bum
Index: GTD2.tmbundle/Commands/Cleanup.tmCommand
===================================================================
--- GTD2.tmbundle/Commands/Cleanup.tmCommand (revision 5658)
+++ GTD2.tmbundle/Commands/Cleanup.tmCommand (working copy)
@@ -17,7 +17,11 @@
if (myTest.pre_match != "+" and myTest.pre_match.length > 0)
puts line
else
- myDone = myDone + line
+ if (line != "\n")
+ myDone = myDone + line
+ else
+ puts "\n"
+ end
end
end
puts myDone</string>
Dear Allan:
On Oct 27, 2006, at 6:45 PM, Allan Odgaard wrote:
> On 28. Oct 2006, at 03:32, William Scott wrote:
>
>> It may be a system shortcoming but it breaks the default OS X
>> behavior.
>> Personally I always launch X11 apps from the command line like any
>> other
>> unix program, but OS X has been specifically designed to make these
>> binaries double-clickable or openable with the "open" command (as
>> well as
>> the defective open-x11 command).
>
> Which application would handle the double click of such unix binary?
The Finder. If you don't have textmate, you can navigate in the
Finder to /usr/X11R6/bin and double-click on a file, and it runs. I
don't use the system that way -- I'm basically a unix geek, but it is
the default system behavior.
>
> Can you open it with: open -a «the application which the system
> seems to have a hardcoded fallback for» «application»? If that is
> doable, you could do a wrapper for open, which added the -a
> argument for these binaries.
Apple has a program that does this it calls open-x11. I guess it is
useful if one doesn't have /usr/X11/bin in the $PATH, but apart from
that, it seems kind of silly (and has some odd limitations).
>
>> Is there not a way to simply exclude binary executable files from
>> those
>> textmate claims as its own?
>
> There is not, as said, this is a system shortcoming.
I wrote a simple-minded shell-script wrapper for "mate" that tests
files and excludes them if they are binary data files, mainly to
allow creating projects on the command-line that exclude files I
can't edit (and pass them off to other programs). FWIW: http://
xanana.ucsc.edu/Library/init/zsh/local-functions/darwin/edit
>
>> Other editors don't seem to do this.
>
> And other editors does not open README, INSTALL, Makefile, etc.
> when double-clicked. I got requests for that on a weekly basis
> before I added the plist entry.
Sorry, I thought it would be easy to exclude specific directories
like /usr/X11R6/bin and /sw/bin.
I'm not complaining, just curious (and largely ignorant of how these
things work).
All the best,
Bill
I installed DarwinPorts (now MacPorts) several weeks ago, and installed
TextMate today. When I click on a Unix app found in /opt/local/bin, such
as /opt/local/bin/kmail, instead of the app opening using Apple's X11,
which it was doing previously, it now opens in TextMate.
If I Get Info, I cannot change the file association back to X11 due to
permissions.
Is there a solution that I'm simply not seeing? So far, the only thing
that works is uninstalling TextMate, which I obviously don't want to do.
Thanks.
Scott
--
R. Scott Granneman
scott(a)granneman.com ~ www.granneman.com
Full list of publications @ http://www.granneman.com/publications
My new book: Linux Phrasebook @ http://www.granneman.com/books
Read the Download Squad Blog @ http://www.downloadsquad.com
"A man cannot be too careful in the choice of his enemies."
---Oscar Wilde
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I had a specific need for a snippet, that would have current word (with
fall back to selected text) to generate either a container tag or a
single tag, depending on whether the ending forward slash was removed in
the tab stop variable or not.
I use this for the TXP bundle to generate a plugin tag, since those tags
would not get matched by the insert open/close tag command, (ctrl shift
<) since it is impossible to know about all of them.
It uses the following snippet(with capture register 1 to decide weather
the closing container tag should be inserted or not :
tag="${TM_CURRENT_WORD:-TM_SELECTED_TEXT}"
tags="<txp:\${1:$tag}\${2: />}\$3\${2/ \/>|(.+)/(?1:<\/txp\:$tag> )/}"
echo "$tags"
The macro then selects the current word, triggers the command, which has
output set as "Insert as Snippet" and tabs over the second tab stop
variable.
Not knowing right now where to put it, I assigned it to :( ctrl shift >
) and named it simply: Tag/s
Here is how to use it:
write the tag name, trigger the macro, which will insert a single tag.
If that is intended, then pressing one more time tab will leave the
caret at the end of the single tag.
When the tag is no single tag, the you just type : >
and it will mirror itself inserting the corresponding closing
tag,leaving a tab stop variable in between.
This is perfect, since I can then just press return and it will do the
special HTML return behavior.
You can easily adapt this to your needs, for HTML or anything else.
(I forgot to encounter for attributes though)
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
iD8DBQFFQgGY8tSzPOYuZvQRApgJAKDRs0Z31MkhBxxLxrsfgvmm738T+wCgiwLz
AdkkOl7b6eB+vv2CozbK220=
=ZtwD
-----END PGP SIGNATURE-----
OK thanks. I'll wait a new release ;-)
Francois
----- Message d'origine ----
De : guerom00 <romain.guerout(a)stud.unibas.ch>
À : textmate(a)lists.macromates.com
Envoyé le : Samedi, 28 Octobre 2006, 0h47mn 36s
Objet : [TxMt] Re: Window splitting ?
Francois <francois_75015@...> writes:
> I am looking for a window splitting function in TextMate
> : does-it exist somewhere ?
It's not implemented yet.
This is on Allan's ToDo list :-)
______________________________________________________________________
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
>From the Terminal:
matt-neuburgs-imac-g5:~ mattneub$ ruby -e "Object.new.hello"
-e:1: undefined method `hello' for #<Object:0x3257bc> (NoMethodError)
Very good. Now let's try it in TextMate. Make a TextMate doc, set it to
Ruby, put Object.new.hello into it, and run it. The RubyMate window appears
and says:
NoMethodError: undefined method 'hello' for #
I'm guess that the loss of <Object:xxx> is because of an HTML problem. Hmmm,
I suppose I *could* try to fix this instead of just talking about it. :)
Anyway, a fix would be nice to have. Thx - m.
--
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>
Is there any way to make textmate save, without a dialog, the
frontmost document, from a command?
I tried `osascript -e 'tell application "TextMate" to save document
1'`, but I got a file dialog. Thanks for your assistance.
Jeremy
Good morning.
I think something similar has been brought up previously on the
mailing list, but I didn't see a resolution so I thought I'd check in.
I've got a script that I've got triggering on Cmd-S to create a
backup file each time I save. However, the problem is that if I have
an unsaved document and click Cmd-W and hit Enter to save, my script
does not execute because Cmd-S was never pressed.
What I would love is to be able to trigger on an event like the
"save" event in this example. Another subscriber to this list had a
few other events that he thought would be useful, too.
Any chance something like this is in the pipeline, Allan?
Thanks.
--
Michael Lehmkuhl <michael(a)electricpulp.com>
Partner, Electric Pulp
1.605.988.0177 : 1.888.722.PULP
electricpulp.com
Hi all,
I am looking for a window splitting function in TextMate : does-it exist somewhere ?
Indeed, I am thinking in an horizontal split....you all know what I mean, I presume. Being able to see two different parts of the same text in the same window (the top and the end of a text, e.g.)
Does anyone has an idea ?
Francois
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi to all,
I am writing a documentation, and started off in HTML.
However, that creates all sorts of problems, so I'd like to do it in
Markdown better.
The problem is, that I have written already half of the documentation
using HTML (which I prefer over Textile or Markdown)
Is there a command to convert back to Markdown from HTML ?
I couldn't see one (I was wondering may be also I broke some stuff,
because of SVN)
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
iD8DBQFFPZ0m8tSzPOYuZvQRAsUIAKCJp+7jZ50SX2KiXuOFQKUunEilhgCggKBh
83RT4+yz7zE9GPREcCi7maw=
=vAxO
-----END PGP SIGNATURE-----
I'm trying textmate. How best to be introduced to this editor? Is there a tutorial anywhere -- especially a rails specific one?
DHH has a couple of movies featuring textmate. One is called def_end.mov and you can find it at http://media.nextangle.com/textmate/def_end.mov, referenced in his blog entry at http://www.loudthinking.com/arc/000270.html.
The movie shows what is happening, but doesn't indicate what keys are being pressed. He types
Summer
does something and it becomes
class Summer
end
etc. What key sequences are doing this expansion?
Thanks,
Nope, because the command in question rewrites the document. I keep
forgetting to save immediately after and then run into the "revert?"
dialog at some point later, losing (a small amount of) work.
jb
Brad Choate bchoate at gmail.com :
> There's an option for the command that allows you to specify to save
> the current document before invoking it. Is that sufficient?
>
>
> On Oct 27, 2006, at 7:16 AM, Jeremy Bernstein wrote:
>
> > I should have mentioned that the document in question _has_ been
> > previously saved, so it's not a question of TM not knowing where or
> > what to save.
> >
> > jb
Hi all, running svn up *.tmbundle subversion runs for awhile but then
I get the following error:
svn: PROPFIND request failed on '/svn/Bundles/trunk/Bundles'
svn: PROPFIND of '/svn/Bundles/trunk/Bundles': Could not read status
line: Connection reset by peer (http://macromates.com)
Is there a problem with the subversion repository?
Thanks in advance.
All the best, Mark
It seems to me that there is a bug in the smarty bundle. Any time you
have a ' in a comment or as an apostrophe in text (as in don't) it
thinks it's the start of a string and throws off the hilighting for the
rest of the page.
Is this the right place to report this?
Could somebody please add a simple "Entity encode selection" command
to the HTML bundle or maybe send it to this list for those who don't
want to use the new Javascript/ROT 13 based version as described here:
<http://macromates.com/blog/archives/2006/10/16/text-transformations-
screencast/>
Thanks a lot!
Oliver
Hi all,
When I create a new document, if I press the right arrow, even before
writting anything, it moves one space at a time until it reaches the right
of my window. Same behaviour happens in any document. It's as if it couldn't
detect line breaks....
I don't think it used to be like that, have I accidentaly changed a setting?
Thanks
hi everybody.
when viewing the rails documentation (⌃H) for the "render" command,
i get a screen telling me, there's multiple commands which contain
"render". when i click on "ActionController::Base#render", i get
this error:
> /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:167:in
> `display_flow_item': undefined method `join' for "Rendering an
> action":String (NoMethodError)
with this trace:
> from /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:211:in `display_flow'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:210:in `each'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:210:in `display_flow'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:268:in `display_flow'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:63:in
> `display_method_info'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:59:in `page'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_display.rb:59:in
> `display_method_info'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:59:in
> `report_method_stuff'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:115:in `get_info_for'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:135:in `process_args'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:134:in `each'
> from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:134:in `process_args'
> from /usr/bin/ri:48
then follows the first part of the documentation for render:
> ------------------------------------------
> ActionController::Base#render
> render(options = nil, deprecated_status = nil, &block)
> ----------------------------------------------------------------------
> --
> Renders the content that will be returned to the browser as the
> response body.
i wasn't able to reproduce this error with any other documentation,
neither the other "render"-methods nor any other method.
it doesn't seem to be an issue with ri, as it just displays fine if i
use ri from the commandline. remarkably the first part of the
documentation is displayed but the mainpart is missing (about 150
lines).
it's not more than a slight annoyance, as i hardly need the docs for
"render" any more :-).
regards, niko.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
Does the Commit button inside the svn status window not work? I do Bundles -> Subversion -> Status, then I see a message noting that I have one modified file. I click the "Commit" button, but it says "File(s) not modified; nothing to commit." Here is the output from this window:
--------------------------------------------------------------------
Status for “(selected files)”
M Revert Diff html_common/templates/series_categories.ihtml
Commit
File(s) not modified; nothing to commit.
--------------------------------------------------------------------
Q
On Thu, 26 Oct 2006 15:33:47, romain.guerout(a)stud.unibas.ch wrote:
> OK : after a quick talk with my system administrator,
> who activates the public keys authentification,
> it works great. :-)
>
> Thanks.
:) Glad it is working for you now.
One thing I have noticed since I've been using it. I think I have
the wrong arguments to scp. I was being clever and made scp copy the
permissions bits in both directions. I now believe this is a bad
idea. If you change the permissions on the remote file while
editing, then saving will change them back, which is a hassle.
I haven't updated the tarball on my web page, but given that all the
copying is in the scripts, you can change the args to ssh yourself.
Or even replace ssh with a completely different transport mechanism
if you're so inclined. It just needs to be able to copy the file
both ways.
Be well,
Will :-}
I modded my Textmate Javascript bundle today to treat 'true' and 'false'
different to the other constants.
http://vennt.net/tempting/intelibool.png
So now true gets a green highlight and false a red one so you can read if
statements at a glance etc
Here are the lines I modified
{ name = 'constant.language.js';
match = '\b(false|null|super|this|true)\b';
},
was replaced with
{ name = 'constant.language.js';
match = '\b(null|super|this)\b';
},
{ name = 'constant.language.js.true';
match = '\b(true)\b';
},
{ name = 'constant.language.js.false';
match = '\b(false)\b';
},
Then I just added rules to my current theme for
"constant.language.js.true" and "constant.language.js.false"
I would have done it Textmate wide but I don't know enough about the
system for that, is there any implications for what I have done here?
I'm experimenting with a way to generate id/class names from the
selected text when I trigger one of my headline commands. I really
like the way this turned out and thought I would share it. Unless
someone comes back and asks me to make changes, I promise I'll stop
now. I prefer camel case in CSS files, but I've been known to be
inconsistent. I made commands to switch between the two as well. I
apologize to anyone who is currently rolling their eyes ;->.
I'm attaching the command for an h1 tag with a shortcut key of
command-1 that will take selected text or the whole line and turn it
into a headline. It removes leading spaces and tabs and there's a
camel case version and an underscore version. On a long headline the
id name gets ridiculous, so there's a command that will work on both
to shorten it to the first three words. And lastly, in case you
can't make up your mind either, or need to correct your own
inconsistency like I do, there's a convert command that will switch
back and forth. The shorten and convert commands are set to
command-! (exclamation point). I also used an h1 tab trigger on the
h1 commands which you may want to remove if you keep the original h1
snippets. If used with the tab trigger, they behave just like the
old snippets, except they'll mirror and transform the text you type
between the tags.
Enough rambling.
Brett
I'm wondering why when editing an email message (using the Mail language) the scope is set to:
text.mail.markdown
text.html.markdown
This results in html-style commands and snippets being executed (comments command inserts <! -- -- > style). It seems like Text should be the inherited scope, with modifications ( > set as the comment mark).
Which begs another question: how to import the Text language bundle into the Mail bundle. (So that I can have plain text scopes and thus syntax coloring).
Thanks!
Q
On Thu, 26 Oct 2006 12:19:22, romain.guerout(a)stud.unibas.ch wrote:
> William Uther <willu.mailingLists@...> writes:
>
>>
>> Hi all,
>>
>> I just finished some scripts that allow remote editing with
>> TextMate, kinda like BBedit's sftp functionality. They're a little
>> rough, but I thought I'd release them so that others can play if they
>> want.
>>
>> http://www.cse.unsw.edu.au/~willu/RemoteEdit/
>>
>> Cheers,
>>
>> Will :-}
>
>
> It silently fails for me :-(. I type “mate file†on the
> remote
> machine, it asks for my password on the Mac, keeping an eye
> on my net traffic, I see that the remote file is copied on my Mac
> but nothing happens…
> Is it possible to have more debugging outputs of some sort…
>
> TIA
I'll have a look this weekend. Most of it is pretty simple though -
you could probably add that debugging yourself if you know any shell
script at all. Here's a description of what is going on.
The 'mate' script runs on the remote machine. It is a simple shell
script that ssh's into your mac and runs the 'remoteOpen' script with
the username on the remote machine, the hostname of the remote
machine and the path to the file.
The 'remoteOpen' script scp's the file to the local machine. Given
that this is happening, you know this is being called with correct
arguments. Once it has scp'd the file across, this script calls
'odbedit' on the local file (with '-s remoteOnEdit' arguments which
tells odbedit to call the 'remoteOnEdit' script when the file is
edited. That script just scp's the file back to the remote machine).
I'm guessing this call to odbedit is what is failing. odbedit is not
a script, but is has pretty good debugging output on errors. I
suggest opening a shell on your mac, creating a text file, and
running 'odbedit file' locally to see what happens. The file should
open in TextMate, and odbedit should block. When you close the file
in TextMate, odbedit should unblock and exit.
In more detail, odbedit will send an AppleEvent to ODBForwarder.app
which will forward the AppleEvent to TextMate. When Textmate saves
or closes the file, it will send an AppleEvent back along the same
path. In order for odbedit to find ODBForwarder.app, you need to
have shown the finder where ODBForwarder.app is - open the directory
containing ODBForwarder.app in the finder.
odbedit will give errors to the stdout in the shell you ran it on.
You can see the debugging output for ODBForwarder.app by running /
Applications/Utilities/Console.app . ODBForwarder.app will display a
message there when it starts up, and will display any errors there.
I can imagine two possible errors here:
i) ODBForwarder.app cannot be found or started for some reason. In
this case I would expect to see an error message from odbedit, and
you should not see the startup message from ODBForwarder.app on the
console.
ii) ODBForwarder.app cannot find its preferences file. In this
case it will default to sending its events to BBedit, which you
probably don't have installed :). This should show up as error
messages on the console. For more info on ODBForwarder.app and its
preferences, see http://www.cse.unsw.edu.au/~willu/ODBSuite/
#ODBForwarder
iii) ODBForwarder.app has found its preferences and is sending to
TextMate, but for some reason the events are not getting through.
This should also show up as error messages on the console.
I'm not sure if the error messages are detailed enough to tell the
difference between ii) and iii) by default. Have a look and see what
you get.
Hope that helps. Let me know what happens :)
Will :-}
im getting an error of no files to commit from the svn status window
when clearly there are things to commit by clicking the diff button of
the files above, this is on the latest rev, can anyone else see this ??
Kim
A little quirk with the Latex equation highlighting: if you use an
equation environment like \begin{equation} or \begin{multline},
everything inside of the \begin \end is highlighted as an equation, even
\label{} definitions. Shouldn't things like \label not be colored like
the equation? What do you all thing?
Will
Here's what I'm doing with the repeating tab stops, using </ul> as
the tab trigger. I end up creating one of these on every site I
design, so this will make things easier. They all follow the same
format, and if there are multiple lists, they just change ids. I
have not yet accounted for nested or dropdown menus.
Brett
-----------------------------------------------
Create Navbar:
-----------------------------------------------
<ul id="${1:navbar}"}>
<li class="${2/[[:alpha:]]+|( )/(?1:_:\L$0)/g}"><a href="${3:#}">$2</
a></li>
</ul>$0
Tab Trigger: Navbar
-----------------------------------------------
Create Navbar Menu Item:
-----------------------------------------------
<li class="${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}"><a href="${2:#}">$1</
a></li>
</ul>$0
Tab Trigger: </ul>
Hi all,
I just finished some scripts that allow remote editing with
TextMate, kinda like BBedit's sftp functionality. They're a little
rough, but I thought I'd release them so that others can play if they
want.
http://www.cse.unsw.edu.au/~willu/RemoteEdit/
Cheers,
Will :-}
I am faced with introducing a client to using an FTP program. They
use Windows exclusively, so...
What can anyone recommend as a simple, straight-forward, umm... "Mac-
like" FTP client program for Windows? Do any of them offer an "Edit
with..." feature?
I saw mention of "WebDrive" earlier on the list. Something I'd not
heard of and it *might* be the ticket. If I can get them to buy it.
Thanks,
eo
Hi -
I'm blanking, being absolutely sure I've come across this before on
this list, but can't find any references to it. Is there a command
available (from ruby, ideally) to refresh a document, based on
changes made to the associated disk file?
Thanks
Jeremy
I searched the Docs, I can't find a command that would bring up a dialog, let
me enter a line number, say "478" and take me to that line. Is there a way to
do this without creating a bookmark?
Thanks very much,
Steven
P.S. Lovely product, I'm using it to write ActionScript 2.0. Textmate has
really changed the way I work. It's made sitting down to edit my classes
something I really look forward to. Makes bbEdit look like a quaint old antique.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi,
Let's say I have some text of mine in soft column mode with, say, 80
characters width.
Is it possible to copy this text, or change the text, in such a way that
apparent line breaks (ones with the dot appearing after in the beginning of
the next line) change to actual line breaks?
In other words: Is it possible to change apparent line breaks (in soft
column mode) to apparent line breaks?
Cheers,
Ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Dear all,
after receiving many mails with suggestions to improve the
Hypersearch tool I rewrote the whole code.
Short description (for more details see bundle's help):
- look for all occurrences of the search pattern
- normal string search or regular expression (PERL)
- Unicode safe for regular expressions and case insensitivity
- comes with its own dialog (a simplified and modified CocoaDialog)
-- text field for search pattern
-- check boxes for Regular expression, Ignore case, and Wrap long lines
-- each field has its own keyboard shortcut (see help)
- search parameters are persistent and make use of TM_SELECTED_TEXT
- the output is an HTML page
- the lines are implemented as hyperlinks to the line AND column
- there is no need to save your current document in beforehand to use
Hypersearch
Change for the future:
- usage of TM_DIALOG
- add the ability to search across lines
- ...
Feedback is welcomed.
All the best,
Hans-Jörg
**********************************************************
Hans-Joerg Bibiko
Max Planck Institute for Evolutionary Anthropology
Department of Linguistics
Deutscher Platz 6 phone: +49 (0) 341 3550 341
D-04103 Leipzig fax: +49 (0) 341 3550 333
Germany e-mail: bibiko(a)eva.mpg.de
**********************************************************
Currently SQL storage like "varchar(24)" is all defined as storage.type.sql
It would be nice if the numeric length was picked out as
constant.numeric.sql
So a suggestion for whomever maintains the sql bundle: can we change the
simple regexp for storage type to a capture type.
I think something like this?
{ name = 'meta.storage.type.sql';
match =
'(?i:\b(bigint|bigserial|bit|bit\svarying\(\d+\)|boolean|box|bytea|character
\s(varying)?\(\d+\)|char\(\d+\)|var\schar\(\d+\)|char(\(\d+\))?|cidr|circle|
date|double\sprecision|float\(\d+\)|inet|int|integer|interval\(\d+\)|line|ls
eg|macaddr|money|number(\(\d+\))?|numeric(\(\d+,\d+\))?|oid|path|point|polyg
on|real|smallint|serial|sysdate|text|times(\(\d+\))(\swithoutstimeszone)?|ti
mestamp(s(\(\d+\))(\swithoutstimeszone)?)?|tinyint\(\d+\)|varchar\d?(\(\d+\)
)?)\s*)\b';
captures =
{ 1 = { name = 'storage.type.sql'; };
2 = { name = 'constant.numeric.sql'; };
};
},
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello,
the update to the PHP-Syntax for @uses is not working. The correct
line for the match is this:
match = '\@(a(ccess|uthor)|c(ategory|opyright)|global|li(cense|nk)|pa
(ckage|ram)|return|s(ee|ince|tatic|ubpackage)|t(hrows|odo)|v(ar|
ersion)|uses)\b';
The last brace was closed to early and didn't include the "uses", so
the @ of uses isn't matched. Please fix this.
Thanks in advance,
Simon Ruderich
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFPoEaYRX4BO+zMikRCgMsAKCpeBhNvp9TaK1BDsEhdzdSGMA8hwCeIOwW
4VzxJ6KkWmA3K9NaDhVqF0U=
=tgnn
-----END PGP SIGNATURE-----
Hi, perhaps I haven't understood the syntax correctly, but I have
tried editing the LaTeX configuration file and I am getting no love.
I wanted to add a quote environment. I tried the following which has
no apparent effect:
quote = {
triggers = ( 'qu', 'quote');
};
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
Hello!
I found an earlier post in the archiv files, but it seems, that this
command isn´t realised yet.
My Latex projects contain multiple files and the Code Brwoser only
shows the outline of the active one.
What I need, is an outline of the whole project. Are there any
solutions?
Helge
Is it possible to provide a list of options to someone in a snippet?
For example at a tabstop, rather than them writing in text, you could
provide a list of options that they could select from?
I'm imagining something similar to the one that pops up to
disambiguate shortcuts.
Ed
Is it possible to have a repeating tabstop in a snippet?
for example it would be great to have a snippet to insert a html option list:
<select>
<option value="$1">$2</option>
</select>
You tab to $1, fill in the value, tab to $2, fill in the content, then
when you press tab again, it inserts another option:
<select>
<option value="1">Cherry</option>
<option value="$3">$4</option>
</select>
And carries on doing so for an arbitrarily long time.
If it's possible to do this I'd be very grateful.
Thanks
Ed
On 24.10.2006, at 13:27, textmate-request(a)lists.macromates.com wrote:
> Heiko Witte schrieb:
>> Hi,
>>
>> every mail from this mailing list is signed with a PGP key
>> (0x7B7C623764AB61E7). Where can I get this public key ? I already
>> searched the mailing lists but couldn't find any related topic.
>>
>> Thanks
>>
>> Heiko
>
> Every email? I just searched pgp.mit.edu for this key and came up with
> my own key ;)
>
> http://pgp.mit.edu:11371/pks/lookup?search=0x7B7C623764AB61E7&op=index
>
> Regards, Horst
I added your key to my gpg keychain, now everything's fine =)
Thanks, Heiko
Hi,
every mail from this mailing list is signed with a PGP key
(0x7B7C623764AB61E7). Where can I get this public key ? I already
searched the mailing lists but couldn't find any related topic.
Thanks
Heiko
FYI for LaTeX bundle maintainers and users:
I recently updated XeTeX (to v0.995, 16-Aug) and discovered that
previewing in TextMate had become kind of cranky (though running
xelatex from the command line still worked fine).
The crankiness: using "Typeset & View (PDF)", the first page of
output would be the following, in Computer Modern:
[zf ]preparseRendererAAT,ICU
The correct LaTeX output would appear starting on the next page.
After a heap of digging around (resulting in [1], which pointed to a
path problem with xkeyval.tex), I figured out that the call to
kpsewhich is causing the wrong paths to get expanded (in particular,
the texmf.tetex versions were taking precedence over texmf.local).
This seems to fix it for me:
Old: export TEXINPUTS="$TM_BUNDLE_SUPPORT/tex//:$(kpsewhich --expand-
var '$TEXINPUTS')"
New: export TEXINPUTS="$TM_BUNDLE_SUPPORT/tex//:$(kpsewhich -progname
$TEX --expand-var '$TEXINPUTS')"
HTH, as they used to say.
--ds
[1] http://www.tug.org/pipermail/xetex/2006-August/004700.html
To add on to James' nifty drag commands, here's mine for adding a
complete background line in a definition. It's tab stopped a little
differently than the normal background command, as I have modified
mine to the way that my brain works.
I'm not sure how the rest of you will feel about the newline at the
end, it works for me with the way I format my code. Feel free to
pull it and the -e argument out from the echo statement.
File Types: png, jpeg, jpg, gif
echo -ne "background:\${1: #\${2:DDD}} url('$TM_DROPPED_FILE')\${3: \$
{4:repeat/repeat-x/repeat-y/no-repeat} \${5:scroll/fixed} \${6:top/
center/bottom/x-%/x-pos} \${7:left/center/right/y-%/y-pos}};\n\$0"
Scope: meta.property-list.css
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
..................................................

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
..................................................
Is there a way to scope a snippet in the CSS bundle to mimic the
Special: Return Inside Empty Open/Close Tags in the HTML bundle? I'd
like to have the same behavior between empty brackets, but they
obviously behave differently and I have a very vague understanding of
the language file at this point. I got the command to work the first
time, but now it adds an extra line break every time I hit enter.
Any pointers?
Thanks,
Brett
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
..................................................
Not sure if anyone has done these yet but here are some simple drag
actions for images in CSS.
The second one if for dropping between url() so you can use the
background snippet for instance then drag an image between the brackets.
Image as a background:
File types:
png, jpg, jpeg, gif
Commands:
echo "background-image: url(\"$TM_DROPPED_FILE\");"
Scope:
meta.property-list.css
Image Path:
File types:
png, jpg, jpeg, gif
Commands
echo -n "\"$TM_DROPPED_FILE\""
meta.property-value.css
I don't really know how to ask this question in a simple manner so here
it goes:
I'm doing some HTML coding and need to add JavaScript using the
Prototype framework. In this early develpment phase I like to write
JavaScript embedded in HTML. When I write a script tag,
"source.js.embedded.html" gets added to the scope. How can I tell
TextMate to use features from the Prototype & Scriptaculous bundle in
addition to the JavaScript default one? Shifting languages is tedious
and messes up the highlighting.
I have a problem with Brett's "Wrap Text as Link with Title". It
works fine, also gets the link from the web, but then something like
this is inserted:
2006-10-23 13:38:42.367 CocoaDialog[569] InputManagersManager startup
<a href="http://macromates.com/" title="TextMate — The Missing Editor
for Mac OS X" >TextMate</a>
the second line is perfect, but i wonder where the first line came
from? i talked to brett about it but he is not able to reproduce the
error. any ideas?
thanks!
Tilman.
_______________________________________________________________
Tilman.
net citizen /// designer /// teacher
____ digital homes ::: personal http://www.tint.de ///
collective http://www.dkdl.de
____ analogue homes ::: germany /// nuernberg /// lauf ///
heuchling
____ mailto ::: tilman(a)tint.de
::: the future is in beta.
when I attempt to compile (read: typeset and view) a LaTeX document I
get the following errors:
/bin/bash: line 34: require_cmd: command not found /bin/bash: line 45:
latexErrWarnHtml.py: command not found Click Here to Preview
I am unable to figure out which script is responsible for these
errors. If anybody has had simmilar problems how did you fix them, or
if you know where these might be coming from then I could start
looking there.
Oh, and I am using the i-installer version of tex.
Further more I would like to propose using '1>&2' in scripts to pipe
output to the console where it can be more easily viewed for debugging
purposes.
-adam
Adam Hitchcock Macintosh software at InfImp.net No trees were harmed
in the sending of this message, however,
otaking(a)mac.com | cell - 734.769.0085 | aim - AlfredHi | pgp keys a
great number of electrons were severely inconvenienced.
The Latex file I am working on is getting so long that formatting is
taking a full minute, even for small changes. I realize I could
input chapters as separate files and not load them all each time, but
I prefer not to do this for navigation purposes. I saw on Haris'
blog, "I was editing an html file, and I used the internal html
preview window that it has, and then I left the window open. The
miracle that occurred is that as I continued editing, the preview
window was automatically updated instantly! Without me even having to
save the file!" This does not seem to work for the Latex bundle.
But even if it did, the TM internal preview does not respond to
pdfsync. So my wishful thoughts are for a "flash mode" for the
Latex bundle that is compatible with pdfsync. So many dreams are
coming true with all this good energy within this list, I thought I
would ask...
Jenny
Just a small change to the regex to handle two part url's (i.e.
site.com) which I had inadvertently ignored previously. Also limits
the domain to 2-3 characters because it now recognizes anything
joined by a dot (conjoined.twins). I thought this was easier than
trying to list every possible domain in the regex.
Dear all,
maybe you know the bundle 'Find All in Document'. This script lists
all occurrences for a specific search pattern as an HTML page. You
can click on a line and you jump to that line in the document.
I rewrote the script and I renamed it to 'Hypersearch'. (see attachment)
Changes/Improvements:
- case insensitive search
- result is shown as a table with line numbers (i.e. a better line
distinction)
- search result within a line is highlighted using bold and italics
- there is no need to save your file in beforehand
- it is 'relatively' easy to change the code
- the code is 'rather' unicode save (i.e. It is not a problem to find
a Japanese string. Only some regular expressions are not supported yet.)
- tabs and spaces are shown like the source code (tabs are replaced
by four spaces)
- < and > are shown correctly
- displays the number of lines which match against the search pattern
Problems:
- I tried to implement to jump not only to the line but also to the
right column but unfortunately it works only for ASCII. If there is
e.g. a utf-8 'ö' or a Japanese character within the line the column
number didn't fit. I used perl's pos() function but I get only the
numbers of bytes. Hints are welcomed!!
- Case insensitive search works but not for accented characters like
ç, ä, é etc. You have to use e.g. the pattern 'ç|Ç' instead.
- You cannot search for '§¢' and '¢§'. These strings are used
internally.
The access key is ctrl+shift+f.
Implementation is done with CocoaDialog, grep, sed, and a bit perl
within bash.
If someone find some bugs or have improvements etc., please don't
hesitate to write me!
In other words, COMMENTS ARE WELCOMED!
Best,
Hans-Joerg Bibiko
Okay, this is my version of the wrap text as link command. It seems
to be failing elegantly now, although I need some testing on other
installations as there are some inconsistencies between my two machines.
It recognizes a link in the clipboard, with or without the leading
protocol, and grabs the title for the page off the net to insert as
the title of the link. If there is no protocol on the link it will
attempt to use http://. If the link is bogus or unreachable it will
insert the link that it found but put "Unknown" for the title. Both
the link and the title are tab-stopped. I have it set up under CTRL-
SHIFT-L so that you can choose between the original and the link with
title. Even if you cut out the title grabbing part, it's still seems
like a better way to recognize a link in the clipboard and utilize it.
Brett
Hi!
I just was interested how you guys create screencasts. I looked a
little bit around in the net but could only find Snapz X Pro which
could do the task. Any cheap or free (as in beer) possibilities?
Would have needed it the last days for making some instructions.
Niels
When I start TextMate, it downloads the latest update. I click on
Install & Relaunch and get an "Install Failed" message. This has
happened every day this week.
I searched the archives and found a message that said this happens on
non-admin accounts, but without a fix.
I am an admin account, so something else must be going on.
Anyone else seeing this or any advice?
Bob
Is it possible to define a shell variable by referencing another shell
variable? Here's an example of what I am trying to do:
(These are project variables)
TM_FLEX_ROOT=$TM_PROJECT_DIRECTORY/flex
TM_SERVICES=$FLEX_ROOT/config/WEB-INF/flex/services-config.xml
Thanks
Todd
Hello,
I have been playing with the existing Erlang bundle to improve it a bit
and I have trouble adding code folding.
Here is a simple Erlang function:
start(Var) ->
test(Var),
%% Comment
ok.
The last dot marks the end of the function.
I know that the end of the function is not at the same indent level that
the start marker, but this is always the case in Erlang.
I try to match the end marker, with any number of spaces / tabs at the
beginning of the line but at best, start and stop marks are put in place
but not foldable.
I suppose this is because Textmate does some checks on the number of
spaces or tabs but is there a way to ignore this match ?
If not, is there an estimated release date for this feature ?
Thank you !
--
Mickaël Rémond
http://www.process-one.net/
As a recovering vimaholic, I miss special highlighting of (FIXME|TODO|
XXX) in my source. (I realize that I can get a list of TODOs with C-
S-t, but it's nice to have things like "XXX: broken" or "FIXME
dsandler:" leap out at me as I'm skimming code.)
I seem to be able to hack these rules into individual languages; for
example, in Python, I changed the comment.line.number-sign.py pattern
thusly:
{ name = 'comment.line.number-sign.py';
begin = '#';
end = '$';
patterns = (
{ name = 'todo.todo';
match = '(TODO)( \S*:|:?)';
},
{ name = 'todo.fixme';
match = '(FIXME)( \S*:|:?)';
},
{ name = 'todo.xxx';
match = '(XXX)( \S*:|:?)';
},
{ name = 'todo.changed';
match = '(CHANGED)( \S*:|:?)';
},
);
},
(This seemed to require changing Python's line-comment pattern from a
'match' to a begin/end kind of thing.)
With these scopes, you can now set all TODOs to a given color, or
pick different colors for each, etc. (perhaps matching the colors up
with those in the "Show TODO List" command).
So, is there any way to apply this kind of new scope to to (comments
in) all languages at once, or do I (or the TextMate BDFL) have to go
and integrate it into each one by hand?
Thanks,
--ds
Hello everyone,
The short story is that running ARD (Apple Remote Desktop) Client is
the culprit that is stealing the key sequence.
I don't know why ARD steals the key sequence, but turning it off
(System Preference - under Sharing) eliminates this problem for me.
I'd like to run the ARD client, so if anyone knows how to have the
ARD client run without it stealing the crtl-esc key sequence, I'd
like to hear about it.
I hope this ends the problem for others as well.
peace,
icb
Ira Cary Blanco
Marketing & Media
Samson Technologies Corp.
Samson | Hartke | Zoom
voice: 631.784.2200 x107
fax: 631.784.2201
email: blanco(a)samsontech.com
web: samsontech.com
Hi,
I've been using TM for quite some time now and it's a great editor.
The last weeks I had to write some code for a site using MODx
(www.modxcms.com)
MODx uses some special tags:
[[Snippet]]
[!Noncaching-Snippet!]
{{Chunk}}
[~link~]
[*attribute*]
I added some code to the HTML-Bundle for recognizing this which works
quite good.
modx = { patterns = (
{ name = 'meta.tag.inline.modx.snippet';
begin = '(\[\[)(\w*)(.*?)';
end = '(\]\])';
captures =
{ 1 = { name = 'punctuation.modx.snippet'; };
2 = { name = 'entity.name.tag.modx.snippet'; };
};
},
{ name = 'meta.tag.inline.modx.snippet.nocache';
begin = '(\[\!)(\w*)(.*?)';
end = '(\!\])';
captures =
{ 1 = { name = 'punctuation.modx.nocachesnippet'; };
2 = { name =
'entity.name.tag.modx.snippet.nocache'; };
};
},
{ name = 'meta.tag.inline.modx.link';
begin = '(\[\~)(\w*)';
end = '\~\]';
captures =
{ 1 = { name = 'punctuation.modx.link'; };
2 = { name =
'entity.name.tag.modx.snippet.nocache'; };
};
},
{ name = 'meta.tag.inline.modx.setting';
begin = '(\[\()(\w*)';
end = '(\)\])';
captures =
{ 1 = { name = 'punctuation.modx.setting'; };
2 = { name = 'entity.name.tag.modx.setting'; };
};
},
{ name = 'meta.tag.inline.modx.chunk';
begin = '({{)(\w*)';
end = '(}})';
captures =
{ 1 = { name = 'punctuation.modx.chunk'; };
2 = { name = 'entity.name.tag.modx.chunk'; };
};
},
{ name = 'meta.tag.inline.modx.attribute';
begin = '(\[\*)(\w*)';
end = '(\*\])';
captures =
{ 1 = { name = 'punctuation.modx.attribute'; };
2 = { name = 'entity.name.tag.modx.attribute'; };
};
},
{ name = 'variable.parameter.modx';
match = '(&\w+)=';
},
{ name = 'string.quoted.modx';
begin = '`';
end = '`';
},
{ name = 'invalid.illegal.modx.bad-snippetcall';
match = '(\[[\[\!])(\w+)(\s+)(.+?)([\!\]]\])';
},
);
};
Now my problem is:
There are some Snippet-calls which take parameters:
[[Snippet? ¶meter=`value` ¶meter2=`value2`]]
I tried to define the parameters as variable.parameter.modx and the
values as string.quoted.modx but TM doesn't seem to recognize this.
Also when I write a MODx Tag into a html-string (e.g. <a
href="[(base_url)]">...) TM will ignore it.
Last I tried to highlight invalid snippet calls (e.g. [[Snippet
¶m... (missing ?) or [[Snippet? ¶m='foo' (normal quotation
mark)) but this won't work either.
Can you tell me what I did wrong? :)
Regards
Max Lohrmann
I'd be super-happy if someone could help me with the following
Textmate behaviour.
a. The cursor is in any line that has more characters than the
previous line, like so:
line 1 | ¬
line 2 | 12345¬
When the cursor is at the end (column 6) of line 2 and moved up one
line then it stays in column 6, i.e. behind the ¬ end-of-line marker
of line 1. Like this:
line 1 | ¬ x
line 2 | 12345¬
b. When now return/enter is hit so that a new line gets inserted then
there are also spaces inserted (filling up the place between the end-
of-line marker and the previous place of the cursor) in line 1.
line 1 | ¬
line 2 | ¬
line 3 | 12345¬
Is there any reasoning behind this? It feels really strange to me and
conflicts with several editing habits of mine.
While editing code the insertion of whitespace in line 1 actually
leads to masses of whitespace cluttered all over the place. I can't
imagine that this is intentional. :)
Any hints?
--
sven fuchs fon: +49 (58 45) 98 89 58
artweb design fax: +49 (58 45) 98 89 57
breite straße 65 www: http://www.artweb-design.de
de-29468 bergen mail: svenfuchs(a)artweb-design.de
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
(This isn't specifically a Textmate question, but I know a lot of Textmate
users use Markdown, so I was hoping someone could help.)
How do I name Markdown files so that they are:
1) Recognized automatically by Textmate as Markdown files when you open
them,
2) Indexed automatically by Spotlight,
3) Use a unique extension (like .markdown) rather than a generic .txt
extension?
Right now, if I use the default .markdown extension, the file isn't indexed
by Spotlight. If I save a Markdown file without any extension, it's neither
indexed by Spotlight, nor is it recognized by Textmate as a Markdown file.
A .txt extension is recognized by Textmate and indexed by Spotlight, but I
was hoping to use a different file extension--one that could distinguish
Markdown files from other text files.
How do other people solve this problem?
Thanks,
Tom
**
Okay, I'm trying to keep this one simple and meet my own needs at the
same time. First of all, the insert color command didn't recognize
abbreviated (3 character) RGB color codes. This had 2 drawbacks:
The tab stop inserted by any of the CSS commands, when used in
combination with Insert Color, would add an extra # sign and it
wouldn't properly set the default color when it loaded the color
picker. This revised command is my usual unskilled kludge, but it
recognizes both 3 and 6 character rgb strings, strips the # sign if
unnecessary, and if the resulting hex code is a series of double
repeating characters it will abbreviate (BBAADD becomes BAD). I
wanted to use squeeze to do this in Ruby, but had trouble with colors
like 0000FF, where it would just give back 0F. So I made a mess of
it. It works, but I'd really like to see it cleaned up (I know Haris
could do this in about 4 lines of code). So if anyone has the
time... It'd be great to learn a new algorithm to handle this.
As a side note, I've been using Color Schemer Studio to create
websmart palettes. I can drag directly from the current color
selection into textmate, but it was less convenient than the color
picker. So I've been creating the palettes, and then importing them
into the color picker. That's where this command came from...
Thanks,
Brett
I've become quite a fan of the Rspec BDD framework, and so I whipped
up a bunch of snippets to make my life easier. If anyone wants them,
they're here:
http://blog.amber.org/2006/10/16/textmate-bundle-for-rspec/
Chris
--
| Christopher Petrilli
| petrilli(a)gmail.com
Suppose I am in the html grammar with a php block, like:
<?php
echo 'my insertion point is here';
?>
my expectation is to have ctrl-return produce <br /> rather than the
\n given that I am within the '".
am I wrong on this ?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
For a few days now, completion with esc has not been working.
What could be the cause?
Conflict with other modules? or what?
It does not work with ref{} or cite{}.
Any suggestions appreciated.
Christopher Brewster
*****************************************************
Natural Language Processing Group,
Department of Computer Science, University of Sheffield
Awesome, apreciate it Allan.
Very impressed you're on here answering questions. Consider me a an
"offical" textmate user now!
-J
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: October 20, 2006 1:42:15 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Executing command on all files in a project AND
> using TM variables in a search and replace
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 19. Oct 2006, at 22:12, J Fishwick wrote:
>
>> Command:
>> eval arr=("$TM_SELECTED_FILES")
>> for (( i = 0; i < ${#arr[@]}; i++ )); do
>> perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
>> s/mc\d+/tf$TM_FILENAME/g;}';
>> done
>>
>> Input: Entire Doc
>> Output: Replace selected text
>
> You need to set input/output to none/discard (or show tool tip, or
> maybe show as HTML and make your command output some progress info).
>
> Then your actual command needs to load the file itself, it already
> iterators over the selected files, it just doesn’t tell perl to
> load/overwrite each of them.
>
> So a simple example would instead be:
>
> eval arr=("$TM_SELECTED_FILES")
> for f in "${arr[@]}"; do
> perl -i.bak -pe 's/bar/bar/' "$f"
> done
> rescan_project # do this after you make changes to files, so TM
> will rescan
>
> This will replace foo with bar in all selected files (and create
> a .bak file with the old contents).
>
> Two other things: 1) inside single quoted strings, shell variables
> are not expanded, so if you want to use $TM_… then you need to use
> double quotes, and 2) TM_FILENAME is the filename of the file open
> when you called the file, it won’t update inside the loop. Here you
> would instead use the current file given by the loop (in my example
> $f).
>
On Oct 20, 2006, at 7:43 AM, textmate-request(a)lists.macromates.com
wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> Today's Topics:
>
> 1. Re: Executing command on all files in a project AND using TM
> variables in a search and replace (Allan Odgaard)
> 2. Re: Latex: completion with esc not working (Christopher
> Brewster)
> 3. Re: TODO problem (Jasper van der Meulen)
>
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: October 20, 2006 1:42:15 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Executing command on all files in a project AND
> using TM variables in a search and replace
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 19. Oct 2006, at 22:12, J Fishwick wrote:
>
>> Command:
>> eval arr=("$TM_SELECTED_FILES")
>> for (( i = 0; i < ${#arr[@]}; i++ )); do
>> perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
>> s/mc\d+/tf$TM_FILENAME/g;}';
>> done
>>
>> Input: Entire Doc
>> Output: Replace selected text
>
> You need to set input/output to none/discard (or show tool tip, or
> maybe show as HTML and make your command output some progress info).
>
> Then your actual command needs to load the file itself, it already
> iterators over the selected files, it just doesn’t tell perl to
> load/overwrite each of them.
>
> So a simple example would instead be:
>
> eval arr=("$TM_SELECTED_FILES")
> for f in "${arr[@]}"; do
> perl -i.bak -pe 's/bar/bar/' "$f"
> done
> rescan_project # do this after you make changes to files, so TM
> will rescan
>
> This will replace foo with bar in all selected files (and create
> a .bak file with the old contents).
>
> Two other things: 1) inside single quoted strings, shell variables
> are not expanded, so if you want to use $TM_… then you need to use
> double quotes, and 2) TM_FILENAME is the filename of the file open
> when you called the file, it won’t update inside the loop. Here you
> would instead use the current file given by the loop (in my example
> $f).
>
>
>
>
>
>
>
> From: Christopher Brewster <C.Brewster(a)dcs.shef.ac.uk>
> Date: October 20, 2006 6:35:06 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Latex: completion with esc not working
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>
>> On 19 Oct 2006, at 23:13, Charilaos Skiadas wrote:
>>
>>> Is this what they should be?
>>>
>> That looks right. Is this a saved file? Try it with both saved
>> files as well as untitled documents.
>
> The problem is specific to that project I am afraid. There is no
> problem with other latex files in other folders.
>
>> Is it part of a project, via TM_LATEX_MASTER?
>
> yes it is
>> Are you setting TM_LATEX_BIB? (You don't have to, just checking
>> your settings)
>
> Checking this I realised for Bibtex the path had changed. So the
> \cite{} case is solved.
> But the \ref{} case is still not working (in this project).
>
>> How are you testing that it is not working?
>
> for \ref{}
> put cursor in braces and press esc
>
>> Does the other completion command work, the one via opt-esc?
> This does nothing.
>
>> Make sure that you are up to date, I recently fixed a problem
>> someone else had that sounds possibly similar, though his was with
>> the Command Completion command.
> I am up to date.
>
> Thanks,
>
> Christopher
>
>
> ______________________________________________________________________
> 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
>
>
>
>
> From: Jasper van der Meulen <jasper(a)logt.nu>
> Date: October 20, 2006 7:43:02 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] TODO problem
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> I don't think you understand what i mean...
>
> I've got it in a picture now ..
>
> <screenshot 2.png>
> however
> Regards J.
>
>
> On 20-okt-2006, at 7:26, Allan Odgaard wrote:
>
>> On 20. Oct 2006, at 00:02, Jasper van der Meulen wrote:
>>
>>> Could it be that a project is different for the TODO ?
>>
>> It visits all files found under TM_PROJECT_DIRECTORY (using the
>> globally configured folder reference patterns for what to skip).
>>
>>
>>
>>
>> _____________________________________________________________________
>> _
>> 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
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
hello:)
In Typeset & View (PDF) i don't understand that :
# Set up TeX compiler, fallback to xelatex if document indicates it
if grep -Esq '\\usepackage{.*(xunicode|fontspec)|program=xelatex' "$M"
then DEF_TEX=xelatex
else DEF_TEX=pdflatex
What is the exact syntax to use XeLaTeX ?
Thanks
Greetings Alain
Hello,
I'm currently using kGTD as my tool of choice, but a pure text-based
solution looks very attracting. I see there are several bundles
mentioning GTD and I was wondering what were their differences and if
they were all maintained.
Additionally, is someone using one of these bundles and somehow
synchronizing their GTD setup to a Palm? If so, I'd be delighted to
hear about it.
Thanks a lot,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hello,
I'm trying to get the MySQL bundle working so I can browse tables.
I get this on my MacBook Pro:
Traceback (most recent call last): File "/Applications/Document/
TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Support/bin/
tableBrowser.py", line 284, in ? sys.exit(main()) File "/Applications/
Document/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/
Support/bin/tableBrowser.py", line 109, in main listTables
(dbName,dbHost,dbPort,serverType,passwd,dbUser) File "/Applications/
Document/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/
Support/bin/tableBrowser.py", line 130, in listTables mycon =
MySQLdb.connect(db=dbName,host=dbHost,port=int
(dbPort),user=dbUser,passwd=passwd) NameError: global name 'MySQLdb'
is not defined
I tried using tablebrowser.py standalone and it failed due to no
MySQLdb module for Python.
Downloaded and installed MySQLdb and now Python works properly with
the module and MySQL.
Alas, TextMate still can't find MySQLdb and fails with the same error.
I note that the first line of tablebrowser.py is:
#!/usr/bin/env python
My python is at:
/usr/bin/python
Is TextMate using some other Python than my native one?
If not, why can I interactively use Python with MySQL, but TextMate
won't work.
I have all the TM environment variables set so I don't think that is it.
Thoughts?
Thanks,
ml
In all the files in my project, where a certain string of characters is present,
I'm trying to replace a string with the a part of the file name containing said
string.
For example, files are called ace[1-12].xml, and for everytime there is a the
block: "mc\d+(.*\n.*True)" I want to replace mc\d+ with tf0(number prefix from
filename). I know this hits on a couple more adavanced concepts I don't have a
full grasp on yet, but this editor is goading me on to learn regex and basic
command line skills...
The command I have now is:
Save: nothing
Command:
eval arr=("$TM_SELECTED_FILES")
for (( i = 0; i < ${#arr[@]}; i++ )); do
perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
s/mc\d+/tf$TM_FILENAME/g;}';
done
Input: Entire Doc
Output: Replace selected text
It's choking big time... any pointers to the numerous places I'm screwing up?
Thanks~
Hi,
I just built up a Command as BASH which calls a perl script via
TM_BUNDLE_SUPPORT.
The perl script is calling CocoaDialog via $ENV{'TM_SUPPORT_PATH'} and
so forth.
Everything works fine.
Then I installed the same tmBundle at an other Mac. Same OS and TM version.
The funny thing now is that the perl script cannot call CocoaDialog
via TM_SUPPORT_PATH because TM_SUPPORT_PATH is set to
/Users/Bibiko/Library/Application Support/TextMate/Support.
I promise that I didn't set this variable to that path.
On the other hand I tried the bundle command 'Find In all Document'
which is a ruby script. Here it works with the variable
TM_SUPPORT_PATH. !!??!!
The only difference is that this ruby script is not written as a
separate file.
Please, help is needed.
If I use the command 'Show all TM.*' the TM_SUPPORT_PATH is also set
to this weird path.
Thanks in advance
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Is there a way to close all open tabs in a project without closing the
project? Is there some way I could create this? As a macro maybe? I'd
like to be able to map this to something like cmd+shift+W.
-dave
In all the files in my project, where a certain string of characters
is present,
I'm trying to replace a string with the a part of the file name
containing said
string.
For example, files are called ace[1-12].xml, and for everytime there
is a the
block: "mc\d+(.*\n.*True)" I want to replace mc\d+ with tf0(number
prefix from
filename). I know this hits on a couple more adavanced concepts I
don't have a
full grasp on yet, but this editor is goading me on to learn regex
and basic
command line skills...
The command I have now is:
Save: nothing
Command:
eval arr=("$TM_SELECTED_FILES")
for (( i = 0; i < ${#arr[ <at> ]}; i++ )); do
perl -pe 'while ($string =~ m/mc\d+(.*\n.*True)/g) {$string =~
s/mc\d+/tf$TM_FILENAME/g;}';
done
Input: Entire Doc
Output: Replace selected text
It's choking big time... any pointers to the numerous places I'm
screwing up?
Thanks~
hello
if i create a new file with Latex bundle and if i drag a .pdf file,
the result is correct
\begin{figure}[htbp]
\begin{center}
\includegraphics[height=3in]{/Users/ego/Desktop/
AmeriqueNordES2005.pdf}
\end{center}
\caption{caption}
\label{fig:label}
\end{figure}
but if i save the .tex file and i want to drag again a .pdf file :
the result is /usr/lib/ruby/1.8/pathname.rb:529:in ??? strange
Thanks for a solution
Alain Matthes
TextMate Version 1.5.3 (1292)
Hi,
Sorry for this basic question, but I'm a textmate newbie and I just
couldn't find a way to do this. I was editing a HTML file and then I
accidentally pressed some key combination and now the syntax
highlighting is messed up. I tried finding a way of going back to HTML
highlighting mode to no avail. How do I do this?
Thanks,
Yariv
Hi there,
One thing I miss from my XEmacs days, was the
“etags” command which is very useful when you
have a directory full of Fortran files…
If, in a fortran file, you had
call foobar(blah blah)
It would automatically open the file in which
the function foobar was defined.
So I made a shell script which mimic that.
http://guerom00.free.fr/clutter/Fortran_Tags.sh
Just create a new command which reads :
Wherever_you_put_the_script/Fortran_Tags.sh "$TM_DIRECTORY"\\
"$TM_CURRENT_WORD" &>/dev/null &
It will create a tags file named “.tags” in the current
directory.
I know it's rather ugly and not perfect but seems
to work OK… Hopefully one person or two will
find this usefull :-D
Hi there,
I made myself a simple script to compile Fortran
programs using the “make” command. I wanted the
compilation window to automatically close on
successful compilation, so this script basically
reads :
htmlHeader "Compiling current programs using Make"
echo "<h1>Starting Fortran Compile</h1>"
echo
cd "$TM_DIRECTORY"
make|pre
status=$?
echo "status = "${status}
if [[ "${status}" -ne "0" ]]; then
echo "<h1>Compilation Failed</h1>"
else
echo "<h1>Compilation Successful</h1>"
# closeWindow
fi
htmlFooter
The problem is that, even when the compilation
fails, the $status is equal to 0…
http://img220.imageshack.us/img220/8341/image1po1.jpg
What did I do wrong ? How do I fix this ?
Thanks in advance.
PS : I don't know if I'm the only one, but using Safari
for the RSS feed for this mailing list, I receive EVERY
message twice… Rather annoying…
>> [...]
>> make|pre
>> [...]
>> The problem is that, even when the compilation
>> fails, the $status is equal to 0
>>
>
> The problem is that when you do ‘foo|bar’ then the result of the
> entire command is that of the last command in the chain.
You can use the bash PIPESTATUS array.
j.
I've come across this a couple of times now: a file which looks fine
in TextEdit or BBEdit loses its line breaks when opened in TextMate.
Looking at the problem file in HexEdit, the following Hex is being
used for linebreaks: E2 80 A8, which appears to be a UTF-8 linebreak,
based on some preliminary googling. Saving a short UTF-8 file in TM,
the linebreaks are: 0A (\n).
Would it be possible for TM to support this format of linebreaks, at
least on read?
jb
I work with a lot of code which has 'dropped' braces, such as
if ()
{
}
else
{
}
I personally prefer the K&R style, such as
if () {
} else {
}
I made this new macro to make conversions easier - it simply keeps a
space before/after the brace when joining lines - otherwise joining
the lines would result in
if (){
}else{
}
I added it as a second macro with a scope of just "source", so text
files won't be affected.
Thoughts?
Cheers,
Ciarán
Hi,
I had written about this before, but I am still seeing this.
If I have a mounted volume (Either AFP, or in the latest case NFS),
and I've opened some files from that volume (and have subsequently
closed them), when I go to dismount that
volume, I get an error in the Finder stating that the volume is in use.
It always end up being Textmate. Using the terminal, I can see:
john$ lsof | grep TextMate
TextMate 376 john cwd VDIR 26,9 4096 343647
/Volumes/10.1.1.104/public_html
(The volume that is mounted is just /Volumes/10.1.1.104/, public_html
is the directory I happened to open a file from.)
The only way around this is to quit TextMate. Any ideas why TM in
holding onto the volume like that?
Thanks,
jt
Hi Allan,
thanks for your help!
this is a follow up to a newsgroup post from yesterday. I am having
problems with the blogging bundle.
I turned the xmlrpc logging on - see below.
On 16-Oct-06, at 11:58 PM, textmate-request(a)lists.macromates.com wrote:
> On the server, you need to create a writable (by your apache user)
> directory for the uploads and set that in the WordPress preferences.
"the uploads" meaning for example jpg files that I would upload with
a blog post?
I can create a directory on my server (that is not my own apache
server, but a hosted one) and I can probably find the corresponding
setting in wordpress... but I guess the following issue should be
resolved first.
>
> Is this a 100% untampered WordPress 2.0 install?
>
> In your install of WP is a xmlrpc.php file, set $xmlrpc_logging =
> 1; in that file and check what the XML-RPC log says when you post,
> i.e. if TM provides the post in two chunks. If it does, it is your
> WP install which needs fixing.
The xmlrpc.log looks like this. With "two chunks" - do you mean the
part highlighted in red?
2006-10-17 23:05:49 Input: <?xml version="1.0" ?
><methodCall><methodName>metaWeblog.editPost</
methodName><params><param><value><string>50</string></value></
param><param><value><string>Claus</string></value></
param><param><value><string>Butterfly2010</string></value></
param><param><value><struct><member><name>mt_allow_pings</
name><value><string>open</string></value></
member><member><name>mt_allow_comments</name><value><string>open</
string></value></member><member><name>title</
name><value><string>Blogging via TM</string></value></
member><member><name>categories</
name><value><array><data><value><string>water in the media</string></
value></data></array></value></member><member><name>description</
name><value><string>This is a blog entry written from TM
Holladrihia</string></value></member></struct></value></
param><param><value><boolean>1</boolean></value></param></params></
methodCall>
2006-10-17 23:05:49 Output: (MW) Edited ! ID: 50
2006-10-17 23:05:50 Input: <?xml version="1.0" ?
><methodCall><methodName>metaWeblog.getPost</
methodName><params><param><value><string>50</string></value></
param><param><value><string>Claus</string></value></
param><param><value><string>Butterfly2010</string></value></param></
params></methodCall>
2006-10-17 23:06:38 Input: <?xml version="1.0" ?
><methodCall><methodName>metaWeblog.editPost</
methodName><params><param><value><string>50</string></value></
param><param><value><string>Claus</string></value></
param><param><value><string>Butterfly2010</string></value></
param><param><value><struct><member><name>mt_allow_pings</
name><value><string>open</string></value></
member><member><name>mt_allow_comments</name><value><string>open</
string></value></member><member><name>title</
name><value><string>Blogging via TM</string></value></
member><member><name>categories</
name><value><array><data><value><string>water in the media</string></
value></data></array></value></member><member><name>description</
name><value><string>This is a blog entry written from TM
Holladrihia
</string></value></member><member><name>mt_text_more</
name><value><string>
This now should be below the cut! It better damn be!</string></
value></member></struct></value></param><param><value><boolean>1</
boolean></value></param></params></methodCall>
2006-10-17 23:06:38 Output: (MW) Edited ! ID: 50
Thanks again,
Claus
Hello all,
I am just installing TextMate on my new iMac and I face la little problem : by default, spell checking is activated. My question : how can I disable spell checking ?
Thanks
G
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Hi folks,
Tcl's comment syntax is such that it allows comments to extend to
multiple lines by escaping the new-line. E.g.
# this is a \
two line comment
The current Tcl grammar does not catch this and does not apply the
comment tag to the second line.
The following Patch fixes that, and it also fixes something having to
do with single quotes... I can't remember. Now that differences in
preferences are stored as tmDeltas, what's a good way to see diffs
between what I have and what is in the grammar?
I assume that if I attach my tmDelta for Tcl that's enough, right?
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
How can I get a real automatic line break in with textmate ?
ie. a mode where at end of line a line break is REALLY inserted in the
text, not just a presentation trick.
--
Erwan David
You might need to logout/restart/fast-user-switch after ARD sharing
turning it off before you regain control of crtl-esc
NOTE, I've also found out that the ARD administrator application ALSO
grabs/blocks this keystroke. So if you're ARD sharing is off, but
you're running the ARD administrator application, crtl-esc will not
work in TextMate.
I'm not an Apple Developer, nor am I sure this is a bug with ARD (it
may be intentional), so I'm not comfortable submitting a bug report.
If you would like to submit it if you have the same results, be my
guest.
- Ira
On Oct 16, 2006, at 5:48 AM, textmate-request(a)lists.macromates.com
wrote:
> From: Caius Durling <nemo8686(a)mac.com>
> Date: October 16, 2006 2:25:59 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] crtl-esc not activating - my solution
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>> The short story is that running ARD (Apple Remote Desktop) Client
>> is the culprit that is stealing the key sequence.
>>
>> I don't know why ARD steals the key sequence, but turning it off
>> (System Preference - under Sharing) eliminates this problem for me.
>
> I open System Preferences, untick ARD sharing in the sharing
> prefpane, quit System Preferences, Relaunch TextMate, and it still
> doesn't work when I hit ⌃⎋.
>
> Have you rebooted/logged out after turning it off or anything?
>
>> I'd like to run the ARD client, so if anyone knows how to have the
>> ARD client run without it stealing the crtl-esc key sequence, I'd
>> like to hear about it.
>
> Possibly submit this as a bug to apple: http://developer.apple.com/
> bugreporter/
>
> Caius
Hi,
I just started to try out the blogging bundle. My blog runs under
wordpress 2.0
I watched the screencast.
Fetching blog entries works.
Editing and posting them works.
However, two things (so far) don't work"
1) When I drag a picture into the message in TextMate, this error
message occurs:
Error uploading image. Check your configuration and try again.
2) When I use cut and the tab trigger, this line gets inserted, but
it doesn't fold in the posted blog entry like it should. The result
is like the cut line wasn't there...
Any ideas why those two issues arise?
I'm not exactly sure what an API endpoint is... (this is where some
comments in
http://macromates.com/blog/archives/2006/06/19/blogging-from-textmate/
lead to)
right now I set my blog adress in
com.macromates.textmate.blogging.txt to
http://<USERNAME>/<abc.net>/xmlrpc.php
where
<USERNAME> is the username I use in wordpress
<abc.net> is the domain name, where the blog is.
using http://<USERNAME>/www.<abc.net>/xmlrpc.php
or
http://<USERNAME>/<abc.net>/wordpress/xmlrpc.php
make things worse
Thanks,
Claus
I would definately need write and create ability, that stinks.
Is there a program that can be purchased that would allow me to mount an FTP with read, write and create?
Thanks!
----- Original Message ----
From: Helge Hartmann <helge.hartmann(a)gmx.de>
To: TextMate users <textmate(a)lists.macromates.com>
Sent: Tuesday, October 10, 2006 4:03:13 AM
Subject: Re: [TxMt] remote editing with textmate
The problem is, that the finder only mounts ftp server read-only.
Helge
Am 10.10.2006 um 06:11 schrieb Dave Grijalva:
the mac can do this natively. in finder, choose Go > Connect to Server... (cmd+K). You can mount NFS, SMB, and FTP. Sadly, there is no SFTP or FTPS support.
-dave
On 10/9/06, Bill Duenskie <bduenskie(a)yahoo.com> wrote: I know Textmate doesn't have remote editing built in, but is there a program that is similar to www.webdrive.com on a mac? Basically webdrive allowed you to connect to a FTP server and map the connection to a drive. Can anyone recommend a similar program on a mac?
______________________________________________________________________
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
______________________________________________________________________
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
______________________________________________________________________
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
Hello Brett, hello list,
sorry, the @ symbol was actually there. I accidentally must have
deleted it while writing the message.
The cut tab trigger still does not work.
Where am I supposed to put it (I am resorting to really weired
questions... but I really have no idea why it doesn't work...
something must be right, because it fetches the posts ok)?
So far I do this:
blah blah <retun>
cut <tab> [inserts curser into a new line] <return>
blah blah
After I tell textmate to post to the blog,
the post shows up.
Both in the blog itself and in the individual post it shows up as if
I had written
blah blah <return>
blah blah
In textmate after posting, the scissors symbols are gone, and there
are 4 empty lines instead.
Thanks for your help,
Claus
On 16-Oct-06, at 8:00 AM, textmate-request(a)lists.macromates.com wrote:
> From: Brett Terpstra <brett(a)circlesixdesign.com>
> Date: October 16, 2006 5:53:47 AM EDT (CA)
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] blogging bundle problems
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>
> On Oct 15, 2006, at 9:00 PM, Claus Haslauer wrote:
>
> [...]
>> right now I set my blog adress in
>> com.macromates.textmate.blogging.txt to
>> http://<USERNAME>/<abc.net>/xmlrpc.php
>> where
>> <USERNAME>is the username I use in wordpress
>> <abc.net>is the domain name, where the blog is.
> [...]
>
> You want to replace the slash with an @ symbol after the USERNAME.
>
> That should work for you.
>
> Brett
>
Claus Haslauer: Groundwater Resources Management, University of Waterloo
chaslaue(a)scimail.uwaterloo.ca | +1 (519) 888 4567 x.37232 | icq -
126499030
OK thanks a lot
F
----- Message d'origine ----
De : Michael Reece <mreece(a)vinq.com>
À : TextMate users <textmate(a)lists.macromates.com>
Envoyé le : Lundi, 16 Octobre 2006, 21h21mn 14s
Objet : Re: [TxMt] how to disable spell checking
Edit -> Spelling -> Check Spelling -> Never
On Oct 16, 2006, at 12:03 PM, Francois wrote:
Hello all,
I am just installing TextMate on my new iMac and I face la little problem : by default, spell checking is activated. My question : how can I disable spell checking ?
Thanks
G
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
______________________________________________________________________
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
---
michael reece :: software engineer :: mreece(a)vinq.com
______________________________________________________________________
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
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Hi,
many times I have the following task.
list all lines for a specific search pattern within my document and
navigate to some/all lines in order to do something
OK. I do this with 'Filter Through Command' : grep -ni PATTERN ;
Input: Document; Output New Document
I get a list of lines containing my PATTERN with the line number as
prefix.
My question is now:
Is there an elegant way to click on one line, get the leading line
number, and go to that line in my main document?
If clicking would be a problem drag'n'drop would also work. I looked
for a command like 'go to line' but I didn't find it.
Even with a macro I didn't come to grips it.
Many thanks in advance
Hans
PS Maybe it would be worth to implement this search option in TM(?)
The attached patch adds support for the ?= operator in
the Makefile bundle. I'm not sure about the procedure of
submitting patches and getting them committed to svn,
so I hope somebody can pick it up from here or point me
to the proper place.
Thanks,
Jan
--
Some instinct tells me that the email address Allan exposes to this
list is a throwaway. It's therefore possible he doesn't read mail sent
to that address.
How might I report bugs that are not for publication, because they
involve proprietary or nondisclosed software? Neither this list nor
the public bug-tracking DB are appropriate.
Maybe in my usual fatheadedness (and I take it as an insult that the
Mac spelling checker includes "fatheadedness") I've missed a way to
submit a bug to the DB without publishing it?
— F
When I create a blog markdown document and then type `blog⇥' it pops
up the dialog to allow me to choose my blog. (If I have more than
one blog defined.)
If I hit cancel in the dialog it pops up a tooltip about how I need
to setup my blogs as none are defined. This should probably be
corrected.
Expected behaviour: Dialog cancels and leaves me with the text `blog'
after typing `blog⇥'
Actual behaviour: When you hit cancel it pops up a tooltip saying
that no blogs are setup and that I need to set them up.
Fix: catch a cancel and return nothing?
Caius
____________________________________
Caius Durling
UK Student
tel: +44 (0) 7746 746039
email: inemo(a)mac.com
nemo8686(a)mac.com
web: http://caius.name/http://qwert.us/
____________________________________
Hi!
I tried to Drag'n'Drop an image from the Finder (or the Project
Drawer) to the Textmate.
On my iBook its working w/out any problem, on my new iMac I get the
folllowing error (and nothing else):
/usr/lib/ruby/1.8/pathname.rb:529:in
I tried to shorten the filename, I tried to remove the space from the
folder-name where the project is in and nothing helped (and I don't
know ruby that well for having an idea what's up with the file from
above)
Both TextMates are at Version 1.5.3(1269) and I checked out the
actual svn-version.
Any help appreciated :)
Niels
Sorry for the newbie question, but how do I run the script I'm looking
at, with arguments? For example I'm editing a Ruby script and I want to
run it, supplying a filename that the script is to pick up as ARGV[0]
and read. I can't believe that the answer is "use the Terminal"; surely
I can stay in TextMate and do this, in some way that I'm just failing to
see. Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
Is there a way to open all the files in a given group/folder, or all
selected files perhaps?
-- fxn
PS: The motivation is I am using TM to give a talk (inspired by DHH's
keynote at RailsConf Europe). All the files/slides live in a group
and to start the presentation it would be handy to have them opened
in one shot, and in their relative order.
PS2: I just discovered you can use a remote to do a presentation with
TM since Mira and friends let you map buttons in Apple Remote to
⌥⌘←/→. There's order in the Universe.
I have the following drag command for zip files to be inserted as snippet:
echo -n "<a href=\"http://$TM_REMOTE_URL/file_download/\${1:file_id}\"
title=\"\${2:"$TM_DROPPED_FILE"}\">\${3:"$TM_DROPPED_FILE"}</a>"
This will insert a download snippet for a default URL on a live server.
However, I would like to strip the path somehow from the variable.
Does anyone know how to do this,through a substitution reg ex maybe ?
Additionally a variable named $TM_FILE_NAME (That would just insert the
name of the file instead of $TM_DROPPED_FILE would make much sense here
for such a drag command, where you don't care
so much about the path.
regards, marios
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, again
Can any Ruby Guru tell me, what is wrong with this code.
http://pastie.caboo.se/17615
It gives me a syntax error.
The Ruby version is 1.8.2
It has been working before, and ceased to do so , after removing one
tag item from the txp_single array.
It is a slight modification of the html version.
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
iD8DBQFFMIYv8tSzPOYuZvQRAgdYAJ47wnqk9T8O++jYPDuqp0Ls7PyWJACgu8AE
Ks+KAlpVY4bwEYdC58NAgfY=
=6SzG
-----END PGP SIGNATURE-----
Search within project is great, but as projects grow, it becomes slower to
perform a search within the project. I would be fantastic to be able to
search within a selected Folder or Group. Is this in there somewhere an I'm
missing it?
-dave
Is it possible to create a bundle that exists only within a project? I
often have instances of commands, snippets, or scripts that I only need/want
within the context of a certain project. It would be fantastic if I could
have a bundle that only existed for a certain project.
-dave
Hello,
seems that Smoot Scrolling doesn't work in TM like in any other cocoa
app (e.g. colloquy).
Someone experienced this?
(I have asked for this in irc today, without answer)
How to type Chinese or Japanese with TextMate?
Sometimes I have to write scripts, html pages, etc. with Chinese,
Japanese, Korean, etc. strings.
The problem is that within TextMate I cannot use e.g. Kotoeri (the
Japanese Input Editor) because I don't see what I'm typing. In order
to avoid to change to an other program I wrote a very easy code
snippet with CocoaDialog's textbox feature.
Here is one way to use my suggestion:
- open the Bundle Editor
- Show all
- go to the folder 'TextMate' (or whatever)
- add a new command 'inputCJK' (or whatever)
Command data
- Save: nothing
- Command(s):
# open CocoaDialog's textbox
res=$(CocoaDialog textbox \
--title "Input CJK" \
--informative-text "Write up here..." \
--selected \
--scroll-top top \
--editable \
--no-newline \
--button1 "Insert" \
--button2 "Cancel")
# If user canceled exit.
[[ $( (tail -r <<<"$res") | tail -n1) == "2" ]] && \
exit_discard
# delete first line
res=$(sed '1,1d' <<<"$res")
# print the content of the textbox
echo -n "$res"
Input: None
Output: Insert as Snippet
Activation: Key Equivalent shift+option+i (or whatever)
Scope: leave it empty
With the help of this script you are able to use Kotoeri or other IME
within TM indirectly.
I know that isn't the most elegant way but for writing small scripts
using some Japanese, Chinese strings is quite good.
Of course, TM has some problems to display Chinese characaters but, as
I mentioned before, for smaller things it is sufficient. ;)
Hopefully the very tiny script is useful for others as well. Feedback
is highly welcomed.
Many greetings,
Hans-Jörg Bibiko
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Many users mentioned that there is sometimes the need to open a file
which is encoded in e.g. Chinese Big5 or in Japanese Shift-JIS.
The TextMate manual recommends in respect to that topic to use the
UNIX command 'iconv'. It works perfectly, but if you have to open many
files of different encodings the typing of such commands will become a
bit uncomfortable.
To make it a bit easier I wrote with the Bundle Editor a new template
called openEncodedFile based on CocoaDialog's features.
Here is one way to use my suggestion:
- open the Bundle Editor
- Show all
- go to the folder 'TextMate' (or whatever)
- add a new template 'openEncodedFile' (or whatever)
Template data
- Extension: leave it empty
- Command(s):
# open CocoaDialog's file select menu
file=$(CocoaDialog fileselect \
--title "Open an encoded file" \
--with-directory $HOME/ \
)
# check for valid file
if [ -n "$file" ]; then
# open CocoaDialog's dropdown menu
# for more encodings add them to '--items'
# to list all possibile encodings use the Terminal with 'iconv -l'
res=$(CocoaDialog dropdown \
--title "Open an encoded file" \
--text "Choose the encoding:" \
??exit?onchange \
--button1 "Open" \
--button2 "Cancel" \
--items "BIG5" "EUC-TW" "GB2312" "SJIS" "EUC-JP" "KOI8-R" \
)
# if user canceled exit
[[ $( (tail -r <<<"$res") | tail -n1) == "2" ]] && \
exit_discard
res=$(tail -n1 <<<"$res")
# add more 'elif' according to '--items' if needed
if [ "$res" == 0 ]; then
ENC="BIG5"
elif [ "$res" == 1 ]; then
ENC="EUC-TW"
elif [ "$res" == 2 ]; then
ENC="GB2312"
elif [ "$res" == 3 ]; then
ENC="SJIS"
elif [ "$res" == 4 ]; then
ENC="EUC-JP"
elif [ "$res" == 5 ]; then
ENC="KOI8-R"
fi
# start conversion to UTF-8 and send the result as a new file back to TM
iconv -f "$ENC" -t utf-8 "$file" > "$TM_NEW_FILE"
fi
- Output: Insert as Text
- Activation: Key Equivalent shift+option+o (my suggestion)
- Scope: leave it empty
I've chosen a new template because the used keyboard short-cut is also
available if no document is open.
As you can see in the script you can add/edit encodings very easily.
(More details within the code)
If you start that bundle (shift+option+o) you will see a file choose
menu. Select your file and press ENTER or 'Open'. Then you will be
asked to input the right encoding. The available encodings are listed
in a drop-down menu. Select one encoding and press ENTER or 'Open'.
The script will convert your file according to the selected encoding
to utf-8. The result will be shown in a new document.
Hopefully the very tiny script is useful for others as well. Feedback
is highly welcomed.
Many greetings,
Hans-Jörg Bibiko
PS TODO: Include an automatical encoding detection. Hopefully coming soon ;)
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Well, I've been having quite a time of it with tab-triggered
commands. From looking through the many existing bundles, I'm not
surprised it took me this long to notice this bug(?), there are very
very few commands that use tab triggers.
The problem is that a tab-triggered command will empty the line that
I use the tab-trigger within when in fact the command is supposed to
replace or alter the line in some way, not delete it.
I first noticed the behavior when using Mike Mellor's GTD2 bundle and
at first thought that it was his scripts that weren't working on my
system. After some back and forth communication between Mike and I, I
was able to see that this problem happens with MOST commands that are
tab-triggered.... MOST but not ALL. I could understand all of them
not working, but most of the few that exist in the bundles I have
active don't work while one does.
Here's a list of the commands and their bundles:
GTD2:
delegate (python script)
wait (python script)
undo state change (python script)
done (python script)
Objective-C:
alloc (ruby script)
super (doesn't seem to, but haven't the time to layout test code)
(python script)
The one example that does work is...
Ruby:
word_wrap() (ruby script)
The only common thread I can see is the path to the executable at the
top of the shell script.
The ones that fail all are shell scripts in which they define the
path to the exec file at the top:
#!/usr/bin/env python
#!/usr/bin/env ruby
But then, there are other scripts that AREN'T tab-triggered and also
use shell scripts with the defined path that work.
I'm using TextMate Version 1.5.3 (1269) on OSX 10.4.8 on a 1GHz
PowerPC G4 powerbook.
Any help narrowing this problem down would be greatly appreciated.
Thanks
Mike
I know it's probably something obvious I'm not doing, but I'd really
like to be able to preview an HTML document in a project while
editing a linked CSS file. Every time I open a preview on the HTML
document and switch to the CSS file in my project, the web preview
closes. Is this normal?
I've been doing fine with using the "Refresh open browsers" command
and split off commands to shift-refresh firefox and exclusively
refresh Xylescope, but having the instant feedback in the web preview
would be great, especially when combined with the current ability to
pipe through your PHP installation.
Thanks,
Brett
OK -- I'm diving into the GTD2 bundle's way of doing GTD. Cool enough.
The URLs for the GTD Active View List seem broken. At least,
clicking 'em does not bring up the file/line as I would expect.
The URLs produced are of the form:
txmt://open/?url=file://personal&line=7
Clearly, the file path is incorrect.
b.bum
When editing a mail, double quoted blocks have this scope:
text.mail.markdown
text.html.markdown
meta.block-level.markdown
markup.quote.markdown
markup.quote.markdown
Shouldn't it be "markup.quote.double.markdown" or something?
Or is it possible to apply different colors to different quotation
levels like that?
Thanks
--
FredB
Hi all,
[apologies if this appears more than once; been having posting trouble]
guerom00 wrote:
> Hi there,
>
> This a feature request : I would like to be able
> to cancel a “Find in Project”.
> Because while TM searches, it basically freezes
> for any other actions...
>
> TIA :)
More generally, this brings up the question of why the system (not just
TM!) becomes unresponsive, and why the search is so slow (at least for
projects that include whole directory trees).
Yours,
Andrew
Version 1.5.3 (1215).
I have an Xcode project directory, which a TextMate project file
encompasses. The directory contains a "build" subdirectory. It would
be very undesirable to include that directory (and a couple of others,
such as .xclassmodels, also some binaries like a Stuffit archive) in
the TextMate project, as project-wide searches take much, much longer
when (I assume) the search interrogates all the files in the build tree.
So I select the build folder in the project list and press backspace.
TextMate asks if I want a remove-from-project or a delete-file.
Remove, please.
Shortly thereafter (it may be related to deactivating and reselecting
TextMate), the build folder appears in the list again. Grz.
I have double-checked that I am dealing with a TextMate project file,
and not a directory window.
Some of the re-added files and folders have been modified while
TextMate is running; most have not.
I had used a directory window before switching to a project.
I originally populated the project by dragging the Xcode project
directory into the file list.
What am I missing? Or what is TextMate missing? It may be my problem,
as searching for "project file reincludes folders" turns up nothing in
a list-archive search.
— F
Thanks Allan.
The code works perfectly! I've tried to insert a variable inside...
<${1:ul}>
${TM_SELECTED_TEXT/(.+)(?:\n(.+))?/ <li class="${3:odd}">$1<\/li>(?2:
\n <li>$2<\/li>)/g}
</$1>
...and this is the result...
<ul>
<li class="${3:odd}">dfadfadfadfadfad</li>
<li>fadfadfadfdaf</li>
<li class="${3:odd}">afdfadfdafd</li>
</ul>
How can we adjust the class to be the next tab stop with a default? I
also adjusted your code to allow for a clean indentation of the li
elsments.
Thanks for the help. :)
Hello,
Forgive me if this question has been asked, I searched but found
no answer. I am working on a bundle that is a subset of the ruby
bundle and I would like to have some macros similar to the ones in
the ruby bundle, namely the macros that automatically insert the
requires. Looking at the macros in the ruby bundle, they are very
clean:
- moveToBeginningOfDocumentAndModifySelection:
- executeCommandWithOptions:
{
command = "insert_requires.rb yaml";
input = selection;
output = insertAsSnippet;
}
- insertSnippetWithOptions
etc.
Since, there is no real bundle editor, I am trying to replicate this
process for macros under my bundle. If I were to get to the step of
executing the command, I hit the key equivalent for this
insert_requires.rb command, but instead of getting a clean looking
macro recording like the one above, I get one who's command is filled
with the exact ruby source code being executed:
{
beforeRunningCommand = nop;
command = "#!/usr/bin/env ruby\n$: << \"#{ENV
['TM_SUPPORT_PATH']}/lib\"\n\nrequire \"escape\"\nrequire \"open3\"\n
\nCURSOR = [0xFFFC].pack(\"U\").freeze\nline, col = ENV
[\"TM_LINE_NUMBER\"].to_i - 1, ENV[\"TM_LINE_INDEX\"].to_i\n\nstdin,
stdout, stderr = Open3.popen3(\"/usr/bin/env\", \"ruby\", \"#{ENV
['TM_BUNDLE_SUPPORT']}/bin/insert_requires.rb\")\nThread.new do\n
code = STDIN.read.to_a\n code[line][col...col] = CURSOR unless
ENV.has_key?('TM_SELECTED_TEXT')\n stdin.write code.join\n
stdin.close\nend\n\nprint stdout.read.split(CURSOR).join('${0}')\n";
fallbackInput = document;
input = selection;
keyEquivalent = "^#";
name = "Insert Missing Requires";
output = insertAsSnippet;
scope = "source.ruby";
uuid = "9FB64639-F776-499B-BA6F-BB45F86F80FD";
}
Can someone please let me know what I am doing wrong here? Do I have
to hand hack the plist file or what?
Thanks in Advance,
Marshall
Did a reasonable amount of searching, but can't find it (this product
doesn't have the world's greatest documentation).
So: how do I get the equivalent of emacs-style meta-slash
autocompletion?
Guyren G Howe
Relevant Logic LLC
guyren-at-relevantlogic.com ~ http://relevantlogic.com
REALbasic, PHP, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training
I was distressed by the fact that my Ruby appeared broken when the
Open Projects commands were distributed and they wouldn't work for
me. I tried a plethora of solutions, including removing my svn
installations and reverting Ruby installations. Ultimately, the
solution ended up being copying the text out of the bundle editor,
pasting it into a text window, and copying it back into the command
window. Then it worked. No changes to the code... weird, right? Is
there an explanation for this? Did all of my other fiddling around
do something?
I toggle off and back on a command every time I make an edit, so it's
not a question of whether I was activating any changes or not.
I just thought I'd throw it out there and see if it had an
explanation, or perhaps solved anyone else's problems (none of which
I've heard about ;-)).
Thanks,
Brett
I'm experiencing an issue where, if my cursor is in the middle of a line,
and i use cmd+] to indent the line, my cursor position is shifted one
character to the left. not a huge deal, but a bit annoying. anybody else
experience this?
-dave
TM is very sensitive about order in which Alt and mouse button are
released. I often end up with regular selection when I try to select
columns.
I've checked XCode and Word - both requre Alt to be pressed only when
clicking mouse button, not when relasing. I find that much easier to work
with - it's fail-safe and I don't have to hold Alt when selecting.
Is there a reason why TM has selection implemented like this? Can this be
changed or made configurable?
--
regards, porneL
Hello everybody,
First, the caveats and the waffling: I'm new to TextMate, I'm not a
programmer, I hope I'm not missing something obvious, I've never posted to a
mailing list before.
There, now that's out of the way, here's my problem:
I process a lot of texts for Project Gutenberg. PG has a homemade C program
(GutCheck -- http://gutcheck.sourceforge.net) which checks for various
features in the text to make sure it's in good shape for posting to PG. I
normally run it from Terminal and thought I could easily make a Command to
do it from TextMate.
I made my command, and as long as I don't add any arguments, I get back the
"usage" information for GutCheck. So far, so good.
However, when I put in my file name (e.g. gutcheck "$TM_FILEPATH"), I don't
get anything other than a new empty untitled document and short-lived
beach-ball. If I make the command pipe into another (specific) document (e.g.
gutcheck "$TM_FILEPATH" > mynewfile.out), I get one line of response from
gutcheck, and then the rest of the information is stored in the other
document. I then have to open it separately; so it's not much different from
running the command in Terminal which is what I'm trying to avoid.
I thought it had something to do with GutCheck reporting to stderr instead
of stdout, but there's a switch available to turn that off. It didn't make
any difference.
The _weird_ thing though, is that when I have in my command "Output: Show as
HTML" (instead of Create New Document), everything is there in the HTML
window (but unreadable because there are no line breaks).
What am I missing or doing incorrectly?
Ah, another clue, perhaps: when I run the command on a short file (like this
message), it works as I expect (Command: gutcheck "$TM_FILEPATH" Output:
Create New Document). But few ebooks are 17 lines long. How do I make it
work for real texts (600 to 6000 or more lines)?
Thanks in advance for any advice,
Barbara
How could we alter this.
<${1:ul}>
${TM_SELECTED_TEXT/.+/ <li>$0<\/li>/g}
</$1>
...to add a class option to the li tag, but only every other instance
of the li tag? Thanks Sune for setting up this snippet, it saves me a
ton of time when creating ul/ol lists!!!!
Adam Stacoviak
Image202 Entertainment
www.image202.com
--
houston. 713.4291456
toronto. 416.9075496
fax. 713.4562013
I use TextMate all day for Ruby on Rails apps. Today, my command-R and
command-shift-R commands have suddenly started taking a very long time
to execute and return. Using them for unit tests and the tests
indicate they've run in under a second. It's taking minutes for the
window to finish.
When I run this on the comman line the tests run instantly.
I've noticed the same problem with Ctrl-Shft-A as well.
(I updgraded to ruby 1.8.5 via MacPorts today.)
Thanks,
Jamie
Hi again,
I am trying to figure out, how I can update a Language Grammar of a
Pristine Copy, by double clicking a Previous pristine Copy, that is
derived from the same UUID, by Dragging it out from the Bundle Editor.
I tried both double clicking The Language Grammar in the Syntaxes Folder,
or the Bundle altogether from a Finder Window.
What is the expected Behavior in those cases? The CoCoa Dialog tells me
to confirm the Update of the previous Bundle, with the message that
customizations will be retained, however, a Grammar for instance
reflows, but the changes do not seem to be applied.
I can't remember, if that was the case for previous TM revisions, but I
was just wondering what was the Expected behavior in those cases.
(cutting Edge r1269)
regards, marios
Hi to all,
Suppose, I have a document with HTML like tags, where each unique tag
attribute of a specific tag corresponds to a file not in the same
Folder, but a sibling folder of the documents window parents folder.
I'm trying to make a command, that when triggered via key equivalent
will open that correspondent file, if the caret is on that scope.
I've managed just to filter the filename. eg.:
if I do:
find "$TM_DIRECTORY/.." -name "$TM_CURRENT_WORD*article.txfml" -exec
basename "{}" \;|sort
then this will give me the desired filename which is
mrs_promo.article.txfml.
My question is, how can I make this command, so that it will open this
file inside my project, even if it is not open as a project tab.
Or, alternatively to open an Html window, with a link, when clicked on,
will take me to the file.
I've looked around a bit, if I can find an example in other Bundles, but
only saw Ruby examples.
(Sorry, for bothering again, I promise, this will be the last question
for the next 2 weeks)
regards, marios
I have added a new version of the GTD bundle to the repository,
called (for now) GTD2. It is based on a syntax described at <http://
patrickrhone.com/journal/archives/2006/05/175.html>. Also, I have
done a quick write-up of the new system at <http://panalaska.org/geek/
>. It uses a new contexts.gtd file, which I have added to the
Support folder in the bundle. Based on user feedback, I will merge
the GTD and GTD2 bundles in a week or so. Please let me know if
there is any interest in this bundle. Thanks!
Mike
When I try and use the 'Documentation for word' command (control h) I
now get the error message:
.../lib/web_preview.rb:6 in 'html_header' : undefined method
url_encode for ERB::Util:Module (No Method Error) from tmp/
temp_textmate_Qp8b1:19
This has worked in the past and the only thing that I believe has
changed since it was working is the version of Textmate (now at 1.5.3
(1258)).
Nothing in the svn bundle logs on the RSS feed looked like it related
to this.
I have removed all my customization by getting rid of the Bundles
folder in ~/Library/Application Support/TextMate
with no effect and there is no TextMate folder in /Library/
Application Support.
Dave.
That'd be great Daniel, I'd use the heck out of it. I know a bunch of other people who'd probably use it as well.
Bill
----- Original Message ----
From: Daniel Stockman <daniel(a)evocateur.org>
To: TextMate users <textmate(a)lists.macromates.com>
Sent: Tuesday, October 10, 2006 4:48:43 PM
Subject: Re: [TxMt] coldfusion bundle
Bill Duenskie wrote:
> Is there an Adobe ColdFusion for Textmate? I can't seem to find one.
Indeed, I use Textmate for CF all the time. I basically hacked up a
copy of the HTML Bundle, adding in a new grammar with various bits
and bobs lifted from the Javascript bundle (for the CFscript parts).
I'll look at cleaning it up and packaging it for distribution, it's a
bit rickety at the moment.
~ Daniel
______________________________________________________________________
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
Charley,
Thanks for the info. Unfortunately I'm on a shared hosting environment and my host doesn't support WebDav.
It's FTP or nothing for me.
Bill
----- Original Message ----
From: Charley Tiggs <lists(a)tiggs.net>
To: TextMate users <textmate(a)lists.macromates.com>
Sent: Tuesday, October 10, 2006 3:16:05 PM
Subject: Re: [TxMt] remote editing with textmate
Actually, why don't you look in to WebDAV? Is WebDAV not available to
you? If so, you can mount the WebDAV point and it'll behave like a
drive. Depending on configured permissions, you'll have the ability to
read and write.
Charley
Bill Duenskie wrote:
> I would definately need write and create ability, that stinks.
>
> Is there a program that can be purchased that would allow me to mount an FTP with read, write and create?
>
> Thanks!
>
> ----- Original Message ----
> From: Helge Hartmann <helge.hartmann(a)gmx.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Sent: Tuesday, October 10, 2006 4:03:13 AM
> Subject: Re: [TxMt] remote editing with textmate
>
> The problem is, that the finder only mounts ftp server read-only.
>
> Helge
>
> Am 10.10.2006 um 06:11 schrieb Dave Grijalva:
>
> the mac can do this natively. in finder, choose Go > Connect to Server... (cmd+K). You can mount NFS, SMB, and FTP. Sadly, there is no SFTP or FTPS support.
>
> -dave
>
> On 10/9/06, Bill Duenskie <bduenskie(a)yahoo.com> wrote: I know Textmate doesn't have remote editing built in, but is there a program that is similar to www.webdrive.com on a mac? Basically webdrive allowed you to connect to a FTP server and map the connection to a drive. Can anyone recommend a similar program on a mac?
>
>
>
>
>
>
> ______________________________________________________________________
> 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
>
>
>
>
>
> ______________________________________________________________________
> 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
>
>
>
>
> ______________________________________________________________________
> 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
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> ______________________________________________________________________
> 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
______________________________________________________________________
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
I'd like Open Recent... list to keep something like minimum 3 last tmproj
files, no matter how many other files were open.
The point is that if I open lots of non-project files my projects get
kicked out of the list, but it's more likely that I'll need to re-open my
projects than any other files.
--
regards, porneL
Jen,
TextMate does not do the conversion of MarkDown "marked up" text:
WordPress does that. You will need to install the MarkDown plug-in,
which can be found on the WordPress site. I'm not sure if Smarty
Pants is rolled into it or not, but if you like the look of print
typography, then you might consider that plug-in as well.
(SmartyPants does things like "smart quotes" and em dashes.)
john
On Oct 10, 2006, at 10:01 AM, textmate-request(a)lists.macromates.com
wrote:
>> However, the markdown problem persists! Is there something I need
>> to install on the server so markdown is translated? I thought
>> TextMate was supposed to translate it to HTML before sending it to
>> the blog...
On Oct 10, 2006, at 4:36 PM, Bill Duenskie wrote:
> I would definately need write and create ability, that stinks.
>
> Is there a program that can be purchased that would allow me to
> mount an FTP with read, write and create?
Maybe this one - but I didn't tried it yet:
http://jm.marino.free.fr/Software/Mac/AutomountMaker/introduction.html
Niels
--
Linux is only free if your time has no value -- Jamie Zawinski
Hello there,
I tried using the Blogging bundle (according to the instructions of
the screencast) with my WordPress Blog (version 2.0.4).
Preview works, but when trying to send a post to the blog I
eventually get a tooltip with some ruby code and the message "time
out". Now the weird thing is that the blog actually shows the new
blog post, but markdown isn't converted to html. Posting directly in
html works, but also with the time out error and textmate doesn't
update the document with post id, category, ... and the rest of the
headers that should normally appear according to the screencast.
Any idea what I did wrong?
Thanks in advance
Jens