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
I sent this already, but I think I sent it slightly before I was added to
the list and I don't see it on the archives.
How does TextMate determine if a particular bundle is applicable to the
files I'm editing? I can insert snippets that are in the Ruby bundle, but
the Rails bundle snippets never expand when I hit tab.
Thanks,
Justin
Hi,
I've noticed that the TextMate Ruby bundle doesn't recognize .rjs file
as Ruby(/Rails), and chooses Plain Text.
I found directions here:
<http://www.memerocket.com/2006/02/10/tell-textmate-about-your-rjs-templates/>
that tell how to modify the bundle to add .rjs. But I'm concerned that
doing so will interfere with doing svn updates to get the latest and
greatest bundle updates.
Is there any plan on adding this to the official Ruby bundle?
Thanks!
jt
I was just watching Allan's latest screencast and wanted to add
support for some of the techniques used in block comments. However,
I noticed that the Javadoc blocks are scoped with
comment.documentation.java. I probably created it that way, but it
seems like it should really be "comment.block.documentation.java".
/*
* this is a block comment
*/
/**
* this is a javadoc block comment
*/
I could scope the snippets for comment.block and
comment.documentation, but I still think the latter should extend
from the former. Is this the desired scope for those types of doc
comments, or was this overlooked?
--
Brian Lalor
blalor(a)bravo5.org
Hi,
I'm new here. Can you let me know the entire list of Emacs
keybindings that work on TextMate?
I found a default Cocoa/Emacs keybidings information at <http://
developer.apple.com/documentation/Cocoa/Conceptual/BasicEventHandling/
Tasks/TextDefaultsAndBindings.html>, but could not open the file
specified (i.e., /System/Library/Frameworks/AppKit.framework/
Resources/ StandardKeyBinding.dict) with appropriate encodings.
I searched this list and wiki, but couldn't get the answer.
Thanks for you attenstion,
Teck
>[2006-04-10: REVISION 961]
>...
>[CHANGED] The scope of the caret is now that of the character to the
>right of the caret, rather than that on the left side.
I have a snippet that inserts a '_' in 'variable.other.php' scopes with
the spacebar. However, now that the scope is that which is to the right
of the caret, it doesn't work!
Shouldn't the current scope be set to "that text which is currently
being typed?" Either way, maybe you setup a pseudo selector to specify
which side of the caret to use, for example:
variable.other.php<
-variable.other.php
variable.other.php[left]
... for left side of caret, and ...
variable.other.php>
+variable.other.php
variable.other.php[right]
...for the right side?
Q
Hi,
I've a project containing about 1.5 M lines of C++ in about 6200 files.
When I try project wise search TextMate crashes on a 2GB MacBook. Is this
to be expected?
Cheers, Fons.
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers(a)cern.ch Phone: +41 22 7679248
WWW: http://fons.rademakers.org Fax: +41 22 7669640
Dear all,
I've recently switched to using mutt to handle my mail, which was getting a
bit out of hand.
As a result, I now use TextMate when writing emails and it occurred to me
that it would be lovely if TM supported format=flowed text.
The basic idea is this: instead of the horrible quoted mess that often
results in long threads, where some lines miss the quoting etc etc.
A full description can be found at http://joeclark.org/ffaq.html, and
technical details at http://www.eudora.com/techsupport/kb/1625hq.html and
http://www.ietf.org/rfc/rfc2646.txt
My question is this: would it be feasible to implement this in TM, either in
the core or as a plugin, so that f=f text can be displayed, rewrapped and
reflowed? I suppose since the format=flowed headers come within the text of
the document, it would make more sense if it were a plugin, to be switched
on and off at will.
Anyone have any comments/suggestions?
Regards,
Nick
i am a relatively new user of Textmate, and have it installed on 2
machines...for some reason, i can use 'command+/' to toggle comments on one
machine, and not the other...i suspect i may have messed it up with an edit
or addition i made in the bundle editor...how can i add this functionality
back?..thanks for any help....
Hi
I searched the archives but didn't see a good answer to this. Is
there a way to map auto-completion from ESC to something a bit more
ergonomically friendly?
thanks,
Rob
--
http://www.robsanheim.com/
Howdy
I code in the K&R style. "the first opening brace on the same line as
control statement"
codeCodeCode {
Code...
}
My co-worker uses BSD/Allman style "the brace associated with a
control statement on the next line, indented to the same level as the
control statement"
codeCodeCode
{
Code...
}
We both have extremely strong feelings about our style. I have
decided to be diplomatic and use his style.
I want to be able to fold on the line before the opening brace "{" .
But I haven't been able to come up with a foldingStartMarker that
works for it.
My guess is that the foldingMarkers are stuck on single line mode.
Can anyone help? This is really starting to annoy me.
Thanks
thomas Aylott—subtleGradient—oblivious(a)subtleGradient.com
Hi,
I have the following rule for a block comment:
{ name = 'comment.block.active4d';
begin = '/\*';
end = '\*/';
patterns = ( { include = '#fusedoc'; } );
}
Within a block comment, the fusedoc rule looks for some xml:
fusedoc =
{ begin = '^\s*<fusedoc ';
end = '^\s*</fusedoc>';
patterns = ( { include = 'text.xml'; } );
}
The problem is that I want the text.xml language parser to parse the
line on which '<fusedoc ' is found. However, it seems that it will
only parse the lines between the begin and end lines.
Is there any way to have the first and last lines of the fusedoc rule
be parsed by text.xml?
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
I'm using TextMate to keep my daily log book - I have a
'Journal' template, language and snippets and it all works
very nicely.
What I'd really like is that when I create a new file from
the template, it immediately gets a filename based on
the date - eg. 060418.txt - so I don't have to enter that
manually when I go to save it.
The template creates the new file in the usual way, by
copying some standard contents to $TM_NEW_FILE.
I was hoping that I might then be able to call osascript
and do something like
tell application "TextMate" to save the document
of front window in "060418.txt"
but it doesn't seem to work.
Any suggestions most welcome!
Hello everyone. I'm trying TextMate out and so far I'm very impressed.
But today I noticed this problem. Apologies if it's well known already:
When I am in overwrite mode (Cmd-Opt-O) and press an opening bracket,
TextMate avoids adding the closing bracket if it would overwrite a non-space
character. This is rather clever. However, when it decides there _is_ space
to add the closing bracket, it mistakenly *inserts* it rather than
overwriting. It kind of defeats the point of overwrite mode, and it's extra
annoying because you have to leave overwrite mode to delete the extra
character again!
Actually adding closing backets in overwrite mode is hardly ever useful,
because if you keep typing you immediately overwrite the closing bracket. My
suggestion would be for TextMate generated the closing bracket but allowed
you to keep typing and "pushed" the bracket to the right (until it reached a
non-space character or you typed the matching bracket). Of course the
pushing behaviour would only be right when you have just typed the opening
bracket.
r/
I promised I'd be back!
I'm working on a bundle for Erlang [1], a nice functional language
that focuses on multithreading and distributed programming. It's
mainly used in embedded programming of telephony equipment, but you
might have heard of ejabberd (a Jabber server written in — guess what
— Erlang). this is a first rough draft -- there's only a basic syntax
description. when it gets good enough I'll add it to the repository,
if you wish.
in order to improve it, I need some help on automated indentation.
this is a typical (small) Erlang module:
> -module(sample).
> -export([fact/1]).
>
> fact(0) ->
> 1;
> fact(N) ->
> N * fact(N - 1).
I'd like to increase indentation of the next line if the current line
ends with -> and decrease indentation of the next line if the line
ends with "." or ";". still, I wasn't able to tweak the prefs in
order to achieve this... (I tried and I tried, man, but I just wasn't
up to the task.) help? help?!? HEEEEEELP! ;)
ciao,
Domenico
---
[1] http://www.erlang.org/, http://www.erlang.se/
Hi,
If I'm not mistaken the pattern match for the second meta.tag.xml
rule is missing _ as a valid character for the attribute name. The
correct match should be:
match = ' (?:([-_a-zA-Z0-9]+):)?([_a-zA-Z-]+)'
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
How does TextMate determine if a particular bundle is applicable to the
files I'm editing? I can insert snippets that are in the Ruby bundle, but
the Rails bundle snippets never expand when I hit tab.
Thanks,
Justin