Hello everyone on the list,
I am just wondering why the text anti-aliasing in Textmate is so different from XCode: in Textmate, the characters are much bolder than in XCode. For example, I love LuxiMono. It is a great font for displaying code. It renders beautifully in XCode, but is much to thick in Textmate :(
Any way to change that (at least make it customizable)?
Otherwise Textmate is really cool.
Cheers!
=============================================
Jean-Marc Borer
7 av. de Vaudagne
CH-1217 Meyrin
Mob: +41 79 213 9937
Tel: +41 22 782 0866
=============================================
Hi all,
I've been working with too many prototype objects in javascript of
late, and as some of you may know, they are generally declared as
follows:
Sound.prototype.play = function() {
...
}
All I did was took the existing function regex, and moved a couple of
the captures:
{ name = 'meta.function.js';
match = '\b([a-zA-Z_?\.]+\w*)\s+=\s+\b(function)?\s*\((.*?)\)';
captures =
{ 1 = { name = 'entity.name.function.js'; };
2 = { name = 'storage.type.function.js'; };
3 = { name = 'variable.parameter.function.js'; };
};
},
It could probably be nicer, but pasting that in after the original
function code (in the JS language def file) will give you properly
highlighted function declarations :)
Tony Arnold
http://tonyarnold.com/
“The university was great. They gave us money and facilities,
but we didn’t have to produce anything. I’ve worked in the
private sector. You don’t know what it’s like out there. They
expect results.” -- Dr Ray Stanz, Ghostbusters
Trying to get a simple command that displays a webpage with a flash
file in it. `cat /path/to/file.html` gives me a blank screen, as does
`curl http://mydomain.com/path/to/file.html`. However, running curl to
an old url that provides a link to the page does load the movie.
Any idea what's up?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
> "create document" -- why not? :)
Because you cant click on the lines in a new document window to have it take
you to the correct line in the file, very useful for debugging that is.
Chris Jenkins
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
I keep hitting the 'Toggle Comment' command with no selection,
expecting it to work on the current line only, but it does the whole
file. I find this behavior counter-intuitive. Does anyone else? And
if so, is it possible to have it changed?
-pete
--
(peter.royal|osi)(a)pobox.com - http://fotap.org/~osi
Hi,
I just noticed a problem when creating a new file from the Project drawer.
I right clicked at the top level and created a file which appears to
be at the top level. However I just realised that it actually created
the file in the last folder I was working in.
See attached images where the file LICENSE appears to be at the
top-level but, svnX finds it under themes/moxie/templates/publish/
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
Hi all.. I've been developing a web-app using TextMate and just
recently decided to go and create a project (up to that time I've
just been browsing for the file(s) to edit directly). Anyway,
I found that once the project was created and I imported my existing
files (>100-200 of them I'd guess) and opened perhaps 4-5 of them
in the same tabbed window that bringing TextMate into the foreground
caused a ~3-5 second delay while it was doing some sort of network
activity.. What I mean by bringing TextMate into the foreground is that
I've got it displayed on the screen, and I bring Safari into the
foreground so I can test an updated page.. I then switch back to TM
to edit something.. If this switch back and forth is <5-8 seconds, then
TM seems to be fine.. Anything longer seems to cause this long delay
before I can type or change tabbed windows,etc.
Interestingly enough, I can have these same 4-5 files open without the
project paradigm and not see these same delays..
I should also tell you that my file server is a Linux box being remotely
mounted via Samba (smb://) and that I've got the metadata disabled in TM.
This is all being done via 802.11b on a 667Mhz Powerbook if that helps..
I don't recall the version of TM I'm using -- it was automatically downloaded
for me about a week or so ago. Any ideas on how to get rid of this delay
would be greatly appreciated..
-- Rick
I just came across this today: It would be handy to limit a "find in
project" search to only those files within selected folders.
Interface-wise, it would be cool if you could simply command-click
the folders or files you want to search through in the project files
pane and then choose "find in project". Perhaps the "Find in
Project" menu item could change to "Find in Files" if more than one
file is explicitly selected?
Duane Johnson
(canadaduane)
It would be really cool if TextMate could automatically pull the
latest bundles from svn in the same fashion as it now pulls builds.
I am always updating my bundles...often every day...and this would
save me some time.
>
> >>>* Are there plans to add support for the symbols popup for php?
> *>>* For me it show PHP function names.
> *>* Could it be because I am using tabs rather then spaces?
> *
> No -- if you place the caret on a function name and press ctrl-shift
> P, does it show entity.name.function as part of the scope?
>
> only when i use spaces
>
> Subject: Re: [TxMt] symbols and php
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <44DC6269-3E8A-41E0-B90F-10232F21E614(a)macromates.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On 15/11/2005, at 23.59, Samuel DeVore wrote:
>
> > Are there plans to add support for the symbols popup for php?
>
> For me it show PHP function names.
>
>
Could it be because I am using tabs rather then spaces?
Is ³Show in Separate Window² really deprecated? It seems so useful, is
something going to replace it? The HTML output option doesn¹t seem to really
come close.
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi list,
I have some files into a Devonthink database. Now, a devonthink
database is just a bundle with .dtbase extension. If you right click
on it and select "show package contents" you can see the internal
files, just like app bundles.
But when I try to open them from inside Devonthink, TextMate just
ignores them. I have to manually drag them on the desktop, open and
edit them and then put them back in the database.
Is there a workaround?
Thanks
Kostas
How would people feel about this diff in the C syntax bundle?
It will work on functions of the form:
int
main () {
but not on
int main()
What would be the appropriate regexp for making it work in both
cases? What I'm trying to do is get the functions to show up in the
Symbols menu.
The other thing that's broken with C is that #defines which are not
functions are incorrectly marked as functions. For instance:
#define FOOBAR 10
adds FOOBAR to the symbols menu. I think that's because the regexp
that handles #defines tries to handle the case where the #define is
really a macro
#define MIN(a,b) ((a)<(b)?(a):(b))
but applies the name even if the syntax doesn't match... I'll take a
look at this later this week if no one has a workaround...
@@ -140,6 +140,20 @@
</array>
</dict>
<dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+
<string>entity.name.function.c</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>^([a-zA-Z_][a-zA-Z0-9_]*)\s*\(</string>
+ <key>name</key>
+ <string>source.c.function</string>
+ </dict>
+ <dict>
<key>begin</key>
<string>^\s*#\s*(define)\s+([a-zA-Z_][a-zA-
Z0-9_]*)(?:\(
((?:\s*[a-zA-Z_][a-zA-Z0-9_]*\s*,?)*)\)|\b)</string>
<key>captures</key>
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
A few days ago the create new file button in the drawer stopped
working. Whenever I tried to create a new file, TM crashed. Then
whenever I'd go into a terminal to fiddle, I'd get some error (sorry
to so vague) about resource fork not being available.
I would force crash textmate, and killall bash, and all would work
again - but each time I tried to create a file (I sure hope it works
this time...), I had to do it all over again.
Last night I made the same error, textmate crashed, but I never got
to killing the runaway bash process. I woke up and my computer fan
was just screaming, a quick top showed a runaway bash process going
at 75% cpu and fifty others! Here's a snip:
--------------------------------
kjell 26675 74.2 0.1 27880 900 ?? R 1:09AM
430:19.31 /bin/bash -c touch "$TM_NEW_FILE"
kjell 26571 0.4 0.1 27880 980 p3 S 12:57AM 0:00.12
-bash
kjell 26606 0.0 0.1 27880 764 ?? S 1:09AM
0:00.04 /bin/bash -c touch "$TM_NEW_FILE"
kjell 26608 0.0 0.1 27880 508 ?? S 1:09AM
0:00.01 /bin/bash -c touch "$TM_NEW_FILE"
[35 more like the last two...]
--------------------------------
What could be going wrong? I'd love to have it fixed, if possible.
The problem has reared it's ugly head with both beta1.17 and r421,
and is getting to be a real pain. Anyone have an idea what's wrong?
Kjell [http://station11.net]
I just posted an FAQ question with regard to the subject line that
was (almost) instantaneously answered. Thanks to whoever was
responsible for that! :)
I'm trying to figure out how I might get TextMate to run on my new
Mac/Intel box and I've run in to some problems. I documented the
error message I received from build 731 at http://inquirylabs.com.
However, as of build 753, I now receive no error message at all. The
application crashes without a sputter.
Is there anything I can send that would help diagnose or debug this
situation? Thanks,
Duane Johnson
(canadaduane)
Hi,
Type and select the string
"£"
in an html document
Hit cmd-shift-& and choose "Convert to named entity"
expected: british pounds sterling symbol
obtained: ampersand (&)
reference: <http://www.w3.org/TR/WD-entities-961125>
<!ENTITY pound CDATA "£" -- pound sterling sign -->
<!ENTITY amp CDATA "&" -- ampersand, U0026 ISOnum -->
Not really sure anything can be done to help it if we want the
current set of features, but is you type something like this in Ruby:
<<-HTML
<style>
HTML
foo = 21
The 'foo = 21' part and the rest of the document is colored like a
style-sheet. Normally this would be incorrect nesting of course, but
for heredocs in languages, there can be good reasons for this (and
it's in fact used in tmruby).
-- Sune.
Is there any chance of being able to set a preference where the code
collapsing is not based on indentation? To be honest I'm not sure
how other applications have handled collapsing programmatically, but
basing it on indentation seems to be a bit buggy and doesn't work for
every situation.
Thanks,
Colin D. Devroe
Blog: http://theubergeeks.net/
Photos: http://flickr.com/photos/cdevroe/
I guess this is just a bug, but if you drop a (real) folder into a textmate
virtual project folder, you cannot then move it to the top level.
____________________
"Let the people decide through the marketplace mechanisms what they
wish to see and hear. Why is there this national obsession to
tamper with this box of transistors and tubes when we don't do the
same for 'Time' magazine?"
-- Mark Fowler, former FCC Chairman
Allan,
Just in case you hadn¹t spotted this...
It seems as though the v731 update, which greys out commands when there isnt
a document open also greys out items under the New From Template menu
command, which presumably isnt supposed to happen.
Regards
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi there,
a question has occurred to me while trying to open a project from the
command line: Is there any way to open a project with mate (I can't
see any switch that does so) or do I have to use OSX's open command?
Would you consider, Allan, adding support for this? It'd avoid users
having to switch depending on the file name (file type,actually) when
invoking mate from a script
Cheers
Victor
--
Victor Jalencas <Victor.Jalencas(a)gmail.com>
Two great features in the last release. I really appreciate reveal in
project and the symbol popup is great.
Thanks Allan.
M
--
Matt Mower :: http://matt.blogs.it/
Hi All,
Has anyone else experienced an unresponsive find dialog?
Occasionally, when I bring up find, it will let me type in the find
entry box, but clicking on any of the UI elements does nothing.
Sometimes I can hit escape to make the dialog go away, but usually I
can't do anything to make it go away or work and have to restart
TextMate. This is common for me on both of my macs. But maybe its
something in my setup. I'm curious if anyone else has experienced
this to help track down what might be causing it. Thanks _matt
A few times I've wished this feature was present. I have huge projects with
many folders and the files can number in the thousands, sometimes with the
same names but in different folders (i.e index.php).
At times I'd like to go to the folder in the drawer that a currently opened
file is from (to open another related file for instance) but that folder
and file may exist several layers deep in another folder that is now closed.
It would be nice to have a command (either from menu or right clickable
menu) that will open the folder hierarchy to expose the folder and file
list.
Thanks,
Ed
Here's a theme I made for personal use, but I've been enjoying it so much I
thought I'd share it around. I've always been fond of dark backgrounds, but
not *that dark. I started this one as a compromise, inspired by colored
chalk on a chalkboard.
I'd love to see three new items in the Automation submenus:
Replay Macro > Replay [name of last macro selected]
Insert Snippet -> Insert [name of last snippet selected]
Run Command -> Run [name of last command selected]
It's very common for me to have tasks where I dig out some obscure
command that I rarely use, use it repeatedly in a given session, and
then forget about it.
Keyboard shortcuts make sense for tasks that are done repeatedly --
either very often, or in repetitive bursts less often. This feature
would allow many seldom-used commands of the latter type to go without
permanent keyboard shortcuts, freeing up combos for more commonly used
commands. Obviously, these new menu choices themselves would need
keyboard shortcuts.
One subtle point: by "last * selected" I mean that this would apply
only to macros/snippets/commands manually chosen from the menus
(either the regular menus or the status bar menus). That way, other
keyboard commands wouldn't needlessly get picked up by this feature;
if you have invoked a macro/snippet/command via the keyboard, you
obviously don't need this feature to remember it.
I actually got this idea from Photoshop, which allows you to invoke
the last-used filter with cmd-F.
I love TM's combination of high power and low cruft. IMO this feature
would increase usability and at the same time decrease the need for
crazy five-key-mash keyboard shortcuts on obscure bundle features.
thanks for listening,
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
[Kindly tell me if I should move this off-list.]
> Even if you worked for free or peanuts, you would miss the many features
> that helps you write clean and solid code (the inspections), the
> integrated JUnit integration, the code formatter, the code pointer
> sharing (ideTalk plugin), etc, etc...
I did try it for a month, but it didn't quite *click* for me. I
appreciated the code sense and such, but I ultimately had a hard time
reaching for all the other options (e.g. refactoring, etc.). It could
be that I just need more programming experience in Java to "feel" the
need for these extra tools. As such, it was heard enough for me to
stop using vim!
(Also, my first point was a bit in jest. I would spend $500 for a
superior IDE I felt comfortable using, but I simply preferred the
faster response time of within TextMate rather than the general
sluggishness that came about from IntelliJ.)
> (2) Couldn't bear what IntelliJ was doing to my PowerBook's RAM.
> I guess it depends on your project's size, but it works fine on mine,
> with 1GB and java 5.
I'm actually on a 1.25 GB PowerBook. Alain, would you mind if I write
you privately, to compare our IntelliJ configurations?
thanks,
dev
Hi List,
I applaud the symbol popup!
However I never see any symbols in it, and I have never seen anything
in the 'go to symbol' window either!
What am I doing wrong?
Howdy,
For some reason, this is only happening on my laptop .. an old g3
lombard, but anyhow, I'm using the latest build of TM.
Let me set the stage here:
I'm working on some Python stuff ...
Looking @ the bottom status bar/whatever you call, the Language is
clearly marked as Python (yay).
When I open that Language menu from down there I don't see Python in
the drop down list that opens.
If I deselect the menu w/o choosing a language, it says python.
If I switch the language from python, there's no way to switch it
back -- though if I restart TM, the file is correctly flagged as python.
It looks like the Python bundle isn't loading, or isn't being
shown .. I found this weirdness because I was trying to do a cmd-
shift-v to check my syntax and it didn't do anything ... so I went
digging for it in the Commands and noticed there is no Python bundle/
choice anywhere in the bundle editor.
I moved my /Library/App Support/TextMate/Bundles stuff out to make
sure there was no collisions ... maybe it had something to do w/ the
svn bundles .. but no, still same thing.
There are no bundles in ~/Library/App Support/TextMate/Bundles
The only bundles it's using now are the ones in
/Applications/TextMate.app/Contents/SharedSupport/Bundles
(which has the Python.tmbundle)
So I'm a bit confused as to what's going on ... my desktop doesn't
display this behavior at all.
Hmm ... the laptop is running OS X.3.9
The desktop has OSX.4.3
As a side note, this behavior seems to be isolated to Python ... when
woring w/ PHP on the lappy everything seems to be fine.
That's all the info I got.
Any insight would be helpful.
Thanks,
-steve
Hey Eric and all Java Programmers using TextMate,
/me and Brian Lalor are currently working on the Java Syntax a bit.
> The big evil Java might be the last to succumb, though. Are there
> others on this list who would like to jettison Eclipse, too? What
> can we do to improve Java editing in TM? What would be your minimum
> list of features?
Eclipse is very deticated to Java. it even comes with its own
incremental compiler so that it can highlight errors before you
manually compiled the file and can do much more than a regexp
language grammar that way, like it know about types and variables all
the time and so on.
If one knows how to work with it and needs all those nice features
like a builtin debugger, great autocompletion and documentation
lookup (I love that and certainly depend on a lot of features of
eclipse) there is no way around it.
If one is new to a language on the other hand, a nice little editor
and writing all the code from hand is a good way to learn the
language, so one learns what he is doing instead of eclipse doing it
for him.
If I find the time, I will put some effort into it (Juggling with
jobs at the moment). It would be great, if some more people would
communicate here on the list or in the irc channel on how to improve
the current situation. I know you are out there, Java guys! ;)
Soryu
I'm enjoying learning how to tweak the language bundles, and there's a
lot of good information in the help files and the wiki. There's one
small thing so far that I haven't found a good way to do. I'm playing
with adding support for heredoc-style embedded HTML in PHP document
and have added this to the PHP language syntax definition (version
2.0):
{ name = 'meta.scope.heredoc';
begin = '<<<HTML';
end = '^HTML;';
patterns = ( { include = 'text.html.basic'; } );
}
(Hopefully I haven't made too many embarassing mistakes in those four
lines. It seems to work, anyway.)
What I'd like to do is also specially color the heredoc tags, just to
make the beginning and end of each block stand out. Is there a "right
way" to do that?
A second, minor point about documentation: the wiki says "With regard
to syntaxes...there is a help page on how to define these." But the
term "syntaxes" isn't actually used in the TextMate help. That didn't
stop me from finding the help pages, but this seems like something
that would be good to clean up in the wiki for consistency's sake.
What's the canonical name for these language syntax definitions?
thanks,
pb
--
paul bissex
69.55.225.29
01061-0847
72°39'71"W 42°19'42"N
Themes seem to be very popular nowadays.
Maybe we should have one big place where all the themes are stored.
There is such a place for now:
http://macromates.com/wiki/pmwiki?n=Themes.UserSubmittedThemes
As it happens, I put my own creation there, too.
So check it out, if you like it.
Soryu
Hooray, I got my license key today! :)
Are there any numbers/estimates about how many people bought or
downloaded Textmate or how many are using it, Allan?
Jonas
Hi,
I have noticed two issues being introduced in recent builds that were
not there before.
The first one was introduced in in build 715. I used to have Cmd+2
and Cmd+4 (actually Cmd+é and Cmd+' respectively since this is a
French keyboard) bound to "Set Tab Size: 2" and "4" respectively.
Using the latest build, these do not work anymore, and since there
isn't a menu item for them I can't seem to be able to re-set them (I
use APE Menu Manager for that). I tried setting them on the menu at
the bottom but it doesn't persist. Also, apparently some new
functionality has captured these key bindings.
I used to have a keyboard shortcut to fold/unfold the current block.
This only half-works anymore. It'll unfold and fold once or twice and
then stop working for that block. If I move around and do something
else, it becomes possible again. Mapping the Ctrl+F key to that
produces very strange results (this worked at some point), but using
other key combinations doesn't work either.
Neither Cmd+Shift+A nor Cmd+Shift+N to add existing files or create
new ones in the current project work anymore, even though they appear
to be bound when I right-click in the drawer.
Thanks for any help or fixes,
--
Robin Berjon
Senior Research Scientist
Expway, http://expway.com/
Hi,
First, let me say what a HUGE fan of TM I have become. I hadn't
looked at it since the spring, and I am amazed at how usable its
become (I always saw its power).
I'm trying to do run command...| html | tidy, and all it does is
delete all text in the active window -- not sure what I'm doing wrong.
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hello--
I really love the new symbol button in the status bar. I write a lot
of JavaScript using prototype methods, however, so dozens of methods
are tucked under one main function name. It would be great if these
would show up as distinct symbols (e.g. main,
main.prototype.methodName1, main.prototype.methodName2, etc.).
TextMate just keeps getting better, thanks.
--Dylan
I'm enjoying learning how to tweak the language bundles, and there's a
lot of good information in the help files and the wiki. There's one
small thing so far that I haven't found a good way to do. I'm playing
with adding support for heredoc-style embedded HTML in PHP document
and have added this to the PHP language syntax definition (version
2.0):
{ name = 'meta.scope.heredoc';
begin = '<<<HTML';
end = '^HTML;';
patterns = ( { include = 'text.html.basic'; } );
}
(Hopefully I haven't made too many embarassing mistakes in those four
lines. It seems to work, anyway.)
What I'd like to do is also specially color the heredoc tags, just to
make the beginning and end of each block stand out. Is there a right
way to do that?
A second, minor point about documentation: the wiki says "With regard
to syntaxes...there is a help page on how to define these." But the
term "syntaxes" isn't actually used in the TextMate help. That didn't
stop me from finding the help pages, but this seems like something
that would be good to clean up in the wiki for consistency's sake.
What's the canonical name for these language syntax definitions?
thanks,
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
http://macromates.com/wiki/pmwiki?n=Themes.UserSubmittedThemes
I took the liberty to add a UserSubmittedThemes section in the wiki.
I suppose everyone who has custom themes can add them.
I added a few of mine and an image for mac classic and Espresso Libre.
Wouldn't it be cool to have a seperate MRU list for .tmproj project
files? This way they won't get pushed off the list by other
independent small files. Older projects are more important than
files, IMO.
Jonas
Hi All,
I use TM for lots of HTML and I use the built-in tidy command all the
time. The behavior of the command changed recently and it is now
doing something that I was about to request as a feature! The old
behavior was that after the tidy command the current line was now the
very bottom of the file. The new behavior is that the current line
stays where I was editing. This is great! It was a serious pain to
have to find the line I was just on to keep working.
I just want to make sure that this was done on purpose and will stay
this way. Thanks!
BTW, I will soon be attending the Pragmatic Studio workshop on Ruby
on Rails so I hope to be soon using TM for Ruby. Slowly, but very
surely, I am switching over to TM. The big evil Java might be the
last to succumb, though. Are there others on this list who would like
to jettison Eclipse, too? What can we do to improve Java editing in
TM? What would be your minimum list of features?
-Eric
> Not really -- in principle there should be nothing wrong with having
> a normal (file) template generate a project, although I'd have to
> spot the .tmproj extension.
Allan,
That sounds like the way we'd like to go, seems like the right place in the
app for the feature to exist as well, we don't really have the skills to
delve into ObjC and write a plugin (although Im sure it cant be THAT hard),
so some form of script (perl or python) is probably the easiest way to go,
we are working on something that can ask the user for input and then copy
across a whole directory of files, what is it about the .tmproj extension
you need to change?
Regards
Chris
On 9/11/05 10:22, "textmate-request(a)lists.macromates.com"
<textmate-request(a)lists.macromates.com> wrote:
> Re: [TxMt] Feature request: project templates
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi all,
What's the official procedure for filing bug reports? There's this
mailing list, bugs(a)macromates.com, the various areas of the wiki, the
FogBugz site... what's the best way to deliver bug reports without
driving Allan to distraction?
thanks
pb
--
paul bissex
69.55.225.29
01061-0847
72°39'71"W 42°19'42"N
It's just taken me a while to work out that the reason a command from
Automation > Run Command > etc...
Wasn't working because I didn't have a document open - it's been a
long day ;) . I know this may be been discussed before but how
possible would it be for the commands to be greyed out when they
can't be called? Or is there a way to exec a command from the list
when there isn't a document open that I'm missing.
Cheers,
Simon
> The number one thing I miss when trying to do java coding in TM is
> code autocompletion, and code hinting. I guess codesense is the more
> common term. I think this would probably require some kind of plugin.
I'm soooooooooooooooooooo with you on this one. This would be a killer
app for any oo language (including Actionscript, which takes up the
better part of my days) with the option for strong typing. I agree that
the plugin architecture would be needed for this.
> Second on my list would be some of the common refactoring things like
> wrap in try/catch, smart rename/delete etc.
See above.
> I'd be willing to help with some of the work.
As would I.
Allan, do you have any ideas/suggestions/resources/examples/whatever
for us to start thinking about this?
I look forward to sending screenshots of this to all of my smug,
Eclipse-using colleagues ("you develop for Flash on a MAC??!!?!?!)
:D
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Allan,
Im not sure if this has been mentioned before but have you considered adding
some sort of support for project templates? Im thinking of something that
can be accessed from the File menu with no files open, that pops open a
dialog like the ³new file from template² one, a bit like the way Xcode does
it. We are in the process of making something that can be run as a command
that can sort of do this, ie: ask for user input for the project name, a
location to save the project etc and this is working quite nicely, but it
requires a document to be open to run it, which obviously isnt ideal. Do you
have any thoughts on this?
Regards
Chris Jenkins
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Because it came up yesterday and I already have the bad reputation to
like Java, here it goes:
A somewhat better Java Syntax than the included one:
Features:
- Better colouring (due to the old syntax being outdated)
- Goto Symbol popup working
Bugs:
- Keep the closing parentheses and the opening brace ) { of a method
declaration on the same line, otherwise the end pattern won't match
- More to come soon ;)
Soryu
{ scopeName = 'source.java';
comment = '
Credits to Brian Lalor, who wrote the Java syntax included in TM.
I might have adapted some of his syntax.
Soryu
Comments:
• I excluded overridden anonymous Constructors from
"declaration.function.method.java", so they won''t show up in the
Goto Symbol popup to reduce clutter a little.
';
fileTypes = ( 'java' );
foldingStartMarker = '/\*\*|\{\s*$';
foldingStopMarker = '\*\*/|^\s*\}';
patterns = (
{ name = 'comment.line.double-slash.java';
begin = '//';
end = '$';
swallow = '\\\s*\n';
},
{ name = 'comment.documentation.java';
begin = '/\*\*';
end = '\*/';
patterns = (
{ match = '\*\s*(@)(param)\s*([a-z][a-zA-Z0-9_]+)\s*';
captures =
{ 1 = { name = 'keyword.other.documentation.control'; };
2 = { name = 'keyword.other.documentation.params.java'; };
3 = { name = 'keyword.other.documentation.value.java'; };
};
},
{ match = '\*\s*(@)([a-zA-Z0-9_-]+)\s*';
captures =
{ 1 = { name = 'keyword.embedded-docs.control.java'; };
2 = { name = 'keyword.embedded-docs.params.java'; };
};
},
);
},
{ name = 'comment.block.java';
begin = '/\*';
end = '\*/';
},
{ name = 'meta.package.java';
match = '(package)\s+([^ ;]+?)\s*;';
captures =
{ 1 = { name = 'keyword.other.java'; };
2 = { name = 'entity.name.package.java'; };
};
},
{ name = 'meta.import.java';
match = '(import)\s+([^ ;]+?);';
captures =
{ 1 = { name = 'keyword.other.java'; };
2 = { name = 'entity.name.class.java'; };
};
},
{ name = 'declaration.class.java';
match = '\b(?<=class|interface|enum)\s+(\w+)';
captures = { 1 = { name = 'entity.name.class.java'; }; };
},
{ name = 'other.inheritance.class.java';
comment = 'TODO: implements has multiple Parameters, Extends does
not';
match = '\b(?<=extends|implements)\s+(\w+)';
captures = { 1 = { name = 'entity.name.class.java'; }; };
},
{ name = 'declaration.function.method.java';
begin = '\b(?<!new)\s+(\w+)\s*\(';
end = '\)\s*{';
captures = { 1 = { name = 'entity.name.function.java'; }; };
patterns = ( { include = '#keywords'; } );
},
{ name = 'constant.numeric.java';
comment = 'stolen from c syntax without looking very much at it';
match = '\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|
E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b';
},
{ name = 'keyword.flow.java';
match = '\b(if|else|while|for|return|continue|break|switch|do|goto|
case|try|catch|finally|throw)\b';
},
{ name = 'keyword.other.simple-types.java';
match = '\b(int|char|float|long|double|boolean|byte|short)\b';
},
{ name = 'keyword.operator.comparison.java';
match = '(==|!=|<=|>=|<>|<|>)';
},
{ name = 'keyword.operator.increment-decrement.java';
match = '(\-\-|\+\+)';
},
{ name = 'keyword.operator.arithmetic.java';
match = '(\-|\+|\*|\/|%)';
},
{ name = 'keyword.operator.logical.java';
match = '(!|&&|\|\|)';
},
{ name = 'storage.modifier.java';
match = '\b(private|public|protected|static|transient|final|
abstract|native|threadsafe|synchronized|volatile|strictfp)\b';
},
{ name = 'storage.type.java';
match = '\b(class|interface|enum)\b';
},
{ include = '#string-double-quoted'; },
{ include = '#keywords'; },
);
repository =
{ keywords =
{ name = 'keyword.other.java';
match = '\b(new|abstract|assert|default|synchronized|private|
protected|public|throws|enum|instanceof|transient|final|interface|
static|void|null|class|finally|strictfp|volatile|const|native|import|
package|extends|implements|this|super|true|false|if|else|while|for|
return|continue|break|switch|do|goto|case|try|catch|finally|throw|int|
char|float|long|double|boolean|byte|short)\b';
};
string-double-quoted =
{ name = 'string.quoted.double.java';
begin = '"';
end = '"';
patterns = (
{ name = 'constant.character.escaped.java';
match = '\\.';
}
);
};
};
}
Could it be that since the snap 715 the defaultkey defininition for all
application has changed. There are some definitions inside that I can't
use newline, backspace in any applications on os x.
regards
Karl-Heinz
> On 31/10/2005, at 10.59, Frédérik Bilhaut wrote:
>
> > I was wondering if TextMate has the feature often called "smart
> > home/end" in other editors ? [...]
>
> It doesn't, but you could record a macro which does:
>
> 1) move to beginning of line (ctrl A)
> 2) regexp search for: (?=\S|$)
>
> And bind that to the home key. For smart end you'd search for: (?=\s*$
Actually, this moves to the second column with lines that have no
whitespace at the front. It'd be better to do:
1) move to beginning of line (ctrl A)
2) regexp search for: (?<=\S|$)
3) move left
The regexp uses a look-behind to place the cursor after the first
non-whitespace character. Cheers,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Looking at the Ruby and Python bundles, they don't seem to have this
value set. Is indenting based on the folding markers, or what's the
deal?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi Folks,
TmCodeBrowser is now available as tmplugin, with a number of
enhancements:
- Keyboard navigation and search, similar to the 'Go to File...' panel
- Compatible with OS X 10.3.9 and later
- Support for Objective-C
If you currently have the old TmCodeBrowser2 installed, please de-
install it first:
- Quit TextMate
- Drag the ~/Library/InputManagersManager folder into the trash
- Drag the ~/Library/InputManagers/InputManagersManager folder into
the trash
Note: You will not be able to empty the trash until you logout or
restart!
Then install the new TmCodeBrowser.tmplugin available here:
http://www.cocoabits.com/TmCodeBrowser/
Note: Once unpacked, TmCodeBrowser.tmplugin will look like a Folder
(Allan has not added tmplugin to the CFBundleDocumentTypes in the
Info.plist file). Simply drag the TmCodeBrowser.tmplugin onto
TextMate, and TextMate will install the plugin. CodeBrowser will then
be available in the menu under 'Windows/Show CodeBrowser' (you may
need to restart TextMate for that entry to appear).
Gerd
hello.
How do I keep a command output from sending in an extra newline?
I've got a command like this:
echo $\{1:`expr $TM_SELECTED_TEXT + 1`\}
Input: Selected Text
Output: insert as snippet
Activation: ctrl-up
Scope constant.numeric
But it's no good unless I can figure out how to keep that pesky
newline from jumping in my face.
Thanks
one feature i miss from other text editors are white space indicators
and indentation guides. please see attached screenshot. note the subtle
dots which indicate spaces and the vertical dotted lines which are
usually called indentation guides. i'd love if textmate had options to
display these things.
-moshe
Add this to your language grammar of choice (from a previous thread,
sorry but I couldn't find the link in the archives):
patterns = (
/* your other patterns */
{ name = 'meta.leading-tabs.yaml';
begin = '^(?=\t)';
end = '(?=[^\t])';
patterns = (
{ match = '(\t)(\t)?';
captures =
{ 1 = { name = 'meta.odd-tab'; };
2 = { name = 'meta.even-tab'; };
};
}
);
}
)
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
On 07/11/2005, at 16.22, Matt Mower wrote:
>> This is rather difficult for me to administrate, so chances are low.
> Do you mean administering this in the menu? Or in general?
Administrate in the code/in general.
> If it was an issue about the menu being dynamic I'd be quite happy
> with Paul Bissex's suggestion of putting the last command executed in
> the status area somewhere.
Yes, it's a very good idea (and I definitely like it), but it's not
something TM was designed to do, so it's a lot of work to “add”, as
it would require several things to be done differently -- so this is
distant future…
Hi Allan,
Sometimes I find myself in the situation where I try a key combination
which doesn't do what I thought but moves the carat leaving me
uncertain what action I have just performed. I know I can hit undo
but given the non-atomic undo nature it leaves me with doubts about
whether my file is changed.
Would it be possible to add a feature that tells you what function a
key combination will invoke?
What I have in mind would be:
select "identity key"
press key combination, e.g. Cmd+Opt+V
TxMt pops up a dialog identifying the bundle & command this will activate
Choose "yes"
Executes command
Choose "no"
Does nothing
This would help me, (a) because I could work out what I *did* do, and
(b) because I could help myself learn key combos safely (by either
passing through to the action or not).
Just a thought, not sure how good of a one though ;-)
M
--
Matt Mower :: http://matt.blogs.it/
It's not exhaustive but it's a start. Kudos to the authors of the Ruby,
Python, and XML bundles for their inspiration.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.comhttp://www.unfitforprint.com/
> I haven't figured out what the motivation is for full-screen mode
> when one can maximize the windows, and TM is already very low on
> window decorations, so the extra pixels gained from a real full-
> screen would be minimal.
I think I can speak for more than a few of the people who have
requested this when I say:
It's not about the extra pixels.
It's about minimizing distractions. There's a significant mode switch
that's triggered when all of a sudden the only thing you should be
doing is the only thing you can see on the screen. No bouncing dock
icons, no flashing news reader, no growl notifications, just your words
staring you in the face. It kind of reminds me of the good old days of
green screens and ascii text.
I've used Ulysses and honestly the only thing that made me even
consider dropping the cash on it was this one feature. It's only
implemented by one other OS X program AFAIK (MacJournal) and totally
souped up my writing productivity.
Allan, I know that we're beating a dead horse here, but no one in my
recollection seems to have brought this perspective to the table. What
are your thoughts?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
I've noticed that right now displaymath modes in latex initiated by $
$ are not handled correctly. It seems that lots of times, though not
entirely consistently, they are being captured by the
string.other.math.tex scope, instead of the
string.other.math.block.latex scope.
In other words, the two dollars signs next to each other are matched
as the begining and end of a simple math mode, instead of being
considered as the beginning of a block math mode. What makes it even
weirder is that the following:
$$\int_{C_{t}}e^{g(z,t)}f(z,t)\d z$$ where $g,f$
would consider the first pair of dollar signs as
string.other.math.tex scope, and the second as the beginning of
string.other.math.block.latex, which then goes on to capture the
entire rest of the document.
So I am wondering, how is this possible that the $$ is not
consistently matched, and what can we do about it?
Haris
Try this:
1. Open a file F1 with extension .pm, Perl mode is correctly
active.
2. Open a second file F2 with extension .pm, Perl mode is
correctly active.
3. Change F2's mode to C mode.
4. Switch back to F1's tab and you'll see it's now in C mode!
Is that a bug?
-- fxn
Just in case you are wondering where does this convoluted experiment
comes from: I am working in a Perl module that has some part written
in C:
http://search.cpan.org/~fxn/Algorithm-Combinatorics/
There's a file ending in .pm that is strictly a Perl module, but that
actually is mostly C except for a few lines, since it uses Inline::C.
I need C mode there to work normally.
While we're talking about the bundle... my number one activity in
writing LaTeX is going in and out of math mode as in
\( blah \) and \[ foo \].
What is the officially encouraged LaTeX bundle way of shortening that task?
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
> One problem with full-screen apps on the Mac is the fact that good
> Cocoa interfaces don't lend themselves to a full-screen environment.
> Ulysses is a good example. It works full-screen because its interface
> is a single monolithic window, but that makes it look like hell when
> it has to share a desktop with other apps. A full screen TextMate
> would require either a significant interface change or a loss of
> functionality, and I don't know that I'd really want either of those.
I'd be happy with just being able to make the active tab take up the
full screen. I don't need access to tabs, the file drawer, or any of
the other interface elements. I just want my green text on my black
screen and nothing else. If I want to do something that will take me
out of my current mode, like switching files or tabs, I can use a
hotkey or just hit escape to get back to normal mode.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
YES!
I LOVE the textindent, thank you so much!!
Upps, after some testing, I discovered somethnig I'd still like to be
changed :)
When an empty line, let the caret remain in position, or move it "in"
just as a tab would have done. Reason; I immediately set up enter to
be a macro with newline and indent, so all code would immediately get
indented, and then I used ctrl+enter for just newline, in case I'd
ever want that. Problem was this behaviour broke rather badly since
each line without previous text had the caret far to the left. Before
setting up the macros, I'd only tested it on lines already containing
text you see..
Andreas
Version 1.03 of TmCodeBrowser is available now at
http://www.cocoabits.com/TmCodeBrowser/
NOTE: I have changed the handling of .ctags.tmcodebrowser: If
~/.ctags.tmcodebrowser does not exist, fall back to internal default.
That way users without a customized ~/.ctags.tmcodebrowser will
benefit from updates to the internal default file.
So unless you have personal customizations not covered by the default
file, please delete your ~/.ctags.tmcodebrowser, for example by
entering this line in a terminal window:
rm ~/.ctags.tmcodebrowser
Gerd
Change Log
Version 1.03:
- Possible freeze while moving the selection, fixed
- Added some quotes in Objc-C postprocessing script to avoid problems
with spaces in paths
- Added line for HTML <div> sections to the default .ctags.tmcodebrowser
- Changed handling of .ctags.tmcodebrowser: If ~/.ctags.tmcodebrowser
does not exist, fall back to internal default. That way users without
a customized ~/.ctags.tmcodebrowser will benefit from updates to the
internal default file
- Changed CFBundleVersion to a growing integer in preparation for
automatic version checks by TextMate
- Fixed tabbing through the CodeBrowser panel
I am one of the few (?) people who experience a crash in the find
dialog, when using <tab>.
Now, something similiar happened when using the tab key inside the
search field of TmCodeBrowser, the Beachball spun out on me.
I sampled Textmate and attached the file,
maybe Gerd or Allan can see something strange in there.
Soryu
Since I've found on informations about student discounts, I assume there
are none. Am I correct?
I just would like to avoid learning they existed *after* buying
TextMate...
Thanx in advance,
-riko
I get a crash when pressing the down arrow in the find dialog even with
the latest 1.02 build.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
just wanted to look up the regexp help (very useful!!) and got a
blank help view window.
anyone else? any workaround? a bug? etc. etc. ;)
tom
- --
Tom Lazar
http://tomster.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iQIVAwUBQ2zi5deSJSslDUEWAQJxYA//T+vn6+Egf7U6R5LYhgOMyljModYgAID2
4rLapTx1mBnTzaVX0L0qPl33586M+XDX50vItmBkuovZiGrvNaEugtZMrBTtl6J0
9nwjx+kJimnUcqmAg/79rSL6qCXFEDXwgmoQwyPMTDqGHziPHnNtW9rszix5WD1R
5IXhVtby7eOe/yA9T7LHYfC8qCl0CyPiiW3Hd+CaRwlyox4Y+y2MSfa0/aLb2ZFU
NfLeNSf7dFJZh3z8j1b1oKU1ph4T6nEjAGvgXrqeCpiRYq7+88ctOKJcc+b8HukE
HY6TnYq4hIvZpeVXzRa2wJaFDNu6Uhp4svTjoSkUROuhRQ6USfQFUG2ua8hHWOeT
JL+HK7zbTPld4ZJY3UTz1iUlaVZhyqVK7diwKsVZFnjZwpSvGVDH3z/qouwBVY3q
kHf5P42rUQo8WN6j7z/Q1z4/KG0+qVqhRph4fG+inMp9t6E46Mrewuz0mYwnB4ji
qTDEhT5VC3BcVaFCv334QwDXtClxRJphX/ZJUlILhg96m+8QbPgSxJV9DVlBox74
M4VadiJecsvfpMWheMauu0efNzaP4VVHqfDBs0aMbtCcGu0WtdegzO7LCFfB8Fff
CXKabXslQCXytlcgbTjaClsx4ygaJ5WTLDF8pj37NJQjHGGv4AolPaLsS2cZzj/r
QjDRGLp2FnM=
=NDAC
-----END PGP SIGNATURE-----
Hi,
Trying to make a bundle and I think it would be easier if the bundle
language language bundle applied to language files being edited in the
bundle editor.
i.e., if when I view a language in the bundle editor, all the folding and
syntactic candy are applied.
tim
Hi there,
I have actionscript installed for ctags from my jEdit days:
http://tinyurl.com/7tshwhttp://www.appliedrhetoric.com/actionscript.c
However the browser isn't coming up with anything. The only thing I can
think of that might be off would be the case of the name:
(20:14:05 <~>) 0 $ ctags --list-languages
ActionScript
Asm
Asp
…
In the Language menu it's "Actionscript" without the camel case for
"Script". Just wanted to throw this out before recompiling ctags to
make sure that there are no other possible issues.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi,
Why not just save the project when any file is added or deleted from it?
After a crash I lost a bunch of files I'd added to the project, and it is a
pain to get them.
I can't think of any comparable situation where I wanted to quit textmate
and would be upset to find that it kept the project the way I had made it
(rather than reverting to whenever it was last explicitly saved)
Tim
Hi all!
Seeing the release notes of 687 reminded me of something that's been
nagging me (slightly) for some time. It's mostly got to to with the
language selection in the spelling dialog:
- The selected dictionary is application wide (i.e. valid for all
documents), but as it happens I often have a German and an English
document open (or more applicably one in British and one in American
English :P). Maybe this setting could be stored in the meta-info
file? I just found out there is a plugin for AdiumX that does this
for each contact...
- After changing the dictionary, the red squiggly underlining isn't
refreshed. I thought this was due to the lazy colouring, but I tested
it with plenty of idle CPU time.
As an aside, I finally got my British keyboard (the German key-layout
trades valuable keys (e.g. everything needed for coding in general)
for hardly ever used umlauts) so now I can use the keyboard shortcuts
of TM as intended. And stuff like Apple+~ works now. I find it
strange, that (generally speaking) very few people seem to use their
OS in a non-local language with a local keyboard...
Anyway... ranting over!
Daniel.
On 24/09/2005, at 8.26, José Campos wrote:
> In revision 469, when I try
> Find : this
> Replace : \t$0
> The resuls is "\tthis" instead of a tabulation as expected before
> "this"
>
> Is it a new feature? ;-)
heh… I was actually thinking just yesterday, maybe I should add \t to
the new replace string syntax :) I'll put it in again for next version.
I didn't keep the escape characters from previous syntax, except \n
-- let me know if I need to add others. Also, the new syntax btw also
support \l and \u (for changing case only of first letter), where I
think the old contains only \L and \U -- I'll update the manual page
on this also for next rev.
Trevor Turk <trevorturk(a)yahoo.com> wrote:
>>> I found that you can drag a folder onto TextMate to
>>> open it in a single window. That's actually pretty
>>> good for my purposes generally, but it looks like you
>>> can't do that via Transmit.
>
> What about Transmit->Preferences->General
> Double Click Action: Edit in External Editor
> External Editor: TextMate
> ?
>
> No drag required, just Double-Click on file in Transmit
>"their stuff" windows.
Here's a trick I use (btw, I use Cyberduck, but that shouldn't matter
for this) to edit related files via SFTP. I create a new project so I
have a project drawer, then I double click on a file I want to edit,
Cyberduck downloads it and TM presents it to me in a new window. Here's
the tricky part: I click on the file icon in the title bar and drag it
into the project drawer. (My aim isn't very good, I sometimes have to
try a couple of time to hit the magic spot that causes the icon to
drag.) Then I close the edit window and double click on the file again
and it appears in the already open project window. So what I do is an
initial download of all the files I'm interested in, drag them into the
project drawer and close their independent edit windows and from that
point on, I have pseudo project based sftp support. :-)
--
Carl Forde
Start by doing what's necessary;
then do what's possible;
and suddenly you are doing the impossible.
-- Saint Francis of Assisi
When double-clicking the middle of a word and then pressing arrow left or right, the cursor does not start from the edges of the word, but instead from the double-click position. This behavior is not consistent with NSTextView, or any Mac OS app I've ever used way back to System 6.
Shawn
On Mon, 31 Oct 2005 12:00:04 +0000 (GMT), textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> Today's Topics:
>
> 1. Re: textmate Digest, Vol 13, Issue 71 (Shawn Van Ittersum)
> 2. Emacs-style tab to indent line (was: [TxMt] textmate Digest,
> Vol 13, Issue 71) (Allan Odgaard)
> 3. Re: Emacs-style tab to indent line (was: [TxMt] textmate
> Digest, Vol 13, Issue 71) (Gerd Knops)
> 4. Rev 665 - icon gone (Jeremy Dunck)
> 5. Re: Rev 665 - icon gone (Allan Odgaard)
> 6. Tab Size per window (Peter Vohmann)
> 7. Smart Home/End ( Fr?d?rik Bilhaut )
> 8. Re: Tab Size per window (Allan Odgaard)
> 9. Re: Smart Home/End (Allan Odgaard)
> 10. Re: Tab Size per window (Peter Vohmann)
> 11. Re: Tabulation of end tags (Andreas Wahlin)
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
Hi,
I just released Version 1.02 of TmCodeBrowser, a minor update:
- Manual button was not working in some instances, fixed
- Fixed a memory leak
- Use UTF-8 encoding to read back results from ctags
It is available at
http://www.cocoabits.com/TmCodeBrowser/
Note that you need to restart TextMate after the update, otherwise
the plugin will not work properly.
Gerd
Hello.
I just slapped together this theme.
I based it off the excellent Espresso Libre theme.
Just like the Sin City comics & movie, it has a de-saturated overall
feel with a single brightly colored element.
I didn't think i'd like it as much as I do.
Enjoy
Is there a simple way to turn off "check spelling" for
a particular document? You know, so that TextMate
would remember it? I've got some scratch pads that get
littered with re underlines, but I really like the
spell checking in most cases.
Related question - is there any chance of getting a
keyboard shortcut to toggle "Check Spelling as You
Type" - I can't seem to do a macro or anything for
that, and t'would be handy.
- Trevor
Hi,
I think full screen mode would be a nice enhancement: in this mode the
editor takes over the whole monitor: no windows, no scroll bars: nothing to
distract you: just you and the text (constrained to some inset from the
monitor frame).
I find this is a nice environment to get work done in.
I've been doing some writing the last week that I was putting off doing:
easy to be distracted when it is unpleasant work... anyhow: I found while I
couldn't write the paragraphs I needed in textmate, I could in macjournal
<a href="http://homepage.mac.com/dschimpf/">macjournal</a>
So, if full screen is already an option... Please someone point it out to me
:-) Else, this is my suggestion.
Hi All,
I have frequently wanted the ability to replace some text in the
current document and set the selection through a command. Is this
possible? I can easily replace the entire document, but setting the
selection eludes me.
In addition, I'd like access to the column number along with the line
number. I didn't see this as one of the exported environment
variables. Allen/all, any suggestions? Thanks _matt
Hiya!
I used to use that Shift-Apple-N to create new files in the project
but the shortcut doesn't work anymore gah!
It doesn't work when the focus is in the project draw or in the
document either. Has that changed or is this a bug or something? :D
-_RYan.
When I choose "Update Entire Project to Newest" from the Subversion
menu I get the following message:
svn update /Users/bryce/Sites
Skipped '/Users/bryce/Sites'
My working directory is located in '/Users/bryce/Sites/moodle'. Is
there a setting that needs to be set somewhere to get Textmate to pass
the proper path?
Thanks,
Bryce
I love a lot of things about TextMate - but I'm still
having one major problem.
How can I edit multiple files straight from an FTP
server in a single window? I use Transmit 3 - which
lets you ctrl-click a file and "edit in" whatever.
Then, when you save, it shoots the new file up to the
server. However, I'm trying to figure out how to do
this within one window - like when you're working on a
"project". Coming from TextWrangler, this works fine
because all your files open in the file browser and
you've got one window. In TextMate, I've got a new
window every time, and I always have to drag the new
windows around because they open in "cascade" like
fashion. It's really a pain, and I'm trying to find a
way around this...
Is there a way to make a "project" that points to
files that are online? Is there a way to get new files
to open in a single window? I got the impression that
this "single window" thing I was talking about might
be coming to TextMate - but I'm trying to figure out a
way to work with this as-is.
Any tips would be greatly appreciated!
Thanks,
- Trevor
The last changes in the LaTeX Bundle broke down syntax coloring for
things like this:
$D_1=\{x_1^2\}$
Basically, the \{ inside math mode is considered
constant.language.generic
while the \} is not.
The relevant code is
{ name = 'constant.language.general';
match = '\\([^a-zA-Z]|[A-Za-z]+)(?=\b|\}|\]|\^|
\_)';
},
Can't see right now what the problem is with it, maybe someone else
can spot it.
Thanks.
Haris
Will everyone who reads this message please stand up and give a round
of applause for Allan.
Allan, you are now hearing the sound of lots and lots of satisfied
customers. Programmers don't often hear this so please enjoy it.
Now, everyone get back to work.
-Eric
I'm looking for an easy way to add a shell variable to TextMates
preferences via a shell script, I've got so far but the final step
seems a little illusive.
The following just overwrites what's already there....
defaults write com.macromates.textmate OakShellVariables '{enabled =
1; value = "/Users/simon/classes"; variable = "CLASS_PATH"; }'
As the script would run as part of a bundle package install it would
be possible to quit textmate first and not run the risk of defaults
confusion, but ideally I'd like something similar that could simply
be executed via a command.
Any help would be great.
Thanks,
Simon
Yeah I bought BBEdit a few years ago and it cost almost 6 times what
TextMate cost. It was something like $350 Australian dollars.
I sent a few questions and suggestions to their support team and I
recieved a pathetic condecending email explaing very pretentiously
why it was not possible to highlight interpolated variables inside
strings because of 'XML Parsing Rules'.
I paid another $80 odd AU dollars for the 7 to 8 update. What was in
8 that was not in 7? A document drawer. So I paid $80 dollars for a
document draw... Really.
Textmate was about $60 AUD and I get daily builds, I can speak to the
author directly and the application kicks arse!
So all you poo-poo'ers can get stuffed because it's well worth the
cost. If Textmate was $350 AU I'd probably pay that much, too.
(And also for the record I own a license of Zend Studio, and I paid
about $450 AU for that, and they suck, too. I won't be renewing that
license, that's for sure!)
--RYan
In regards to :
[CHANGED] Rather than set soft tabs (that spaces should be used
instead of tabs) and tab size in the bundle editor for language
specific tab settings, the popup in the status bar will now record
changes only for the current (root) scope -- for scopes where an
explicit choice hasn't been made, it'll use the closest with an
explicit choice, and in case of a tie, it picks the one which most
recently was updated.
What am I missing here? I cannot find the soft tabs setting anymore.
I thought it was in preferences. I.E., I had trouble with a Python
script after updating to rev. 680 (had to convert all spaces to tabs)
and want to make sure that I am still editing with spaces as tabs.
thanks, K
It would be nice if there were tool-tips when mousing over the status bar
items: that would help users remember and understand the items there.
It would also be very handy if the automation menu (the sprocket in a
circle) was provided when right-clicking.
I would find it more intuitive to be in the text, and right-click, than to
move the mouse down to the (hard to hit) status bar to select automation
actions.
Tim
(who just discovered using Prefs:Fonts and colors to change syntax
highlighting: no more low-contrast puce1 php code! Yay!)
1 puce adjective of a dark red or purple-brown color : his face was puce
with rage and frustration. noun a dark red or purple-brown color. ORIGIN
late 18th cent.: from French, literally flea(-color),¹ from Latin pulex,
pulic-.
Dr Timothy Bates <tim.bates(a)ed.ac.uk>
Reader in Differential Psychology
University of Edinburgh
Dept Psychology
PPLS
7 George Square
EH8 9JZ
wk +44 131 651 1945
FAX +44 131 651 3461
home +44 131 332 3543
Mob +44 790 386 4573
Hi everyone,
I'm new here. I didn't see any archives to the list so if my question
has already been asked, my apologies.
In BBEdit and other editors I was used to having a function popup that
shows all functions/methods in the current file. Is there such a thing
in TextMate? Or what is the TextMate-way of handling this?
Thanks!
Steve
--
Steve Roy <sroy(a)mac.com>
<http://homepage.mac.com/sroy>
Hi,
one thing that stops me from making more use of the project view is the
problem of losing files when they are renamed or moved outside the textmate
environment.
Is there a reason that the project view doesn't store alias's? These allow
you to track files seamlessly.
Also, it seems wrong to be able to add a file twice to the project:
shouldn't the project detect that the file is already there and just
activate it's view tab?
It the purpose is to allow multiple views of the same file, then this might
be better achieved by split panes?
tim
Hi Folks,
seems OS X 10.4.3 has introduced a bug deep down in the
NSTreeController object, causing TextMate to crash if you are using
the TmCodeBrowser2 hack.
If you have updated or want to update, please move these directories
to the trash:
~/Library/InputManagersManager
~/Library/InputManagers/InputManagersManager
You will not be able to empty the trash until you logged out or
rebooted.
I am working on a workaround, but it is a bit involved. I'll annonce
the new version (now as a tmplugin) as soon as it is ready, hopefully
within the next day or 2.
Gerd
Alright, so I'm typing along and TM fills in my double-quotes and ruby
tags (i.e., <% %>). This is fantastic.
But when I want to be done with the data between the quotes, is there
a key command to move me to the other side? I realize hitting the
double-quote again does this, but I thought one of the points of smart
typing was to do away with that.
Am I missing a preference somewhere?
Thanks!
Sean
OK, now we have a bigger problem. After creating an Indent Line macro and assigning it to the Tab key, Tab-activated snippets don't work anymore.
Shawn
How do we assign Tab key to the new Indent Line command ourselves, since you did not do that for us?
Shawn
p.s. Why are you making it so hard for emacs users to embrace your program??
On Sun, 30 Oct 2005 12:00:04 +0000 (GMT), textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> Today's Topics:
>
> 1. IDL Bundle (Konstantinos Theofilis)
> 2. Re: Tabulation of end tags (Andreas Wahlin)
> 3. Printing/Print Server Problem (v665) (Tim Martens)
> 4. No "new command" option in Bundle editor? (Charilaos Skiadas)
> 5. Re: Tabulation of end tags (Allan Odgaard)
> 6. Re: No "new command" option in Bundle editor? (Allan Odgaard)
> 7. Re: Printing/Print Server Problem (v665) (Allan Odgaard)
>
>
>
>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
Hi,
I recently started using TextMate, apologies if this question has
been answered in the past.
I use TextMate at work, where my rails application runs on a shared
linux box and I edit files by mounting an NFS disk.
My OS X and Linux uid and gid's are the same and I'm able to use the
NFS disk w/o any problems, except TextMate likes to litter the NFS
server w/ "._" files like so:
devbox2: ~/amp [4] > svn st
? app/models/._foo.rb
? app/models/._bar.rb
? app/controllers/._foo.rb
? app/views/foo/.__form.rhtml
M app/views/foo/_form.rhtml
and the "._" files seem to just reference where my cursor was at:
devbox2: ~/amp [5] > strings app/models/._foo.rb
9{"com.macromates.caret" = "{column = 49; line = 13; }"; }
Any way I can get TextMate to stop generating these files (even if it
means I lose my cursor focus)?
thanks,
Jon
Hello,
I have both TextMate and SubEthaEdit on my system (since TextMate
doesn't do network editing). Since installing SEE, it's now the
default application to open all of my plain text files, scripts,
source code, etc. I want to change the system filetype bindings back
so TextMate is the default. I know I can use the "Apply to all"
button next to the "Open With" selector in the Finder's info pane,
but that applies the setting based on extension, not based on file
type codes (or however the system determines plain-text-ness).
Any help would be appreciated.
Thanks,
Andrew Witte
Hi Folks,
Is there a way to have tab size set different per window, or simply
per language as part of the bundle?
I have a project with Makefiles (tab size 8, hard tabs) and vhdl (tab
size 2, convert to spaces).
This is the most different use of indenting one could have. With tab
size 2, I don't even recognize the commands in the Makefile, and with
tab size 8 I get insane editing code.
Peter
I really like how tabs get nested perfectly just by pressing tab, the
start tag that is, the end tag gets on the same line. Is it possible
to enhance the behaviour and have the end tag correctly nested one
tab stop less?
This could also create a wonderful "reformat" macro of sorts to
correctly tabulate all HTML and XML files, that would be quite neat.
Andreas
Hi all,
I was wondering if TextMate has the feature often called "smart home/
end" in other editors ? When enabled, smart home makes the cursor go
before the first non-whitespace character of the line, and similarly
for "smart end". I assume TM has this, but I can't figure out how to
enable it...
Thanks a lot,
--
Frédérik Bilhaut
GREYC - Université de Caen
Campus II - Sciences 3 - Bureau 385
http://www.info.unicaen.fr/~fbilhaut
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hey there,
I've just noticed that sometime during the past builds working with
TM has become painstakingly slow, even with moderate sized Files. (I
tested with Textile and XML and Python source)
Even just going up and down with the cursor keys utilizes both of my
1GHz CPUs equally to about 80%!!
Anyone else experienting this kind of slowdown? Any remedies in sight?
best regards,
tom
- --
Tom Lazar
http://tomster.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iQIVAwUBQ2TnLdeSJSslDUEWAQJJ1Q//feLtB70gQaycuG59XIoAFUT0uqVFNzMt
KvpxetSp0rqyl7rXLeyAnPSurOyu4u22QAChov6VzJsYceETwLtDW0IVLQoS0VcV
S45qTgoG6XiroW/O9lgqIg7yHRO8fgXigiG6M/KyAlpUtDvJVqXtX8EekaX2T7+r
rgGvbDymiks7HJJkp8ltoHTtA9874Jf/Fk+4ctZDqOT90E/wsNzRJ93oRT/5txnN
A1gC88zP+7rXcuXxE7SotfqwZh98JARwzDvtD4frS3pG3Myv5T+iE29B4UCZSLiq
luoywgJg1UXqwNfiEGC4LQ0Ovp4VePKdKrv5SBIDr6f6YWon2qUA0BHlp1HNJ4o5
ZUDmwE2JJ0G04isTYEQQ7bkmTS3eK3B+kT97QUbmkrwtHckhCamYLJ4dM2Nxp7lN
xcZCjZyS6ieKG7twlC76tNf3l1QEEjjd2vK6r++zaLUMXw9ok0h+ycYjZUpkO097
B9TKSfv4pB2IZJjQKbm2xDvGY2Htrk0TabS3loPOFqXJfb9I901tXft7bQYwL8/J
t7D7G2J+CzcZxrUHQbaur78XNLZbv4Pyvhi6WY/yogrI1ODqpJ8bhR0LN4pULV0S
RPtvGp+EzlTHKmQIHHVUk4QdhmjxuPi94d0YvscgRbnpBrOJ+iwTIdCCjIl1C2fB
DioF4VlW/s4=
=cIvH
-----END PGP SIGNATURE-----
Hi,
Running a Hawking HPS1P print server for my local network (USING IPP)
through a Linksys WRT54G. I'M ON OSX .4.2
WHEN I TRY TO PRINT FROM TEXTMATE I GET: "unable to get printer
status (client-error-or-attributes-not-supported)"
This is only happening via Textmate (v665). I can't print from other
apps just fine. I think this problem just started, but it's hard to
say because I switched to this new router two days ago.
-t
The popup menu in the bottom left of the bundle editor doesn't have a
"New Command" item. Am I missing something? Is copying an existing
command the only way of creating a new command?
Haris
Hello list,
There is no IDL (Interactive Data Language) bundle yet for textmate :-(
Is anyone interested in making one? I can provide function names
lists, syntax etc.
Thanks,
Kostas
Is there a keyboard shortcut for Replace All? I'd like one very much, please.
Shawn
On Fri, 28 Oct 2005 20:03:39 +0000 (GMT), textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> Today's Topics:
>
> 1. Re: Keyboard Shortcuts List and Font Size (Allan Odgaard)
> 2. Shortcut key to open Bundle Stuff Deally? (thomas Aylott)
> 3. Re: Shortcut key to open Bundle Stuff Deally? (Allan Odgaard)
> 4. Find Next (Alec B. Beardsley)
> 5. Re: Find Next (Allan Odgaard)
> 6. Re: Folding for markdown: how? (Allan Odgaard)
> 7. Re: Folding for markdown: how? (Allan Odgaard)
> 8. Re: Find Next (Alec B. Beardsley)
> 9. Re: Shortcut key to open Bundle Stuff Deally? (thomas Aylott)
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
i LOVE the new bundle stuff deally.
I just wish I could open it up with a shortcut key.
You can already get around in the menus with the keyboard.
I wrote an applescript to pop open the regular menu (using gui
scripting)
but, I can't get applescript to see the bundle stuff deally.
I also can't seem to make an osascript textmate command that doesn't
totally freeze textMate.
Anything to keep from having to grab the mouse.
It'd probly be easier (for me) for you to just add it to the app
itself instead. ;)
Thanks much for the continued breakneck pace of development.
activate application "TextMate"
tell application "System Events"
tell process "TextMate"
-- GUI Scripting statements:
click menu 1 of menu bar item "Automation" of menu bar 1
click menu item "Insert Snippet" of menu 1 of menu bar item
"Automation" of menu bar 1
--click menu item "x51" of menu 1 of menu item "Insert
Snippet" of menu 1 of menu bar item "Automation" of menu bar 1
end tell
end tell
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- - -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi there,
as I was scrolling through my looong GTD project list that I keep in
TextMate using markdown I thought it would be convenient if I could
do some folding at the h1, h2, h3 levels to get a better overview.
could somebody here please "smack me on the head" and give a quick
pointer on where to start implementing that? I'm not lazy - just
clueless ;-)
best regards,
tom
- - - --
Tom Lazar
http://tomster.org
- - -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iQIVAwUBQ2EhK9eSJSslDUEWAQLs2g/7B/Nutcw5zYqGVsW6BwNedGTUQtoUN1zc
oFLgBuCA4lCFSwYn/q/KlkBLe6b2No1GT9nb9TzxtfBQRLlNj72tlqIkaffhouEN
b3LSFM2uKTfXEHDL3RYw7oOxDuX0QXXUq1ekRmVXMls45nJGTNgNCC+WSIfksQYq
0c01BcJvSsv8lto2W4yTkCmjG8pFly68UnZJBk3zHtF1jeT9VHt567n1ofrh6OyX
GLy3wIYaUJw8SJCb4Q/FeWfJD2PFHxHQDvqmoVyiKP65I4mvMMNzT/IAtgsKi7en
2+USZPMBUBUGD+SCx4HxZJeqVMgjb/ZVUberrc7MB7fQW2ltMAbcCCLZFIH0Ohsz
Ef9Pm0wsknGfZvwx8i+Qwrq+/4POEuo2B5Mk8UkxsCnBjN0vmtj1ONYA3EqL+5Rl
f/1+dajVErX90AwD0+h9749zAHTyB2q+eZ3nxKO2i7FGBXYo/2tPHlJ3PebDrpYy
AW0H9D+2thpdtX5ghdkANMTCn7jyvJDvLF7/lwb2cIDk0mRpPNvs69r6cjRC/830
eTy6e00xOpsaXSzqo4LsC+wbO30PkBhuKSVX9wOG74kfK0zs6D442zhaaBWerIUH
SIeKbcR+cgps43p/3RrKR9RdO1UoLLq/ahmOvRuTQeJ7ea4S23cGNBomkt9yvc78
Snhw2AFLI2I=
=tkG2
- - -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iQIVAwUBQ2EmSteSJSslDUEWAQIV0A/9F2EA5co+ys2BEuznO3ELIyhAooPR1hMG
upkP9IN+FQLKdXyQ4CzoO8B5VblqdwEtfHxf2UvFo/uRAvW+2qkBS4QPmCFwp43V
gOForTYuLspIJxtkucVQoSlvuFfggdSMhNBRKWZkW3VASLoDVGUBwEa3NDTDSips
I55Jfa4URsF8Uj45aSHVqk7EdID39V3oKIGHQ9feiUePS3fjrZdVD81lnUkXOBoO
I9xVMq7wH+ktrYnPy34xhF0OC4DX61X5hyonJGaQ8DLhEK53kXMdQrXx65opcHeV
mPP8p30Jqd/wKYxQK/9vXhegpz8rgAB3pTF42xCvOeR9QT2O9OfzVmiPnqNm+lqJ
SzOv3eBLY2+06ktsiAo0z/1mguR5RIaBvknWJUc+kk8MRevmnC+c3TrEsTM/l41d
WdS3P2ryeolr7dh4uA7MLkOan9Of5m0L5E1cm0hW/8TFju+q3CEQg0IPBu/a+ZM+
XZXHRqEAK+8E35Y5XkoN9mSgK/3MTsR2MKPykS9WmRYo1G7Mf/Sxz/B/XS5VMv45
jC9k9cuit3JQ0dQ839Wn/c2ljQA1HyWvGeUa16iwUHemhMrAj02q7s6oTAvD/E9N
TEsk5Kly1TgB06vIHPp9u0GxlN9mIo1YclLElIiM6Nr2vtLV3ZKREmhnAEUckmCR
9xGjHTP5Oho=
=7xOh
-----END PGP SIGNATURE-----
Hi,
Is there a way to change the font size in the "Keyboard Shortcuts
List" window (the one which is called by "ctrl-alt-command-K")? Did not
find any source code for it in the TM package. So I just copy-paste from
the window to a sticky, but it is not as handy.
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
Hi all,
I had some time to make TmCodeBrowser into a full-blown plugin. It
now automatically scans files as you change windows/tabs or save files.
I will not have much time in the next few weeks to work on it
(installer, documentation), but wanted to get it out for some
feedback. It can be found here:
http://www.cocoabits.com/TmCodeBrowser2/TmCodeBrowser2.tgz
Installation:
- Unpack the package
- Copy the InputManagersManager folder to ~/Library
- Copy the InputManagers/InputManagersManager folder to ~/Library/
InputManagers, or if you do not have a ~/Library/InputManagers folder
yet, copy the InputManagers folder to ~/Library
- Restart TextMate
Features:
• TmCodeBrowser2 will use ctags to automatically update it's window
each time you switch Textmate Windows and/or Tabs, as well as when
you save a file.
• The 'Float' check box (when checked) makes the CodeBrowser window
float on top of other windows.
• The 'Sort' check box (when checked) sorts the tree display.
• CodeBrowser remembers the expanded/contracted groups on a per
language base.
• To reopen the window after it was closed, select 'Window/Show
CodeBrowser' from the menu.
Enjoy!
Gerd Knops
gerti-textmate(a)bitart.com
Dear TextMate developper(s),
I'm considering TextMate again, and while doing some more tests I
realised that the "tab" key has a somewhat unusual behaviour
(compared to other advanced editors) when several lines are
selected : most editors would shift the whole block, while TextMate
just replaces the block with a tab... On top of that, the keyboard
shortcut seems odd to me (at least for a french keayboard), while
shifting blocks is a very usual task when I work on code or XML
Documents. And also, shifting left is often done using shift+tab. Is
it possible to see those "standards" shortcuts working in TextMate ?
Also, I noticed that it now has folding abilities. But is it possible
to disable it (I don't use it) ?
Best regards,
--
Frédérik Bilhaut
GREYC - Université de Caen
Campus II - Sciences 3 - Bureau 385
http://www.info.unicaen.fr/~fbilhaut
"And if you do, have you written a bundle for it? :-)"
Saw that no body seemed to answer Oscar's question earlier, but I too
occasionally use groff, nroff and the mom macros and would love a
bundle.
Currently I have to go to emacs still.
Mom does come with a syntax sheet for use with elvis, a vim clone
which I have included (2.4 kb) if anyone would like to make a quick
textmate language file.
Thanks
Robert
I was just wondering the following was possible, and I found out it
is, but in case other people are wondering, you can include braces in
the snippet placeholder text, if you escape the right brace.
Why would I want to do that? Suppose I want to use nested
placeholders, to allow for optional arguments. For instance imagine a
snippet like:
\\foo${1:(${2:0},${3:0})}
then this will show up as \foo(0,0) with the entire (0,0)
highlighted, so if I don't want it to be there then I can just press
delete and continue, or if I want it I can press tab and move to
editing each of the two zeros.
This works great in this case, but suppose I want *braces* instead of
parentheses (as in most LaTeX commands):
\\foo${1:{${2:0},${3:0}}}
As it stands, the second to last brace is matched as closing the
placeholder ${1, which leaves the wrong thing highlighted . The trick
is to escape it, like so:
\\foo${1:{${2:0},${3:0}\}}
Very nifty and useful, and not documented I think. My first impulse
was to escape the corresponding left brace as well, but it doesn't
need (and in fact won't accept) escaping. No sure how I feel about
that, it looks asymmetric to me. But hey, it works!
I am now very tempted to change most of the sectioning commands in
the LaTeX bundle to make adding labels optional, and combine the
stared versions of environment with the non-stared ones.
Haris
if I use the php snippet 'if', how can I do
if ($_REQUEST["
?
Which, in snipped mode, is translated to
if -> tab -req -> tab
the second tab goes to the portion of code of the 'if' snippet, it
doesn't create the $_REQUEST variable...
thank you
m.
Hello,
is there any automatic 'end of line' thing in the smart
typing feature? I feel as ctrl+e, or cmd+right, or retyping
of ") is breaking my hyper-lazy behaviour.
Thanks :)
max
Ok, I have got to say it, the last two updates have been really
wonderful in the kind of functionality they have added. It's like a
dream come true.
Correction, it *is* a dream come true.
Allan, you seem to be getting these updates out faster than I can
download them (and I'm on broadband), really impressive.
Slight feature request: When a new update is downloaded, and TM is
relaunched upon my clicking on it, is it possible for whatever
documents were open at the time to be opened again?
I only had one document open this time, but I kind of missed it. I
don't know what I would have done if I had ten of them open.
Haris
Hi,
When I escape a double-quote inside a regexp of a javascript snippet,
the syntax coloring is off.
See the attached screenshot for an example.
The language of the page is set to HTML.
HTH,
- n.
I've just noticed that foldings are not working with the Tcl language.
In the following program:
proc foo {args} \
{
switch -exact -- $var {
match {
}
default {}
}
}
I don't get any foldings even though they Tcl syntax defines them
like so:
foldingStartMarker = '\{\s*\\?$}';
foldingStopMarker = '^\s*\}';
Any ideas?
Thanks,
-Oscar
P.S. Can we add '_', '.', ':', and [0-9] to the list of valid
variable characters?
{ name = 'variable.other.tcl';
comment = 'FIXME what are legal variable
characters? --Allan';
match = '\$([a-zA-Z_\.:][a-zA-Z_0-9\.:]+(\([^\)]+
\))?|\{[a-zA-Z ]*\})';
}
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Just thought I'd report an odd behavior. I auto-installed the newest version
611. Closed Textmate. Reopened it.
Clicked on a file in the drawer to open it.
The odd thing is the the font size was wrong. It looked to be 1 size smaller
than I had set it before.
So I go to Preferences and try to reset the font size. It didn't take. Close
Preferences and reopen to try again. Still stuck in something like size 8.
I'm using ProFont.
Finally closed the TextMate again with the font set at something huge like
132. Reopened TextMate. Now the font sizing kicked in and resizing works
again. I cannot reproduce so don't know if you should be wasting time
looking at what's causing this.
Thanks,
Ed Wong
Is there one? I'd like to see even just a page or two of getting
started material that gives just a basic overview of how to create
and edit a basic html project with TextMate. For example, someone
recently mentioned here that you can get a pair of html tags by
typing the tag name, then ctrl-cmd-space. That's great! That's the
kind of stuff that makes me want to use an editor like Textmate
instead of using 'vi' in a bash shell.
So where can I find out how to do more of this kinda stuff?
Thanks!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Greetings all,
I haven't been able to find a resolution to a keybinding issue I've
been having—updates (through 611) after 1.1b17 do not play nicely
with my previously existing keybindings, either those generated in my
KeyBindings.dict file or those generated by MenuMaster. (For example,
no matter what I bind to ^T, it always "Transposes").
Any clues on this one? —the latest feature set is pretty appealing,
so I'm eager to use the latest version…
Thanks,
David
"A commands return code can be used to momentarily change the output
option set for that command"
This doesn't seem to work as advertised.
For example for my syntax checker what I want is to 'Show as HTML'
when errors are detected, and 'Show as Tooltip' when everything is fine.
It seems when the 'Output' option in the bundle editor is set to
'Show as HTML', that is what happens no matter what exit code the
tool uses.
When I set the 'Output' option to 'Discard', the exit code does seem
to be honored, but there is no exit code that for 'Show as HTML'!
Am I missing something?
Gerd
Can I attach a command to a project file so that it is only available when that project is open and foremost in TextMate? I'd like to write a command to rsync a project's files to a server, and give each project its own command to sync the proper directories to the right server.
Thanks,
Shawn
> Glen Henshaw wrote:
> > Am I missing something?
>
> Open up the Bundle Editor (Window, Bundle Editor or control, option,
> cmd, b) and press the "More Bundles…" button.
>
> Jeroen.
I've done that. The bundles in question don't appear there either.
Glen
Hi guys,
I have a small suggestion for the HTML bundle's Tidy command:
Could we add "-wrap 0" to the options? I've done it to my local copy
-- it stops Tidy from wrapping your HTML at column 78.
Thoughts?
Tony Arnold
http://tonyarnold.com/
“The university was great. They gave us money and facilities,
but we didn’t have to produce anything. I’ve worked in the
private sector. You don’t know what it’s like out there. They
expect results.” -- Dr Ray Stanz, Ghostbusters
I also really like how you can click to change tabs and languages,
it's intuitive. Keeping in line with that, perhaps a click on the
line and column info should launch the "Go to line" window. Not that
i'd ever use it, just to get that intuitive feeling.
Also, while others ... are in the tab settings when you click on a
window, it does not appear in the drop-down menu, this is
inconsistent behaviour and therefore bad :)
Andreas
Hi all,
I'm trying to get the Matlab bundle to work. I've done an svn
checkout of all of the bundles into my /Library/Application Support/
TextMate/Bundles directory. And... most of the languages appear when
I restart TextMate, but a few (Matlab, Darcs, Quake, R, Gri, and a
few others) don't. The permissions on all of the bundles are
identical, and nothing suspicious shows up in Console.app about
TextMate not being able to parse or read anything. Am I missing
something?
Thanks,
Glen
____________________________________
Glen Henshaw
Naval Research Laboratory
ghenshaw(a)space.nrl.navy.mil
I'm having a bit of trouble figuring out how scope is determined by
TextMate.
What has to happen for "source.ruby.rails" to be active? I am working
in documents with .rb and .rhtml extensions, but unless I remove the
Scope condition I can't get the Rails snippets to be active.
Can I attach a command to a project file so that it is only available when that project is open and foremost in TextMate? I'd like to write a command to rsync a project's files to a server, and give each project its own command to sync the proper directories to the right server.
Thanks,
Shawn
Hello Mark Windrim
I'm Seán Windrim, just starting a web site, and
exploration of my name. Any help would be
appreciated!
Thanks!
Seán Windrim http://windrim.org/
Hi.. I've been finding a lot of these temp files lying around here and
there.. Is there anyway to have the editor remove them afterwards a file
is closed? Currently (at least as of version 1.1b17 (513)) this isn't
the case and I find that I've got just tons of these files lying
around.. I'll assume this is a bug, but it would be nice to get fixed if
it's still outstanding..
Thanks!
-- Rick
Hello,
I mainly use PHP and Perl Languages, so I deselected all the others.
For some reason, I had 4 bundles in the PHP folder: 2 HTML(php) and 2
PHP. I deleted the 2 I figured less useful, and I realized I lost
smart typing.
I deleted the application, the folder in the Library with all the
bundles, downloaded again the app and made a svn checkout. Still it
doesn't work.
In the Languages window, I have some () [] directives under
Preferences, though.
thank you for help
max
I'd have rather assumed that foldings were NOT printed, yet there
they were ... I can also see situations where you want them to be
printed as well. Just raising the issue.
Andreas
[CHANGED] When a new version is available, TextMate will download it
automatically (w/o first asking the user), though showing progress
underway which can be cancelled.
I have to say..UGH here. Can we get this turned into an option? I'm
usually the type that prefers to initiate my downloads rather than
having them done for me, for a variety of reasons, some security,
some due to available bandwidth at the time, etc.
I dunno, that's just me.
After loading a python file into textmate, I noticed that the folding
is very inconsistent throughout the file:
http://www.flickr.com/photos/84201647@N00/53572833/
Notice in the screen shot that one method is folded after the comment
(!) and others are folded at some arbitrary point inside the method
(!!). I tried searching the mailing list archive for this, and most of
the references are from last year. Am I missing something, or has this
problem not been fixed in the past year?
Hi Allan,
I just noticed that the command output option ³output in new window² is
deprecated in the latest builds, is something going to take its place in the
future?
Chris Jenkins
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
I was just writing this PHP form thing and I like to use the "here
document" syntax for it. While it technically makes sense that the
whole block within the <<<TAG [ ... ] TAG; is colored as a string, it
makes it hard to read a large block of let's say HTML (kind of a very
usual use for it)... Is there anyway to keep the HTML within colored
as regular HTML?
Hope my question makes sense :)
Thanks
Hello,
I just started using TextMate about a week ago, and I've been
collecting some of my impressions, and any notes for things I had
trouble learning how to do. I was going to add this to the wiki on a
User Page, but I can't seem to find how to do that.
Overall, I really like TextMate. I was actually prompted to try it
out by someone on IRC when I asked what people thought of BBEdit -
since they're having a sale for $99 right now. So, I was going to buy
it, but I was scared off when people kept talking about "bloat" and
whatnot. So, I'm giving TextMate a shot, but I've become rather
familiar with TextWrangler, so most of my feedback has to do with
coming from that paradigm - just to warn you.
Anyway, here's the beef:
===============================
= TextMate Notes =
===============================
====================
= Feature Requests =
====================
make it so that you can always show the file browsing drawer
allow a "single window" interface where new files opened are always
opened in the same window (like textwrangler)
looking for an easy way to make textmate the "default text editor" or
something to that effect
if you move a file (via the finder or whatever) while it is being
edited, textmate can't follow it (textwrangler did)
collect color "themes" on website for easy download
option to make file browsing drawer on the right
=====================
= 2005-10-14 snippets =
=====================
snippets are specific to the language.
you can find them in the menu - Automation -> Insert Snippet
go to Edit Snippets to look around
You can choose Tab Trigger from the drop-down to see the trigger
a Trigger is important - you have to be in the right language for the
trigger
to see, for example, the auto-link thing on the home page video...
make sure you're in html, and then type "ref" and then <tab>
then you can tab to the two areas of the tag you'd want to edit
note - and this is very cool - you can use PHP language snippets in
html...
just open the php stuff with the tags <?php etc - and within there,
php snippets will work
================
= 2005-10-14 Balance Tags =
================
coming from textwrangler - one of the first things i looked for was
tag balancing
that's where it will highlight all the code between two { } things
this is good to make sure you're balancing your tags out
==================
= 2005-10-14 Multiple files =
==================
dragging a folder into the textmate icon in the doc will open them
with a drawer to see all the files
=================================
= 2005-10-19 The Project Drawer =
=================================
choose file -> new project to have the file browser appear
you can make folders in the project drawer
one trick might be to make a single project with many folders that
contain all of your text files
Changing the macro to be triggered by a < key seems sensible, since
that's related to tags, but why not also change the insert closing
tag then to ctrl+> for instance? Right now they are very separate key-
wise, but quite close function-wise.
Andreas
Hi,
I find it continually disconcerting that pressing Cmd+/ without a
selection comments out my entire file.
I had a quick look at the Toggle Comments command but couldn't
immediately see why it does this or how to stop it.
The behaviour I want is, when there is no selection, to comment out/in
the current line.
Is it possible for me to make this change?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
Latest version mentions this:
"I normally do not mention changes done to bundle items (there's a
separate RSS feed for these)"
I didn't know that! Is there some place on the web site listing the
various feeds?
Gerd
Forgive the spam, but I can't for the life of me figure out what the
keyboard shortcut for the Edit in TextMate service is supposed to be
-- the cmd+-^- symbol has no meaning to me, and I have yet to figure
it out.
Any help would be much appreciated -- thanks.
-jrk
I think command+option+w should be close all (windows in a project)
rather than soft wrap. All other applictions (and by that I mean at
least the finder and pages) close all windows on command+option+w.
Andreas
The syntax highlighting for below shell script is incorrect, the
nested parenthesis are not properly handled. No idea if this can be
easily fixed...
Gerd
#!/bin/sh
currFolderPath=$( /usr/bin/osascript <<"EOT"
tell application "Finder"
try
set currFolder to (folder of the front window as alias)
on error
set currFolder to (path to desktop folder as alias)
end try
POSIX path of currFolder
end tell
EOT
)
cd "$currFolderPath"
Hello all.
I tried to find the info I request now in the
archives and on google. I couldn't find anything.
Is there a way to change the behavior of the end-key
not to go to the end of a page. I whould prefer going
to the end of the line.
Can I configure something like that in textmate?
Thanks.
Regards
Karl-Heinz
This is something I would like to have sometimes, to be able to
narrow the project tree in the project drawer to some subtree. For
instance, in a project with a lot of stuff (docs, aux scripts, etc.)
I'd like to focus on the source subtree when programming.
Just an idea to throw to the "desired features by at least one
user" :-).
-- fxn
I'm wondering if anyone else is having problems running LaTeX from
Textmate. I am geting curious errors regarding multiply-defined tables
and equations, despite the fact that all tables and equations were
confirmed not to be multiply defined. Note that running LaTeX from
TexShop results in a successful build. I am using the same version of
LaTeX for each.
Thanks,
C.
This seems to mean jump a paragraph in most apps, but I can't really
work out how it works in TextMate, anyone?
I think it would be rather natural if it jumped between folding
points ...
Andreas
I'm getting the following parse error when I try to run the "Blame"
command from the Subversion menu:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_blame.rb:61:
parse error puts ''+ linecount.to_s + "\n" + ^
This happened on build 540 as well as 567. I'm running 10.3.9.
Thanks,
Bryce
Hi All,
I'm using TextMate for lots of HTML these days. I like the built-in
Tidy command but it removes non-breaking spaces ( ). How do I
adjust this?
Next, I have a nice Tidy config file that I use when running tidy
from the command line. Can I configure the tidy command to use my
config file?
Finally, in the Tidy command in the Bundle Editor is this comment:
# BEWARE. Errors are suppressed. Use Tidy Error Display first!
Where is the Tidy Error Display command?
Thanks,
-Eric
--
Eric Knapp
Lead Java Instructor
Information Technolgy
Madison Area Technical College
http://matcmadison.edu
3550 Anderson Street
Madison, Wisconsin 53704
Telephone: 608.246.6641
Fax: 608.243.4754
Email: eknapp(a)tds.net
Hi Folks,
Just wondering if anyone out there is using TextMate for lisp
programming ... ?
Don't see much in the way of any snippets (except for an Overtype ')'
-- which still isn't very clear to me what that does) .. also don't
see much talk about lisp on the mailing list.
I'm just getting my feet wet w/ it (lisp, that is) and was thinking
about ways and means my editor can help me :-)
I was thinking it might be a useful thing to do a function-lookup to
a local copy of the hyperspec (a la what I think slime does for
emacs) ... just checking if anyone else has any good ideas they've
been using in their workflow w/ tm and lisp.
(Maybe it's better to stick w/ the emacs/slime combo on this one,
though?)
Thanks,
-steve
Hi,
I decided to scratch a small itch this morning, so now I have a (very
basic) Zope bundle which will do some syntax highlighting on plain
DTML documents and ZSQL methods. More information and a download can
be grabbed here: http://woss.name/2005/10/19/zope-bundle-for-textmate/
It'd be nice for the bundle to wind up in the svn repository
sometime, but unless somebody's daft enough to give me write access
to it in the repository, it'd probably be better to hang off until
I've got it into better shape...
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
When column typing on a plain-text document with a selection of little
more than a thousand lines, textmate takes many seconds (almost a
minute) per char, and makes the entire system unresponsive. (G4 1.0,
panther).
I understand it's not everyday that you use selections this long, but
in case it's something relatively trivial to fix and you're so
inclined... For now it's back to sed I guess.
> [REVISION 567]
> [NEW] There now is a New From Template menu under File (and you can assign
> key equivalents to the templates via the Bundle Editor).
Thanks a lot Allan, I've been expecting it for ages. It's great.
Have a nice day,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I notice that there is no FORTRAN syntax highlighting built in to
textmate. Surely there are FORTRAN programmers out there coding in
TextMate? I found one link to a bundle, but it was dead. Can someone
please point me to the latest FORTRAN bundle? I do about half of my
programming in FORTRAN, so this is vital. Thanks.
Is there a way to turn off HERE document syntax highlighting in Tcl?
I' getting wrong highlighting when adding events like:
event add <<Paste>> <Ctrl-v>
because it thinks it's a HERE document. I've looked at the Tcl
syntax, but there isn't anything there, so I'm guessing it's coming
from somewhere else...
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Hi,
I can't seem to locate any info about the txmt:// URL scheme anymore.
It used to be in the release notes, but sadly they now appear to be
curtailed (not good, I used it as manual all the time!). It's
probably in the blog somewhere, but without a search function that is
a bit hard to find. As usual 'Help' is useless. And since the mailing
list messages are prefixed with [TxMt] a google search isn't helpful
either...
So where can I find it these days?
Gerd
Hi,
I've made some custom snippet for Perl in bundle. How can I export
these ones or the whole bundle to share them?
And another question: how to use "Drag commands" (i.e. in html)?
TIA
--
salvo
Hi all,
I would like to start a discussion on the tabbed interface in project
windows. I have some issues that I would like to point out and I will
offer my opinions. However, I really just want to see what the TM
community thinks about these things.
When a project window has lots of open files and there is not enough
room to fit tabs across the top of the window a arrow appears next to
the tabs. When you click on the arrow you are given a list of those
files that do NOT have a tab. You can then click on one of those
files to bring it to the front. But, then the front file does not
show its tab. You can see what file you are working on by looking at
the title bar but I think this is confusing.
The interface is combining a list interface with a tabbed interface
and I think this could be improved. The first suggestion I have is to
have all open files in the list and always show the arrow. You could
have the files that have visible tabs be in bold. There are times
when I just don't see an open tab and click on the arrow only to also
not find the file there.
The next suggestion is to have the tabs scroll and always show the
currently forward file's tab. I don't mean to add a scroll bar, just
that the tabs could shift over when a file is selected from the arrow
list.
Does anyone else find that this behavior could be improved? Are there
other suggestions? Has this discussion already occurred? If so then
many apologies.
-Eric
Following are two Perl snippets that cause syntax highlighting to get
wacky.
This first one causes everything that comes after for the remainder
of the file to be colored as a string:
message(<<EOF) if $TT_PREFIX;
EOF
And with this one, as well as the one above, anything after the first
here-doc delimiter is colored as a string:
$sql .= <<SQL if $type eq 'com';
SQL
Regards,
Michael Irwin
Please please Allan include block undo/redo. At least as an option.
Not only is it standard on all other programs (that I know of) I find
it far more usable. If I want the latest character I typed undone,
I'll hit backspace.
I currently sit and try to figure out a good XML scheme for myself,
and I find that I change whole words very much, such as tag-names and
allowed values for attributes, it's a pain to hit the undo button so
many times as is necessary.
Andreas
Hi,
I discovered db_structure in Rails last night, as a way of creating
SQL files once instead of once for each database type. And so I've
mangled together a language for it, basically stealing the rhtml
syntax and modifying it to include 'source.sql' instead of
'text.html.basic'. Hopefully I've done right -- it appears to work.
I've attached it in the hope that other folks might find it useful
and that it might wind its way into the svn Ruby bundle sometime?
Regards,
Graeme
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
I create a new file with ISO-8859-1 (Latin 1 or Windows) encoding selected,
either by doing a Save As.. with ISO-8859-1 selected or setting the File
Encoding to ISO-8859-1 in Preferences.
I close the file and reopen it. It's not opening in ISO-8859-1. Does Text
Mate reopen all files in UTF-8 event though ISO-8859-1 is specified in
Preferences or the file was save as ISO-8859-1?
Thanks,
Ed
Hi Allan,
got a bug for you (unless it's a feature I don't get)
release 540
c++ file
after editing for a while with file open in 2 windows (in fg, file
was in a temp project) switched to bg window (lone file), and
scrolling there moves the cursor offscreen -- ie, the window won't
scroll. Window has no scrollbars. Cmd-L takes cursor to line xx
offscreen as well. In the other window (same file, in temp proj)
scrolling works fine. Pg down has no effect.
Resising window fixed it (redrew scrollbars; keyboard motion now
makes window scroll)
****
update: i can recreate this. it occurs when a window has no
scrollbars & you edit (vertically enlarge) the same file in another
window (eg drag its icon into a temp. project & edit) such that it
needs scrollbars - the original window must be resized or window
scrolling is disabled.
scuse me if this is known
cheers,
David
Summary
Folding should count fold start/stops at the current indentation
level to properly pair a fold start with a fold end.
Details
With my Lua bundle, I have folding set to work for block comments and
functions (among other things).
If 'v' represents a start fold marker, and '^' represents and end
fold marker, then creating an unindented (column 0) function looks
like this:
v function foo( )
print( 'hey' )
^ end
So far, so good. Now, suppose I block comment out this function
(without indenting it):
v --[[
v function foo( )
print( 'hey' )
^ end
^ ]]
This looks correct, but if I toggle the first folding marker, I get
this:
> --[[•••
^ ]]
In other words, the folding looked for the first end marker that was
at the same depth as the start marker, and (incorrectly) used the
'end' line. Instead, I propose that it should scan down and when it
sees the second start fold marker at the same depth, add 1 to a
counter; when it sees the first close fold marker at that depth, it
checks the counter...since it is non-zero, it subtracts one. Finally,
when it sees the last fold marker, and the counter is at zero, then
it uses that as the correct, paired end fold.
P.S. What's the netiquette/guideline regarding attaching screenshot
images inline to an email message to a mailing list, when that
mailing list is almost certain to be used solely by MacOS users, who
likely are using a Mail program that would support them? Would have
been easier than the ascii art above (which itself is non-plain text,
so I'm violating another common mailing list rule there).
Saw that this bundle was edited by Allan on 11 october, to remove the
F1 key, bundle found here;
http://anon:anon@macromates.com/svn/Bundles//trunk/Bundles/
PHPCodeCompletion.tmbundle/Commands/Insert%20Snippet.plist
Is this somehow "official" now, I installed that bundle (and manually
removed the F1 key from it) ... I tried removing it from my bundles
directory and restart TextMate, but I lost funcionality and coludn't
find it in the "more bundles" button either, so I suppose it's not
yet in the build as such?
Andreas
Hi,
I'm trying to see if I can manage without eclipse in my daily
workflow. I'm not sure if I'll be able to do without it completely,
as it does nice stuff like popup function name completion etc. that
really need the editor itself to be written in Java. I should be
able to do without it for my view code and (server-side) javascript.
One thing I miss from XMLBuddy (eclipse plug-in) is Ctrl-space to
close the current tab. e.g. if the editor looked like this:
<div>some text|
and you hit ctrl-space, it would append </div> to that line. Has
anyone written a macro to do that? I would imagine it could get
quite complicated, XMLBuddy will still append </div> even if the edit
buffer looks like this:
<div><p>some text</p>|
so it isn't just reading back to the first <:alpha:+>.
I know about the <[tab], >[tab] and <a[tab] snippets, but I always
forget to use them. I could probably learn, given time...
Jon
I am a beginner with textmate, and I wondered where I could
get soem kind of tutorial for it. Not for the basic editing
fuvnctions, but for customization, what textlate can do apart
editing, etc.
I tried the wiki, but I'm much more at ease with a document I can
print and read. Is tehre something like that ?
--
Erwan David
For those who got r540 and is on a Panther system, here's a direct
link to the previous build:
http://macromates.com/textmate/build/TextMate_r528.tbz
I do plan to continue with Panther support, but with the current
developer tools, it seems to be Panther or i386, but not both, if I
want to use libcurl -- it may take a day or so before this is sorted
out. Meanwhile the auto-update won't let Panther systems update to r540.
When I hit enter on <div>|</div>, I get this:
<div>
[tab]|
</div>
which is great, I can immediately begin typing and nesting and so on.
I'd like this behaviour also for the p tag for instance, and all the
other block tags. Also for all xml tags that aren't ended with a /
(that is, not for <tag/>, but for <tag></tag>).
Andreas
I added the following to my javascript bundle, over the normal
function detection code (but that wouldn't make any difference, right?)
{ name = "meta.function.js";
match = "^\\s*([a-zA-Z_]\\w*):\\s*(function)\\s*\\(([^)]
*)\\)";
captures =
{ 1 = { name = "entity.name.function.js"; };
2 = { name = "storage.type.function.js"; };
3 = { name = "variable.parameter.function.js"; };
};
},
{ name = "meta.function.js";
match = "^\\s*(var\\b)?\\s*this\\.([a-zA-Z_]\\w*)\\s*=\
\s*(function)\\s*\\(([^)]*)\\)";
captures =
{ 1 = { name = "storage.type.js"; };
2 = { name = "entity.name.function.js"; };
3 = { name = "storage.type.function.js"; };
4 = { name = "variable.parameter.function.js"; };
};
},
the first should match functions like
functionName: function(arguments) { ... }
and the second
(var) this.functionName = function(arguments) { ... }
with the first var being optional.
Is it correct? It seems to work but I don't dare trust my RegExp
skills ;)
Any other comments?
Andreas
Hi,
I don't suppose it would be a quick fix to make the 'go to symbol'
dialog behave in the same way as the 'go to file' dialog? Or even
just make the list of symbols sortable?
Regards,
Graeme
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
I tried to contact 'Wes' about the Lua bundle mentioned on the Wiki
bundle page, but never got a response, and decided to just write my own.
I think the syntax highlighting is correct - it includes appropriate
highlighting for all the keywords as well as all the built-in library
functions.
In addition to some convenient Snippets for code forms that I
personally write frequently, I've added 'cheat sheet' Snippets for
all the global built-in functions and the table, string, and
coroutine libraries. These tab trigger Snippets fill out the argument
list with descriptive names, including which parameter(s) are
optional. When parameters are optional, I included the preceding
comma in the placeholder, so that tabbing through the function and
pressing delete will remove any undesirable optional parameters.
(I got tired of entering all the Snippets, and have not yet added
Snippets for the math, os, or io libraries.)
You can download my bundle from http://phrogz.net/tmp/
Lua.tmbundle.tar.gz
(Is anyone else using programming Lua on MacOS X? :)
Hi all,
I just managed to crash TM. Do you want me to put the crash log
somewhere? It seems a bit big to post here I certainly will if you
would like me to.
-Eric
Hi everybody,
It took me a little while to come up with this, what with finding the
correct command and environment variable etc., so I figured that I
might as well share it here. When you compile something with TeX or
LaTeX in Terminal.app instead of say TeXShop or our favourite editor
and an error message like this pops up
-----------
! Missing $ inserted.
<inserted text>
$
l.7
?
----------
you can enter 'e' to edit that file and correct the error. The
problem on a vanilla TeX installation is that the vi editor is used
for this. To use TextMate instead you can put this command in
your .tcshrc
setenv TEXEDIT "mate -w -l %d %s"
and on entering 'e' TextMate will be launched and the caret will be
placed on the line where the error occured. For the bash shell the
above command would be
export TEXEDIT="mate -w -l %d %s"
I hope you'll find this useful, I certainly do :-)
Bye, Thomas