I'm new to TextMate and can't figure out how to change the width of indentation.
It's currently 4 and I'd like it to be 2. How's it done?
Also, how can I get TM to insert spaces rather than tabs?
Thanks,
Joe
So I bounced this idea off of Soryu and it seems this hasn't been
discussed much. What if you could add multiple carets to the current
document by command-clicking? I imaging this to work in a way almost
identical to that of the current snippet mechanism. For example:
choose three caret locations, start typing, and in each location your
text will show up. Press tab and the caret will focus in on the
second of the two locations, highlighting the newly typed text (if
any). Tab again and it moves to the third.
It would also be ideal to be able to highlight multiple selections in
the same way--kind of like a powerful replace mechanism. Command-
click and select three words in the document, then type one new word,
and incrementally, all three words change to the new one.
Has this been discussed before? It seems plausible given the
powerful way we can already "insert as snippet" to the document.
Hi,
In my FileMerge bundle support script (Support/bin/filemerge.sh) I
call opendiff. If FileMerge is not already open, 2 seconds after it
launches TextMate displays the spinning beachball. Quitting FileMerge
makes the beachball go away.
I have tried using & to execute opendiff as a background process, but
that didn't help. Any ideas?
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
Hi,
I've been using the bundles from SVN for some time, but have only
just noticed the snippets for django (slow, I know). I've noticed
that the django bundle seems to have syntax for the magic-removal
branch of django. Do the creators of this bundle (Wilson Miner and
Paul Bissex, I believe), have an older bundle which is relevant for
django 0.91? It would be very useful for me (and perhaps others) to
have this.
Best Regards,
David
--
David Reynolds
david(a)reynoldsfamily.org.uk
I keep seeing references to using TM as an external editor for Mail.app and
other places, but I have yet to find the (plugin) way to make it happen. Can
someone post a pointer to the necessary pieces?
Lewy
My switch/case blocks (in Java, for example) normally look something
like this:
switch (foo)
{
case A:
bar();
break;
default:
baz();
}
Note how the lines after "case" and "default" are indented. (They're
not flush with the line above.) I believe this is a pretty standard
formatting convention.
However, it seems that TextMate doesn't know about this convention.
If, for example, you were to type the above snippet, typing "case A:"
and then hitting Return puts the cursor flush with the line above,
rather than indented. Likewise, if you were to take the above
snippet, copy some random text (that has a different indentation),
then paste it between the "case A" and "bar" lines, TextMate's smart-
indent feature makes the pasted text flush with "case A", rather than
indented.
Considering that TextMate is smart about indentation in many other
ways (such as when you type "{" and then hit Return), I was hoping it
could be smart about indenting switch/case blocks, too. Is that
possible? Perhaps there is something I could add to the language
definition? Thanks,
Trevor
Hello,
I've written a small tool that allows you to edit a specific cell (field of a row) in Textmate.
When you save the changed document in Textmate, the database is updated.
For a short clip showing it in action, and the download: http://vivified.net/journal/sqledit/
I've briefly looked into making it into a bundle, after discovering the SQL table browser,
but that has not really materialized yet. Shouldn't be that hard though.
Would anyone be interested in this as a bundle? Rather keep it separate?
Anyone think this is useful at all? :)
Cheers,
Bastiaan Terhorst
Hi, I have done a macro which uses a snippet and a command. The
snippet adds the line:
std::cout << "" << std::endl;
And the command checks if iostream is included (using scopeHandler)
and if not it includes it.
For this to work I have to first run the command and after that
insert the snippet. The problem is that if the command inserts the
#include <iostream> , the caret moves to the previous line, inserting
the snippet there.
I have tried with this line at the end of the command (which is in
Ruby):
`/usr/local/bin/mate "$TM_FILEPATH" -l $CARET'`
but it makes TextMate freeze.
Anyone knows how to do this?
Thanks in advance
José Manuel
Polytechnical University of Valencia
Spain
I can no longer use these handy shortcuts for
<%= ... %>
and
<% ... %>
I've checked the rails bundle and it looks fine. Any ideas?
:-/
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net