Just downloaded TextMate today after searching high and low for a text
editor for OS X that has folding. I didn't realize it was a such a
sought-after but generally unavailable feature. I've been hand-coding
in Dreamweaver, which i like for its auto-complete and hints, but
beyond that I haven't really had much luck marrying HTML and PHP in its
framework.
Anyway, to my questions, and thanks for bearing with me as I explore
Text Mate, which looks great. If it's as good as I think it's going to
be, I'll gladly pony up cash for TM.
As far as I can tell, Text Mate won't "remember" code blocks that
you've marked for folding unless you change something in the plist
files with the respective syntax bundles. Yes? (I was surprised that
I could fold up lots of code, save the file, and then lose all of my
foldings when I reoped the file. At first I thought this was because I
hadn't put the file into a project and saved the whole project.)
Anyway, I basically have no idea what I'm doing. Is there some easy
way of specifying the the opening and closing expressions for folding?
Does this require that you have a good understanding of regular
expressions?
I started out viewing my code with HTML (PHP) syntax, which
automatically recognizes some tag structures. When I switched to PHP
syntax, which I like better, it doesn't seem to recognize anything at
all. How does one add or modify the plist information so that TM will
"remember" that I folded blocks such as:
<?php
...
?>
or even
<form>
...
</form>
?
Thanks for any help you can provide. Sorry to be so verbose.
Chas
If a Latex document is split into multiple files, the "to PDF" command
(as advertised on the blog), generates an error. It worked beautifully
previously (B4) - please could this be fixed in the next beta.
Also, there are now two latex bundles (LaTeX and Latex), which is the
most up-to-date?
Thanks,
Tim
Ok,
Possibly very obvious, ...but I can't figure out what key (screenshot
attached) this shortcut refers to.
I'm using a Powerbook. Does everyone know this but me?
Thanks,
Vic
I have a number of Commands to insert some text into the document, but
all of them have a couple of 'side-effects' that I don't want.
1. The inserted text is always selected, and I would prefer it to not
be selected.
2. There is always a New line character behind the input, whereas I
would just want the cursor to remain immediately behind the inserted
text on the same line.
What is it that I'm missing or doing wrong ?? Any help would be
gratefully received.
Command Examples:
INSERT DATE:
Save: Nothing
Command: echo `date +%Y-%m-%d`
Input: None
Output: Tried all versions ( Insert as Snippet / Replace Selected text
/ etc )
INSERT PATH2FILE:
Save: Nothing
Command: echo $TM_FILEPATH | sed
"s|^$TM_USER_ROOT_DIRECTORY\(.*\)\$|\1|"
Input: None
Output: Tried all versions ( Insert as Snippet / Replace Selected text
/ etc )
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
We've talked about this before, but I don't think anything became of
it. Here's the idea:
Create a preference so that new tabs are not created for every item
clicked in the project drawer. To create a tab you would have to
shift-command-click or something like that. Without the modified click,
the current file would open either in a special "current item" tab on
the left, that would simply be replaced by whichever item is clicked on
next.
This is similar to Safari's tabbed page behavior.
For super-organized people that remember to close all the tabs they
don't really need, they can choose not use the preference and retain
the current behavior.
For people like me that quickly reference other files and then forget
to close them, this would be a nice way to avoid unnecessary tab
clutter.
Ed
Especially when using things like the Subversion bundle, these files
showing up in the 'Open Recent' makes the feature approach useless. Is
there any way that these files could be ignored for this?
--
Robert M. Zigweid rzigweid(a)zigweid.net
http://rzigweid.zigweid.net
I'm starting to dig a little deeper and let TextMate do more for me.
Next stop, templates. While we're there, here are my questions about
them:
1. Can I control where my cursor appears after the template is filled
in?
and
2. In the project's New File dialog, the template list is in a
predefined order and the top ten items have key shortcuts. How can I
affect this listing, to get my templates were I want them?
Thanks.
James Edward Gray II
Thank you!
BTW I was dubious about the pen in the icon previously, but in my dock
it looks pretty good. (I've liked all the recent designs actually.)
Paul
The bundle is just gorgeous, especially for things like "svn blame".
It really shows the potential of the HTML output.
However.
svn is extremely slow on my computer (and perhaps on yours). Is there
any way to either (1) put up a status bar (cocoadialog will do it)
and/or (2) make the thing run in the background or otherwise not
block TM from running?
I'm thinking (2) is impossible unless Allan reworks how commands are called.
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
I took my own stab at an icon this morning, after reading Apple's
Guidelines. It didn't turn out at nice as anything that's been
presented here already, but I decided to post it anyway in case it
gives someone with more talent than me any ideas.
http://www.grayproductions.net/ruby/images/TextMate_Icon.png
In my defense, it looked a lot better when I was still playing with it
at large sizes in the ray tracer. :) You could almost read the code
and you could see the brushed metals. Ah well, it seemed like a good
idea at the time.
James Edward Gray II