It seems that folding isn't working in CSS documents. I'm using 1.01b1,
but didn't try folding in 1.0 so I don't know if this new or not. There
are down arrows next to each selector, but never any up arrows...
On 11. Oct 2004, at 2:02, Aaron Swartz wrote:
> The Behavior menu appears to be entirely undocumented. What do its
> menu items do?
Would be nice if such questions where sent to the mailing list! :)
Freehanded edit: allow cursor to be moved past end-of-line
Overwrite mode: overwrite instead of insert typed characters
Smart typing: insert ), }, ", etc. when typing (, {, ", etc.
Tab emulation: use spaces instead of tabs (and treat multiple
spaces as a tab)
Indented paste: will re-indent pasted text to match current
context
Tab expands snippets: controls if a snippet can be inserted by typing
its trigger and pressing tab.
Kind regards Allan
Update of my previous C/C++/Objective-C bundle update.
* Correct C99 keywords and C++ ISO 646 keywords.
* Correct handling of whitespace around preprocessor keywords.
* The makefile syntax module now lives in a new Unix bundle, which also
contains both a generic shell script syntax and an "old-style" plist
syntax.
<http://www.cjack.com/tm/C-and-Unix%20tmbundles.zip>
Share and Enjoy,
Chris
There is a beta version of the upcoming 1.0.1 release with several bug
fixes and small feature inclusions. Normaly, TextMate doesn't check for
beta versions with the automatic version check system, but if you wish
to have it do so you can type the following in your favorite shell:
defaults write com.macromates.textmate OakCheckForBetaVersions 1
..and 0 to disable beta check again of course. When starting TextMate
the first time after download, a window with release notes will
automatically open to show you the latest changes additions and bug
fixes. Have fun :-).
PS: If you for some reason can't get the beta version from within
TextMate, the URL is:
http://macromates.com/textmate/files/TextMate_1.0.1b1.dmg
--
Sune.
"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
http://cyanite.org -- Content follows ;-).
Thanks to both Ian and Phillip for kicking us into gear about doing
something to track both bundles and other end-user innovation points.
We've now put up the official wiki at:
http://wiki.macromates.com/textmate/
It's of course free to edit for all, so please do add pointers to more
bundles, improve on those that are, and otherwise take advantage of the
shared space.
Enjoy!
--
David Heinemeier Hansson,
http://www.rubyonrails.org/ -- Web-application framework for Ruby
http://www.instiki.org/ -- A No-Step-Three Wiki in Ruby
http://macromates.com/ -- TextMate: Code and markup editor for OS
X
http://www.basecamphq.com/ -- Web-based Project Management
http://www.loudthinking.com/ -- Broadcasting Brain
http://www.nextangle.com/ -- Development & Consulting Services
I'm experiencing a very annoying (and productivity destroying) delay
everytime I switch to TextMate from another application. This happens
when I have about 2 windows with ~30 files in each drawer. Only 2-3
open files in each window though.
Has anyone else seen this?
/ Carl-Johan
On 9. Oct 2004, at 22:34, Isaac Rivera wrote:
> I came up with a pretty decent syntax file mysefl.
Okay, Rob also did some ActionScript support:
http://one.textdrive.com/pipermail/textmate/2004-October/000422.html
> Trying to do a class template and have gotten most of it.
>
> Can you tell me how to have the perl script input the date in the
> template file?
>
> Its not one of the shell variables, I know, but maybe its accessible
> to the script.
These questions really belong on the ML, so I'm cc'ing the list :)
You can add your own variables to the environment by changing the
command in the Info.plist, for example here I setup TM_DATE to be
YYYY-MM-DD:
{
name = "Date Test";
extension = "txt";
command = "[ -f $TM_NEW_FILE ] || TM_DATE=`date +%Y-%m-%d` perl -pe
's/\\$\\{([^}]*)\\}/$ENV{$1}/g' <index.html >\"$TM_NEW_FILE\"";
}
So it's basically just 'var=value' before the perl command (you can set
multiple variables). And the back-ticks (`) means that it's a command
to execute, so TM_DATE is set to the result of running date +%Y-%m-%d.
All this is of course related to bash and not really TextMate.
Another neat one is the full user name which we can get with niutil,
here's an example:
command = "[ -f $TM_NEW_FILE ] || TM_DATE=`date +%Y-%m-%d`
TM_USERNAME=`niutil -readprop / /users/\\$USER realname` perl -pe
's/\\$\\{([^}]*)\\}/$ENV{$1}/g' <index.html >\"$TM_NEW_FILE\"";
One important note: the commands above are prefixed with '[ -f
$TM_NEW_FILE ] || '. This is to check if the file already exists, and
if so, it won't do the "or" branch (i.e. overwrite it).
I really should have added this to the default templates! I'll be
adding it to all templates shipping with 1.0.1 -- if you create your
own templates, please add it to avoid templates from overwriting files!
The reason TextMate doesn't perform this check is, that the template
could generate multiple files, or not generate TM_NEW_FILE at al.
Also, remember that you're not limited to using perl as command. You
can write your templates in e.g. PHP and use php as the command to
generate them.
Kind regards Allan
On Oct 9, 2004, at 8:25 PM, Alan wrote:
> So what should escape do? And which dialog box are you talking about?
I'd like the escape key to map to the cancel button. Referring here to
the save dialog box; excape/cancel in the open box works fine. :)
Hi there
I'd love to see Textmate notify me if I attempt to set a keybinding
that the application is already using.
At present, I can enter the same keybinding twice (or more) without
any notification. BBEdit alerts you if you attempt to do this and it
is quite helpful.
I'm guessing that if you do enter a shortcut that has already been
taken, TextMate fails to then display it in the corresponding menu?
bongoman