I've just started to try out TextMate :). I've created a little snippet
called vam (short for variable and method) that looks like this
{
int ${1:var};
}
-(void) set${1:var}:(int) n;
So when I enter vam and hit tab, I am presented with the following chunk
{
int var;
}
-(void) setvar:(int) n;
where var is highlighted. If I start to type numerator the chunk changes to
{
int numerator;
}
-(void) setnumerator:(int) n;
However I would like setnumerator to be outputted as setNumerator.
Is there a way to do this?
Thanks Bob
Hey there
I recently had a look at the GetBundle bundle and liked the fact,
that you can have a look at the available bundles online and then
select which ones to install. I also like the growl notification (why
doesn't it use my default bezel?).
I'm currently updating my bundles manually via svn from http://
macromates.com/svn/Bundles/trunk and always install all bundles
including the support folder, plugins, etc. It takes up some space on
my HD but that way I'm sure, all the bundles work properly. I install
them in my "/Library/Application\ Support/Textmate/" folder. If I
remember correctly, this is the recommended place to install
additional/updated bundles. The question I asked myself is, why
GetBundle installs its bundles into "~/Library/Application\ Support/
Textmate/Pristine\ copy/Bundles"? -- It would be nice, if there was
some kind of setting or shell variable, where you could set where to
install the bundles (for all users or just the current one). The way
it's handled now, the bundles available via svn and the ones I
install manually via download and double-click get mixed up in the
same folder (Pristine copy). Also I don't now how the updating of the
Support or PlugIn folders gets handled via GetBundle. I'm reading a
lot about conflicts between wrong versions of the dialog plugin and
bundles which depend on the newest version of the plugin on this list.
Maybe someone can shed some light on these things? Maybe a help file
for this bundle wouldn't be wrong also, since it's targeted to users
which aren't familiar with svn and how this whole bundle thing works.
Thanks in advance!
Oliver
Hi everyone,
You may have followed that I recently manage to update my
bundles after a long period using outdated ones :D
And then, I noticed that snippets for inserting images and
link in the HTML bundle have dissapeared…
I created my own snippets to replace them; it's no big
deal… But I was curious why those snippets have
dissapeared ?? Am I the only one using them ? :)
TIA
I tried to go to the preferences dialog in the Latex bundle, and
nothing happens. I see "/bin/bash: line 3: configure.py: command
not found".
Kevin Horton
Ottawa, Canada
It seems there is no way to have parts of a capture scoped by calls
to $self or #repository elements, which means that complex captures
get to have many capture elements.
It would be handy if there was a code for language grammar capture
numbering, so that these are more resilient and self-healing when the
regexp underlying their definition changes.
What I would suggest for TM2 is something like a code for "next
group" so instead of explicitly numbering all matches, only non-
sequential elements are explicitly numbered, and all others are self
numbering. A nice code would be "#". A nice twist would be if this
supported skipping elements when suffixed with an addition "#++" or "#
+n"
Then, if we change a match from, say:
match = '(a)(b)(c)';
To say:
match = '(a)(a1)(b)(c)';
Then the numbering, instead of manually being recoded from this:
1 = { name = 'a'; };
2 = { name = 'b'; };
3 = { name = 'c'; };
to this:
1 = { name = 'a'; };
2 = { name = 'a1'; };
3 = { name = 'b'; };
4 = { name = 'c'; };
Could simply stay as this (where # is a code for "next sequential
number"
1 = { name = 'a'; };
# = { name = 'a1'; };
# = { name = 'b'; };
# = { name = 'c'; };
In the more complex case,
1 = { name = 'a'; };
# = { name = 'a1'; };
#+1 = { name = 'b'; }; //skips a group
# = { name = 'c'; };
Hopefully someone can help me with the following simple problem.
I recently moved to a gmail account for my mailing list
subscriptions. I have enabled POP access in gmail, and set Mail.app
to read those messages. Everything works just fine, except for the
fact that I never get to see my own messages to the list, even though
I have set my list preferences so as to receive them. Anyone
encountered this before?
Haris
Hi,
Does anyone know how to use the svn commit window from the keyboard,
I know the enter key does the commit but is there anyway to select or
deselect files for committing without using the mouse?
cheers
jebw
Hi,
I often use the following commands. Maybe there are other users who
do find them useful too.
###
Show duplicate Lines
Show duplicate Lines (ign. leading spaces&tabs)
Bound to F5
Both commands (more or less a one-liner in bash ;) display as a tool
tip only those lines which occurs at least twice in the document sorted.
###
Sort Table by Column
Sort Table by Column numerically
Bound to F5
It is often the case that I have to sort tables (delimiter TAB) by a
specific column in a document alphanumerically or numerically.
If your document contains only a table you can place the caret in
that column which should be the key for sorting.
If you select a portion of a table it will ask you for the column as
inline menu.
Best,
Hans
Hi,
here comes the latest version of the tmCommand 'FileName Completion'.
I speed up it a bit, improved some tiny things, simplified it, fixed
some bugs, and I changed the key binding to SHIFT+TAB.
For more details see the leading comment within this tmCommand or
have a look at
http://www.bibiko.de/TM_InsertFilePathNames.mov (ca. 5.7MB without
sound but with written hints ;)
Please feel free to mail me if there are bugs or wishes or ... ;)
Regards,
Hans
> [CHANGED] The right-pointing folding arrow is another color to
make it visually distinct from the up/down arrows.
Waayyyyyy to heavy, this needs to be much more subtle! That eye-
piercing orange got to go!
Here is how most of my window look now (yes, I usually have most
everything folded):