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 ;-).
Hello - new b question:
Is there a way to:
1 - route the preview browser through a local server that server side
capabilities are displayed
2 - turn off display of code such as PHP that the browser currently
interpets as text.
Thanks
_: thanks
from
__: mikeBoutté
mobile
__: 615 969 9654
http
__: mikeBoutté dot Com [ http://www.mikeboutte.com ]
email
__: Mike at mikeBoutté dot Com [ mike(a)mikeboutte.com ]
aim
__: mrbigbooties [ aim://AddBuddy?ScreenName=mrbigbooties ]
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
Hi there
Am wanting to create a macro or snippet to allow me to comment out a
selection thus:
/* commented selection */
But am a little unclear if this is via a macro or a snippet. Either
way, I'm having trouble seting this up.
Any clues appreciated...
bongoman
I like that there's a per-file header added when you drop a bunch of
files into a new txt doc.
Where would I go to change the appearance and content of that header?
tx,
mm
--
Merlin Mann
43Folders.com
Hello,
I've setup a wiki[1] to collect various TextMate add-ons. The general
layout is still under construction, but feel free to modify anything.
This is obviously temporary solution until macromates configure their
own repository. I'll make sure that useful content gets transfered
later on. Also the wiki is not intended to replace Ian Phillips bundle
page[2], but rather to complement it.
I took a liberty of using TextMate icon. Please tell me if that's not
ok, and I'll remove it.
[1] http://glyf.org/TextMate/
[2] http://ianp.org/articles/textmate.html
---
Philipf
I quickly created an alternate icon that is distinctive in the dock and
says a little bit about what the application does. (It's not brilliant,
but I think it's functionally a little better). The icon may be used
freely for non-commercial purposes.
Alternate Textmate icon
http://www.spahr.org/share/textmate_icon.zip
Updated Smarty Syntax (same URL as previous version)
http://www.spahr.org/share/PHP_Smarty.tmbundle.zip
James.
I like that there's a per-file header added when you drop a bunch of
files into a new txt doc.
Where would I go to change the appearance and content of that header?
tx,
mm
--
Merlin Mann
43Folders.com
Hi all,
There were a couple of bugs in the Snippets, Commands, Macros and
Languages bundled with 1.0 (What can I say, I was in a rush!).
I'd like to use this thread to document any problems you've encountered
or suggestions you have specifically in regards to the Bundles.
Please, no feature requests, or anything related to the general TM
application.
Here's what I have so far:
Snippets:
- br and hr snippets are redundant (use "Make HTML Tag 2" command
instead)
- meta snippet didn't have any placeholders
- PHP function snippet didn't have a placeholder for the function name
- The three PHP tag openers are a little much... will make one
redundant, and people can customise top suit their own preferences
Languages:
- swapped SCRIPT and STYLE patterns around the wrong way in HTML.plist
Macros:
- nothing yet
Commands:
- rename "Reload in Safari" to "Refresh Safari", since that's all it
does
- add a php.net manual look-up command for the current word
I'd appreciate any suggestions for more snippets, macros and commands
to add to the default set. Please keep them all in this thread, so
it's easy for me to keep track of what's going on. Anything that can
help people speed up their productivity or solve repetitive or boring
tasks is a great candidate.
Justin French
It´s great to finally have folding in a native osx application.
Although the current implementation has a few usability issues:
First, the folding column needs to be rightmost in the gutter,
next to the text. Currently, when line numbering is active,
matching folding widget with line is harder than it could be.
Second, the present top and bottom widget icons are too
similar, making it hard to read a structure overview off the
document. It´s primary function is to show start or end of
the block, thus arrow direction must be the most visible
feature.
In addition i suggest a highlighting feature, allowing us to close
a fold(?) by clicking anywhere on a line between between
folding icons. A mouse over effect shows what parts will be affected.
This will allow easier matching of open and closing arrows, as well
as reducing mouse travel.
View the attached mock-up for a clearer, visual description.
(note in the image I am experimenting with a x-code style top-bar as well ;)
hp.
Greetings!
So, have anyone started to make some custom syntax definitions for the
various laguages out there? Lets share!
I wish I could say "I'll start" but I've just started on one so I'm
still wrapping my head around it. It still baffles me why colours
arent global (like, often i want the same color for strings regardless
of laguages for instance)
(apologies if this has been bought up already, I'm the list newbie)
Cheers,
johan
--
Johan Sørensen
Professional Futurist
www.johansorensen.com
I added an alias in my .tcshrc file to open files similar to the
bbedit command line utility.
(alias tm open -a TextMate)
When trying it out, i figured i´d test opening folders using my new command.
so typing "tm ." worked great! but unfortunately I was in my home folder:
TextMate halted, loading some 20GB worth of files to my new project.
And my point is is :) : There ought to be some handling of this
situation (when dragging folders to the dock icon as well) either
trough a warning, an option to add none-recursively, abort button in
shelf etc.
Greetings,
It seems like people are starting to go hog wild creating TM bundles,
so I have started a (currently very crude) bundle editor for TextMate
last night, which looks like this:
(note: this is not a Photoshop mockup, it's an actual screenshot of a
running Cocoa application ;) ).
If you guys think that this kind of tool would be useful until Allan
and friends come up with an integrated bundle editor, let me know.
Allan and friends, if you have something like this up your sleeves that
you are ready to ship, like, in 2 weeks, let me know as well ;)
--
Luc Heinrich - lucsky(a)mac.com - http://www.honk-honk.com
As well as jumping to the correct line in files when there's a
compilation error, it now does the same with NAnt builds (for the csc
task at least).
Also included now:
Selective builds: in your nant.build file highlight a target and it
will be built, this uses the $TM_CURRENT_WORD variable, if nothing's
selected it will try to build "all" as before.
Build File syntax highlighting.
Enjoy,
Ian.
#ifndef __COMMON_SENSE__ | Ian Phillips
#include <std_disclaimer> | http://ianp.org
#endif
Hey,
This might have come up already, but I think it would helpful to have a
single page that collects (or at least points to) all the available
add-ons folks have put together for TextMate, such as bundles,
syntaxes, snippets, and so on. A two-line summary of what it does (with
screenshots where possible) would also be great.
I agree that the power of TextMate comes from unlocking its _insane_
amount of configurability. But, I also suspect that some of the
nay-sayers--especially those less experienced with the power of a
shell--would be much more inspired if they saw what they could *do*
with TM (without having to build the actual widgets themselves).
For inspiration, I think Alcor has done a nice job with [Quicksilver's
plug-in page][1], which folks can sort by alpha, popularity, or update
freshness. Best of all, users can click to install any of the plug-ins
right from that page. Takes a lot of the mystery out of the process.
Just one data point. If ya'all need help with bandwidth or what have
you, please let me know how I can pitch in. I am, as the kids say, a
fan.
[1]: http://quicksilver.blacktree.com/plugins.php (Quicksilver's
plug-in page)
--
Merlin Mann
43Folders.com
Hi
It would be excellent if one could set a custom selection color in
syntax plists. I was rather excited to see the feature under View: Show
Color Settings, but unimpressed that it was not used when syntax
coloring was enabled. Might there be an undocumented property to set it
in a syntax file?
- craig davey
I'm trying to work out a couple of bugs in my XML syntax. I may have
uncovered a bug in the folding code, or I may just be suffering from
regexp brainfade...
What I was originally trying to accomplish was two types of folding. I
wanted the following to fold up:
(begin) <foo>
<bar />
(end) </foo>
... and I also wanted this to fold:
(begin) <foo key="value"
(end) key1="value" />
The latter would ideally fold to
<foo key="value"(...)
Am I correct in believing that this second form can't be accomplished
with the simple folding marker regexps available now? The help doc
says that it expects the end folding marker to be on the same indent
level as the start folding marker, and the second form definitely is
not.
Now, for the part that may be a bug:
I haven't found a regexp that will make TM *ignore* the abbreviated
(but multi-line) XML element above (the 2nd one). Perhaps this is all
well and good, except that TM seems to rather arbitrarily match the
would-be end tag for the shortened element. I'll annotate the
screenshot below:
Line 62 starts one of those singleton elements. Note that there is no
closing tag, but at line 67, another element begins as the same indent
level. In the current state, if I use the folding start button in the
gutter at line 62, TM folds the document to line 72 (the end of the
first </target> text). If I fold the "clean" target (lines 67 to 71)
and then fold the <target> at line 62, TM folds all the way to line 92.
It seems to me that TM should stop searching for a match if a new start
fold marker is discovered at the same indent level. Is that correct,
or are my regexps just more sloppy than I thought they were? :-)
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/