Hi,
I don't like pyunit, so use py.test instead. It was really simple to
wire py.test into the Python bundle, but it was also really ugly
using the "Text Window."
Based on some feedback from the IRC channel, and the excellent
example of PyMate, I cobbled together PyTestMate which allows you to
run py.test unit tests directly from within TextMate, and get lovely
formated results from those tests.
It's still a work in progress, but it does work quite well, in fact,
the unit tests for PyTestMate were all written using PyTestMate.
If you'd be interested in taking a look at it please let me know and
I'll forward you the code.
--
Stand Fast,
tjg.
Timothy Grant
As discussed previously on this list, I have made a bundle of all my
Ruby shortcuts and made it available to all. Bundle and detailed
description can be found at:
http://blog.grayproductions.net/articles/2006/04/12/ruby-idioms-
bundle-for-textmate
Enjoy.
James Edward Gray II
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