I want to build a command, macro or whatever to have TextMate do a
chore for me. I've taken a couple of passes at it, but I'm not having
much luck yet and could use a little help.
I have many snippets that help me quickly build Ruby iterators. Here's
the one for each():
.each { |${1:e}| ${1:e}.$0 }
So when I run that I get:
.each { |e| e.<cursor here> }
When those are getting longish, I break them up over multiple lines,
but I switch { ... } to do ... end. So I want to change the above to:
.each do |e|
e.<cursor here>
end
I was trying to do this with a command, but it proved harder than I
expected. Any tips are greatly appreciated.
Thanks.
James Edward Gray II
Working with PHP code I prefer to have my comments prefixed by # (hash)
rather than // (double-slash).
However, when using Text->Shift Left/Right these comments are not moved
together with the other text.
Anyone have an idea of how I can make that work ?? Is it something only
for Allan, or just syntax file issue ??
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
I've got a fledgling Apache bundle built (can I get repository access
please Allan?) and have a couple of questions regarding how things
work.
The bracket { } based syntax.plist file I'm editing gets converted to
an apple plist file when textmate is launched, firstly why? and
secondly how can I stop it happening as it's easier to edit the bracket
based file in place.
The following (with a unique string) crops up in a few of the other
bundle syntax files, what is it?
uuid = "991022B4-6B1D-11B5-90EB-000D93589AF6";
Thanks,
Simon
I must say everybody is doing a great job writing proper subjects, and
I appreciate it very much! :)
I just have one request, namely that you only use “Req:” or similar
short prefix for feature requests. “Small Feature Request” is a little
long, and probably causes the actual subject to be clipped in many
clients (at least in mine ;) ).
Kind regards Allan
The font I used is called "Myriad Pro Semibold", which is included in
all, or at least most of Adobe's Products... by the way, Apple uses
the same font for all of their products :)
best regards,
Wolfgang
Am 15.02.2005 um 13:00 schrieb textmate-request(a)lists.macromates.com:
> On Feb 15, 2005, at 4:00, fatal wrote:
>
>> (BTW, does somebody know the font used for the type names on the
>> actual icons (CSS, PHP,etc.)?)
>
> There is an icon kit with templates which I think include the font
> setting, though I don't know if Wolfgang used this:
> http://mikeash.com/AquaIconKit1.1.dmg (and I don't have photoshop or
> similar myself, so I can't even read out that font setting for you ;)
> ).
>TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n
's#.*include/\(.*\)#\1#p'|tr / .` \
Allan,
I couldn't get this to work. The TM_PACKAGE is always blank.
You can see the command and template here
http://paste.lisp.org/display/5811
Am I doing something wrong?
Don't know if this is a feature yet (?), I haven't found anything like
it in the docs or in the menus...
In jEdit I used a feature all the time that auto-indented my code blocks
by pressng TAB. Is this available already, and if not, any plans for
future releases?
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
+55 (21) 9127-2819
ben(a)incomumdesign.com
http://www.incomumdesign.com
On Feb 14, 2005, at 9:01 PM, Jarkko Laine wrote:
> On 14.2.2005, at 20:11, James Edward Gray II wrote:
>
>> I'm really digging into snippets (and loving them, by the way). One
>> question though, I see $0s used in places and I'm not sure what it
>> does. Could someone explain it to me? Thanks.
>
> $0 is the place where the cursor is placed after the snippet has been
> run.
Really? I thought that was $1. Then you can tab to $2, $3, etc.
Maybe I didn't ask my question right. Let me try again. I understand
$1 through $9, but I didn't know there was a $0 zero and in playing
around it seems to behave slightly different from the others. My
question is, how does $0 relate to $1 through $9?
Thanks.
James Edward Gray II