Hi Allan and friends,
I have a source tree structure like this:
www/
site/
index.tcl, .adp
one.tcl, .adp
edit.tcl, .adp
item/
index.tcl, .adp
one.tcl, .adp
edit.tcl, .adp
The fact that files are named the same, but in different directories:
- Confuses both the Cmd-Opt-Up "Go to Header/Source" feature, which
will gladly find www/item/one.adp when I'm editing www/site/one.tcl. It
would be good if it would prefer the file in the current directory when
one exists. Otherwise, it's a great feature.
- Similarly, when using Cmd-T "Go to file", which I use almost
exclusively to open up new files now, it would be great if I could
write "itemonetcl" to get item/one.tcl, as opposed to site/one.tcl.
Currently, it doesn't take the path into account at all.
I can see some downsides to changing current behavior, too,
particularly with the Go to file feature.
But let me know what you think.
/Lars
Hi all,
I was wondering if anyone has any suggestions as to how one might use
Textmate to interface with Matlab? I can have a command execute a given
.m file, but Matlab is a much heavier process to load than perl is from
the command line, so that becomes a very unattractive option.
Ideally I'd like to have Matlab running in a terminal (the java
interface is just too slow for me), and edit with Textmate in such a
way that commands could reach the already loaded session.
cheers,
-don
==========================
Don Kalar
Graduate Student,
Cognitive Neuroscience
UCLA Department of Psychology
1285 Franz Hall, Box 951563
Los Angeles, CA
90095-1563
==========================
PROBLEM:
The feature of all mac apps that I use the most is search.
Specifically find selection & find again. I use that feature to step
through every instance of that selection throughout my code. One
feature that I would love to see is a back button for selections.
Every time you do a search or scroll through your document & select
something, to get back to the last thing you were working on you have
to have set a bookmark & remember which bookmark you were last
looking at, or you have to manually find that place in your code again.
I work on other peoples old janky ASP 'classic' and quickly slapped
together ASP.NET code on a deadline. Anything to help me make quick
work of navigating through the (massive mountain of fetid spaghetti)
code the better.
SOLUTION:
If there was a way for the program to note every time you move the
selection more than 'a little bit' & log that information
sequentially, all you'd have to do to get back to what you were last
looking at would be to hit the back button. bam bam... done, no
thinking.
I know the system is extremely extensible, i'm sure there is some way
for me to 'roll my own' system for doing something similar.
(1) I'd need a command to get the current input location row & column
(2) log that information somewhere
(3) a command to get the last input location from 'wherever' and then
(4) a command to set the input location to 'that location'
??? I think i could figure all this out with applescript and bbedit,
but i'm still rather green when it comes to hard-core UNIX hacking.
Anyone have any suggestions? ??
IDEA: Maybe a quickie version of it would be to undo the last edit,
which would take me back to the last place I was, but then redo my
last action without moving the input location so I don't lost any
work. hmm...
Maybe there's another solution to my problems that i haven't
considered. What does everyone else do?
Hey!
I just watched the 10 minute Ruby on Rails intro video
(http://rubyonrails.ams.cachefly.net/rails_setup.mov) where TextMate
used a pane for project files instead of the shelf. The pane looks
good, any chance it will return?
I realize this will make TextMate look a lot more like Xcode, but that
wouldn't bother me..
Perhaps something similar to the one in Mail2 (Tiger) .
hans petter.
Anyone here use or has used TypeIt4Me? I loved the idea while it worked
on my machine, but after 5 minutes it disappeared from my menu bar and
the developer is not responsive. Basically every time you press a space
it scans a list of abbreviations and expands the text if it finds a
match. Is this something I could do in tm with a command?
- Ben
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]
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.
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
I don't know when it happens, but it seems to just kick in after a
while. Anyway, some keyboard shurtcuts stop to work, and when I go in
and try to reassign them just to see what happens, a "cirlce" is
inserted behind the shortcut, a picture will say more than I ever can
explain.
http://hem.bredband.net/perihelion/textmate.png
it seems my keyboard sends in this very weird thing, which only
affects textmate. I have version 1.17beta (the latest beta released a
while back, not the latest latest, and I do nothing cvs fancy or
anything, I download from the main page every once in a while).
I run tiger 10.4.2, on a powerbook, but I have an old "pc" ps/2 type
keyboard hooked up through a ps2->usb converter.
Since you'll probably ask me this, I'm gonna try with the built in
powerbook keyboard now.
The powerbook keyboard seems not affected, and when I pull out and
replace the usb cable it seems the problem disappears. Interesting to
note is also that
<div></div>[enter]
does not produce
<div>
|
</div>
but instead
<div>
</div>
so in the end, I guess it's related to my converter somehow, but now
you all know for the future :)
Andreas
>
>>>> I'm getting this error after copying the new command line tools to /
>>>> usr/local/bin:
>>>> tm: you need to update this helper tool.
>
> This is actually quite strange, since the protocol used to
> communicate with TM and the tool is at the same version as it has
> always been (so no combination of TM and the tool should give this
> error).
>
> The only reason I see is that the TM started actually predates
> implementation of the protocol. Do you keep old versions of TM
> somewhere on your disk (even the trash counts here)?
Nope, no old versions on disk. However the issue mysteriously
disappeared when I checked just now.
*crosses fingers*
- Ben
With relative frequency, I have to open a bunch of related files with
similar name. Before the latest betas, I could just hit cmd T repeated
times and open each at a time.
Now that TextMate clears the search to display the last opened items,
it's a bit more cumbersome to do it. So maybe TM could allow multiple
selection in the Go To File window, so that I can open them all at
once. (via both mouse and keyboard, prererably) What do you think?
if you put an inline comment in PHP on the first line of a function
declaration, something like that for instance:
function thumbnail_table($name='off', $size='off', $dimensions='off')
{ // values - 'name' 'size' 'dimensions'
it will mess up the little arrow thinggy for text folding.
.........................................
m i n i m a l d e s i g n
244 Fifth Avenue - Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: work(a)minimaldesign.net
site: http://minimaldesign.net/
> > Works for me -- using latest build (http://get.textmate.org/):
> >
> > cmd N (new buffer)
> > Paste previous 3 lines
> > option-ctrl-shift R (switch to Ruby)
> > cmd R (Run Ruby)
> >
> > And this is what I see:
> >
> >
> > <pastedGraphic.png>
> >
> > Entering a string and pressing return outputs the strings and
> finishes the program.
> >
> >
>
> The latest build works! Thank you.
>
> Bill
Latest build (478) does not work for me with this. Cheers,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
FWIW, I would request that core JS methods be kept separate from HTML-JS-DOM specific bindings.
To be clear, clientX, et al are not in the core JS language, but rather are properties of objects exposed by HTML user agents. For a list of ECMAScript-specific objects, properties and methods, see
http://phrogz.net/ObjJob/objects.asp?langID=4http://phrogz.net/ObjJob/properties.asp?langID=4 <http://phrogz.net/ObjJob/properties.asp?langID=4http://phrogz.net/ObjJob/ob…>
http://phrogz.net/ObjJob/methods.asp?langID=4
________________________________
From: textmate-bounces(a)lists.macromates.com on behalf of Andreas Wahlin
Sent: Mon 9/19/2005 9:07 AM
To: TextMate users
Subject: [TxMt] addittion to JavaScript bundle
While poking around there I found some other things that should be
added (?)
clientX,clientY,scrollLeft,scrollTop,style
for support.constant.js
appendChild
for support.function.js
and support.function.event-handler.js should, I think, be made to
ignore case.
It would be cool if the one thing after styl. could be somehow me
matched to the css rules ...
er ... somethnig like this?
{ name = "support.constant.js";
begin = "\\.\\b(style)\\.";
end = "\\s*";
captures = { 1 = { name = "support.constant.js"; }; };
patterns = (
{ include = "#tag-stuff"; },
{ begin = "\\.";
end = "\\s*";
patterns = ( { include = "source.css"; } );
},
);
},
Andreas
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
On Sep 30, 2005, at 10:15 AM, textmate-request(a)lists.macromates.com
wrote:
>
> From: Allan Odgaard <allan(a)macromates.com>
> Date: September 30, 2005 10:14:31 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Re: Input from gets in Ruby (Sune Foldager)
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 30/09/2005, at 16.09, William M Shobe wrote:
>
>
>> I have tried using gets and no input dialog pops up. Here is my
>> code:
>>
>> puts "this is a test"
>> puts gets
>> puts "end of test"
>>
>> I use Run Ruby, and here is the output:
>>
>
> Works for me -- using latest build (http://get.textmate.org/):
>
> cmd N (new buffer)
> Paste previous 3 lines
> option-ctrl-shift R (switch to Ruby)
> cmd R (Run Ruby)
>
> And this is what I see:
>
>
> <pastedGraphic.png>
>
> Entering a string and pressing return outputs the strings and
> finishes the program.
>
>
The latest build works! Thank you.
Bill
PS When I download the latest build, there is a second file called
"mate". Is there something I need to do with this file?
I have tried using gets and no input dialog pops up. Here is my code:
puts "this is a test"
puts gets
puts "end of test"
I use Run Ruby, and here is the output:
this is a test
puts "this is a test"
end of test
Bill
> From: William M Shobe <shobe(a)virginia.edu>
> Date: September 29, 2005 10:28:59 AM EDT
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Input from gets in Ruby
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Please excuse the simple question, but I am experimenting with
> TextMate and Ruby. The output from running a Ruby script goes to a
> stdout window. However, I can't figure out how to get input from
> the gets method. Is there any way to read from stdin when running
> a Ruby script from the Run Command>Ruby>Run Ruby menu?
>
> Thanks for any help.
>
> Bill Shobe
>
>
>
>
>
> From: Sune Foldager <cryo(a)cyanite.org>
> Date: September 29, 2005 12:08:58 PM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Input from gets in Ruby
> <snip>
> Yes, this happens automatically, but stdin is redirected to read
> input from a dialog which should pop up whenever your script does a
> gets or similar.
>
> -- Sune.
>
>
> <snip>
>
> From: Sune Foldager <cryo(a)cyanite.org>
> Date: September 29, 2005 1:58:10 PM EDT
> To: Kumar McMillan <kumar.mcmillan(a)gmail.com>, TextMate users
> <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Input from gets in Ruby
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 29/09/2005, at 19.54, Kumar McMillan wrote:
>
>
>> oh, hehe, it is just the Run Ruby command. Sorry, I thought you
>> meant
>> this was built into TextMate!
>>
>
> Nope :-p, but it's built into the Run Python command also :-).
>
> -- Sune.
>
Please excuse the simple question, but I am experimenting with TextMate
and Ruby. The output from running a Ruby script goes to a stdout
window. However, I can't figure out how to get input from the gets
method. Is there any way to read from stdin when running a Ruby script
from the Run Command>Ruby>Run Ruby menu?
Thanks for any help.
Bill Shobe
I've started a very rudimentary TextMate language bundle for Django
templates (http://djangoproject.com). It's just a bunch of snippets
for tab-completion of the standard template tags and a very basic
language definition for syntax coloring.
I'm new to tmbundles, so everything is extremely basic and naive right
now, but if anybody out there is editing Django templates and using
TextMate, feel free to give it a whirl and let me know what does and
doesn't work. Suggestions or additions are welcome.
Grab the bundle here:
http://media.wilsonminer.com/images/django/Django.tmbundle.zip
When TM detects that a file with unsaved changes changed on disk, it
flies a warning panel. If the panel is not closed, but instead I
switch to another application and back to TM, it will fly another
panel. This can be repeated...
Also that panel should probably be modal to the window.
Gerd
Hi !
Thanks all for your answers. So I will look again at TM when it
reaches 1.3.
Just a few comments :
>> - I need some way to close XML tags automatically with the easyiest
>> possible keystroke. For some reason, the shortcut for this feature
>> does not work on my system (Tiger on iBook G4 and latest version of
>> TextMate)
>
> command-alt-shift-; (on a French keyboard) does not work?
> Seems to
> me that on my old B&W G3 under Tiger it works regardless of the
> kind of
> document edited in TM.
I confirm that this does not work on my system. What's strange about
that is that when I hit this keystroke, the "Automation" menu
actually blinks, as if one of its items was activated, but nothing
more happens. But when I select the item in the menu using the mouse,
it works... As far as I remember I saw in another thread that this
may be due to some kind of conflict with a LateX-related shortcut.
> I have never used an editor that indented soft-wrapped lines. I
> would think that would be annoying because the editor would control
> the indentation, not you.
I'm talking about *soft* wrapping, so this is just a matter of
display. For me this feature offers a very clear view of text-
oriented XML documents (see screenshot attached).
Best regards,
--
Frédérik Bilhaut
GREYC - Université de Caen
Campus II - Sciences 3 - Bureau 385
http://www.info.unicaen.fr/~fbilhaut
as of rev. 469, the custom $PATH var I export from ~/.bash_profile
does not show up in a command *if* the command has a shebang. I don't
know if this is intended behavior but I had a snippet with :
#!/bin/sh
at the top and $PATH was not set the same way it is when I leave off
the shebang and let TextMate parse the command through bin/sh. I only
added the shebang when trying to debug something so obviously the
workaround (for bash anyway) is to leave off the shebang.
K
Is there a way to do this that is easier than all this svn stuff? I
want to install whatever I need to get my color highlighting of code
(html, javascript, PHP) back.
After having spent two days completely rebuilding three machines (and
there is still more to do) in the studio I don't have the patience to
figure out how to get SVN to work again...sigh. Why can't I simply
download a file, put it into a directly...and voila. Like a plugin
or whatever...
Help...
Thanks, v
html macro start/end tag from previous word is absolutely wrong. May
this be because of the new regexp rules/features?
when applying it on div, i get
?1< />:<></>d?1<iv />:<iv></iv>?1< />:<></>
it worked with 1.17beta.
Andreas
I find this macro quite useful, but it has some quirks (I think).
First, I love how it takes img tags and makes them <img /> rather
than <img></img>.
When I apply it on a li-tag, and then hit enter, I get a nicely
formated line break with a tab indentation
<li>
|
</li>
but when I do the same on a h1 tag, the result becomes
<h1>
|</h1>
How, why, fix, please et cetera.
Andreas
Hi,
Congratulations for your TextMate software, I just switched to MacOS
and I have to say that it seems to be very good. JEdit seems to be
still ahead regarding features, but unfortunately it is almost
unusable for me under MacOS because it is too slow. So I'm very
interrested in TextMate, but it lacks several features I need.
Since it is payware, and because you may be interested in potential
users' requests, here is what prevents me from purchasing TextMate
for now :
- I use to write large documents in XML, and I use the soft wrapping
feature. But unfortunately the indentation is not properly handled in
this mode, since only the first "physical" line gets indented. You
probably now JEdit does that very well, I may send a screenshot if
you wish.
- I need some way to close XML tags automatically with the easyiest
possible keystroke. For some reason, the shortcut for this feature
does not work on my system (Tiger on iBook G4 and latest version of
TextMate). Also, I think that the JEdit way to do this is very good :
you just have to type "</" and the rest of the closing tag comes up
automatically. For me this is far more natural than typing an
arbitrary keystroke.
For me the lack of these two features above is a real show stopper.
Also, I have some less important feature requests :
- It seems that it is not possible to use tabs without creating a
project. It would be nice to have an option to say where newly open
files should be opened (in a tab or a new window).
- I noticed that using the tabulation key when a block is selected
does not increment the block but simply deletes it. I assume that
there is another shortcut for this, but I think it would be much more
convenient to be able to use the tab key as for a single line, as
almost all good editors do.
- And of course, having the possibility to have a simple file browser
without creating a project would be great. By the way, it also seems
weird to me that the project explorer expands at the right of the
main window and not at the left, which is quite unusual under MacOS
and does not do well with window maximizing functions.
Thanks for your attention,
Best regards,
--
Frédérik Bilhaut
GREYC - Université de Caen
Campus II - Sciences 3 - Bureau 385
http://www.info.unicaen.fr/~fbilhaut
Hi all!
[For the impatient reader: Just some food for thought, no solution
given].
The discussion about remote projects made me think that ideally
Virtual File Systems (VFS) really do not belong into the editor,
rather they should be part of the OS. An example is the OS X webdavfs
[1], which allows to mount webdav servers with the Finder, or the
(poorly working and read only) ftp file system [2]. Something like
that for SFTP would be the ultimate solution.
Under linux there is an interesting project called Fuse [3], which
basically hooks a generic driver into the kernels VFS and
communicates with user-space file system 'modules' (the OS X webdavfs
works somewhat similar). Someone else recently wrote a driver for
FreeBSD [4] that allows to use the Fuse file system modules.
The problem is that the OS X VFS implementation seems to be rather
under-documented and auite the moving target [5]. It changed a lot
for Tiger. It has developed independent from FreeBSD, so porting the
FreeBSD Fuse driver is not at all trivial (lack of documentation
again not helping).
I briefly entertained a bridge that would make a remote sftp server
appear like a webdav server, allowing it to be mounted locally using
the webdavfs and without extra software on the server. While this is
relatively easy to do (at least compared to the alternatives), it has
one major back-draw: DAV [6] (complex [dare I say convoluted] as it
seems) does not support the notion of file permissions. And the
thought of making all files pushed to the server executable (or not
executable) is not very appealing.
The ftpfs [2] on OS X uses yet another approach: It presents itself
to the OS as an NFS server, and translates NFS to FTP. This may seem
like a convoluted approach (and it is), but has the advantage that it
can be completely implemented in user space, and the NFS protocol
encapsulates it from changes in the kernels VFS implementation. So
one could write a bridge/gateway program that serves NFS and
translates it to SFTP. Or (though I have not had a look at
feasibility) it might even be possible to make this Fuse compatible,
giving easy access to many of the file system modules available for
Fuse ([7], or makings of a RailsFS [8]). Sometimes I wish I wouldn't
have to work for food...
Gerd
[1] man mount_webdav
[2] man mount_ftp
[3] http://fuse.sourceforge.net/
[4] http://wikitest.freebsd.org/moin.cgi/FuseFilesystem
[5] http://developer.apple.com/qa/qa2001/qa1242.html
[6] http://www.webdav.org/
[7] http://fuse.sourceforge.net/filesystems.html
[8] http://redhanded.hobix.com/inspect/
railsfsAfterACoupleMinutesOfToolingWithFuseWhoa.html
Hello,
I haven't had a chance to follow all of the TextMate enhancements as
closely as I would like, but I thought that I saw something about
regexes being able to look back and forward now.
I edit a lot of python files that haven't been written with TextMate,
which means that lines inserted for spacing/formatting are completely
blank. It would be nice if the folding support for Python could
support files that weren't written in TextMate.
Is it possible with all of the regex changes lately that Python
folding support could now support this?
I don't think that just reformatting the file(s) in question will
help because the people writting the files use emacs and have the
contents of their buffer reformatted when they open the file and when
they write it out, they strip any spaces and tabs on blank lines.
Thanks for any information,
Jordan
When recording a macro with "Use selection for find" it seems to work
for the find clipboard bur not the replace clipboard.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
HI,
Is it yet, or will it be possible to get a item like this in
Safari->Services : "Edit page source in TextMate"?
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I've started using tm_wait as my mutt editor, and have been working on
an email bundle to make editing mail easier in TextMate. I've finally
got automatic hard-wrapping working (I have a macro bound to <return>
that hands off the current paragraph to the 'par' wrapping utility; this
handles wrapping better than TM's "Reformat Paragraph" command). The
last thing I'd like to do to polish off the text-wrap is to set "Soft
wrap" on and adjust the wrap column whenever an email is opened.
Is there any way to do this? The soft wrap setting at least appears
to be stored on a per-window basis. I was thinking they would be
stashed in the file's metadata, but using the xattr tool (mentioned at
http://arstechnica.com/reviews/os/macosx-10.4.ars/7) shows that only
the caret location is saved. (Hmmm... I could use this to place the
cursor below the mail headers... but I digress.) I haven't seen mention
of "hooks" in TextMate for calling commands/macros, but maybe I just
haven't looked hard enough.
Suggestions are appreciated.
--
eric
So I'm lying here, just staring at the ceiling tiles.
And I'm thinking about what to think about
I use Version 1.1b17 and have the re-indent-preference activated.
When I have a text like this:
<table>
<tr>
<td></td>
</tr>
</table>
and copy the 3rd line (the _hole_ line) and paste it between the 3rd and
4th line, I get:
<table>
<tr>
<td></td>
<td></td>
</tr>
</table>
Instead I would rather expect:
<table>
<tr>
<td></td>
<td></td>
</tr>
</table>
This doesn't happen, if the line before has no starting td-tag.
Another problem: If you put the cursor between the starting and ending
td-tag and press return, you'll get this:
<table>
<tr>
<td>
(cursor here)
</td>
</tr>
</table>
However, I would expect the ending td-tag to be indented.
Hi -
I've been using TextMate for a short while to do a variety of
software development tasks. My day job involves mainframe
development, including developing and maintaining REXX Execs. As I
didn't see that anyone had done this before me, I've created a theme
and syntax highlighting bundle for it. The syntax highlighting is
working quite well - I'd personally say that it's about 95% there. At
this point, I've come up with some questions regarding themes (mine
I've called the-not-terribly-original "Mainframe")...
1) If themes are to syntax highlighting (a language) in the way that
CSS is to HTML, then why is there not a way to specify in the
language definition a specific theme to use? I want to use my
Mainframe only when doing REXX stuff (so far), and other themes when
doing say C for instance.
2) It would be easier to create and maintain themes if they were on
the Window menu as the Bundle Editor is. Having it buried under
Preferences -> Fonts & Colors is IMO odd.
3) Unlike a language definition which I could cut 'n' paste or even
cut 'n' email, where do user created themes reside? and how could I
export/import or cut 'n' paste one?
Thanks!
Brian Caldwell
Hi List,
I'm pretty sure this has come up before.
What's the best way of using TextMate to edit a remote project via
ftp or sftp? The OS X finder's ftp disk seems to be read-only, so
that's no good.
Any distilled wisdom?
Cheers,
Ian
Hi,
I'm new to the list, so pardon me if this has been asked and answered
already, but a cursory review of the archives didn't yield anything.
I've got a TextMate project file that covers a directory that has a
couple thousand files in it. Now, I don't necessarily need to edit
all these files, but they're in the tree, and I didn't think adding
the parent directory of that tree to the project would have any ill
effects. But, TextMate seems to be affected by this, since upon
opening this project, it consumes 100 MB of RAM. And, every time
focus is taken and restored to TextMate, I get to watch the beach
ball for 10-20 seconds (I assume so it can review the filesystem to
see if anything needs to be updated).
Are these known performance issues? Is there anything I can do about
it? I've tried setting up a project that only contains the
directories of files that I actually need to edit and it seems to be
much happier with that. But honestly, is there any reason why it
should be so slow with large projects?
Thanks,
Brad
Okay. I'm working on some syntax-highlighting and such for a language
which, effectively, has no strings. Or rather, no quoted strings:
everything is a string or a list or whatever, depending on its
context.
The problem? One of the most irritating things is when I type a ' or a
", it adds a doubled one there. I want to disable that for just one
language... but not all... because when i'm doing Python or C++
programming, I quite like that feature.
Is there anyway to do that?
Thanks!
--Ix
Hi there,
When I hit Control-Shift-L to wrap my selection into an (A href=...)
tag,
TextMate takes a beachball timeout of 40 (fourty!) seconds, and when
it returns the href-part is empty.
What's up, is it just me?
If so, is there another easy way to make links?
For reminders, I'm using tm 1.1b17, and this is the snippet content:
> <a href="${1:`
> # if the clipboard contains a single line, let's use that
> if [[ $(pbpaste|wc -l) -eq 0 ]]
> then pbpaste|sed 's/&/&/g'
> else echo http://site.com/
> fi
> `}">${TM_SELECTED_TEXT:Link text...}</a>
Looks fine to me, assuming there's a real shell behind. For
discussion let's say my clipboard contains two lines of code, i.e. it
isn't huge.
Peter
Hi folks
I really don't know how this works, so I can only describe it: Some
revisions ago I figured out how I could add my own syntax coloring
for a specific language by typing ctrl+shift+p. Like this, I could
add a special syntax coloring for bold text in my markdown files to
see bold text more easily. When I pushed ctrl+shift+p while the
cursor was on a word sandwiched between two asterisks like **so**, I
got the scope for this as a tooltip: markup.bold.markdown. I added a
new element in my theme in the preferences and set the scope to
markup.bold.markdown. It worked perfectly. All text marked up as
**bold** in my markdown files got formatted the way I defined it. --
To get to the point: Some revisions ago, this suddenly stopped
working. It still works for the markup.italic.markdown scope though.
Maybe somebody knows how to fix this? Thanks!!
btw. I'm using Version 1.1b17 (452) with the latest bundles.
Oliver
I tried to write an applescript that opens the source code of the
frontmost Safari window in TextMate (that what happens when you press
Cmd-Alt-U in Safari, but with TM instead of the internal viewer). So,
I asked in the IRC how to open a file in TextMate via Applescript. I
was told that TM does not support Applescript and I should curl the
source and open that via open -a instead.
Well, this would work, but for my simple purpose, it could be done
easier; I mean, we got the source already in Safari, so why start a
curl download?
After some try and error, I found out that the command line tool tm
is all I need:
-- Script start --
tell application "Safari"
set mySource to the source of document 1 as string
end tell
do shell script ("echo " & quoted form of mySource & " | /usr/local/
bin/tm -a")
-- Script end --
tm must be installed in /usr/local/bin to work in this script. This
echos the source code into a file in /tmp and opens it in TM. I
binded it to my Hotkey-App and open it via Cmd-Alt-U in Safari. Works
nice.
Aaron
Is anyone interested in a MUSHCode bundle? I'm slowly but surely
working on one. If its anything someones interested in, I'll submit
it. MUSHing isn't a huge hobby so I'm not sure if there are any other
MUSHers out there who adore TextMate as much as I do :)
--Ix
In case you haven't heard about this, it works great and has no
problems with TxMt's input manager (unlike my previous TextExtras
hack). I wrote up a little hack to add word's autocorrect dictionary
here:
http://www.unfitforprint.com/articles/2005/09/19/textpander-with-word-
autocompletion
Cheers,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
While poking around there I found some other things that should be
added (?)
clientX,clientY,scrollLeft,scrollTop,style
for support.constant.js
appendChild
for support.function.js
and support.function.event-handler.js should, I think, be made to
ignore case.
It would be cool if the one thing after styl. could be somehow me
matched to the css rules ...
er ... somethnig like this?
{ name = "support.constant.js";
begin = "\\.\\b(style)\\.";
end = "\\s*";
captures = { 1 = { name = "support.constant.js"; }; };
patterns = (
{ include = "#tag-stuff"; },
{ begin = "\\.";
end = "\\s*";
patterns = ( { include = "source.css"; } );
},
);
},
Andreas
Folks,
When I try to create a new file in a project it doesn't seem to work if
I choose any of the available ffile template types. It will only work
if the file template chosen is 'Empty File'.
This has been the case for at least the last two builds: 421 and 427. I
haven't gone any further back than that to test. I have removed all
environment settings (prefs and app support changes) but the issue
persists.
Can anyone else confirm this?
Thanks,
--
John
Howdy.
I'd like to be ability to change themes just like I change languages.
Shortcut key for 1 or many. Scope based.
I'm developing themes for different kinds of things.
Say i'm developing an ASP.NET page with html, javascript, css &
embedded ASP.
I'd like to define themes that show more detail in the language that
I'm working in and wash out the colors of everything else.
EG:
select an HTML tag, hit cmd-opt-shift-option-numpad_5... shebang!
asp, javascript & css fade & html tags pop!
select embedded ruby within the string of an html attribute, cmd-opt-
shift-option-numpad_5... sheboom! everything fades & embedded ruby pops!
OH, yeah!!!
PS: i'll be sharing more wacky themes soon-ish.
If anyone has any suggestions for color palettes, please let me know.
I'm itching for some code sweetness.
Hi,
in find there is a good support for regular expressions, and also the
best lookahead function (?=) and (?!), but there isn't lookbahind? (?
<=) and (?<!)
Is it possible in the next release to add it?
Many thanks!
Salvo
Hey, I somehow hosed TextMate's ability to perform the Run Ruby
command, and I don't know how I did it, or how to fix. (Or rather, I
know how I did it, but I don't understand why it broke.)
Symptom 1: invoking Run Ruby command produces
"/usr/local/bin/ruby: No such file or directory -- /Users/
gavinkistner/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Supprt/tmruby.rb (LoadError)"
Symptom 2: selecting text and invoking the Lookup Ruby Docs command
produces
/bin/bash: /usr/bin/ri: /usr/bin/ruby: bad interpreter: No such file
or directory
What I did:
1) Despite having /usr/local/bin first in my path[1], TextMate was
using /usr/bin/ruby instead of /usr/local/bin/ruby
So I used TextMate's preferences and set the TM_RUBY variable
explicitly to /usr/local/bin/ruby
To be sure, I also moved /usr/bin/ruby to /usr/bin/ruby_apple
2) I was tired of seeing warnings in my ruby output, so I changed the
Ruby Ruby command from:
${TM_RUBY:=ruby} -w -- "$TM_BUNDLE_PATH/Supprt/tmruby.rb" "$TM_FILEPATH"
to
${TM_RUBY:=ruby} -- "$TM_BUNDLE_PATH/Supprt/tmruby.rb" "$TM_FILEPATH"
...and it broke, complaining about lack of tmruby.rb. (Spotlight
confirms that no such file exists on my drive.)
3) I then put the -w back in, and it's STILL broken!
...what happened to tmruby.rb? If I remove that bit and change the
command to just
${TM_RUBY:=ruby} "$TM_FILEPATH"
I can get ruby code to execute, but I don't get the nice output in
the HTML window :|
[1] Output of terminal session, which defaults to tcsh:
[Slim:~] gavinkis% setenv
PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:.
...extra variables omitted...
[Slim:~] gavinkis% bash
Slim:~ gavinkistner$ echo $PATH
/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:.
Does anyone have an idea why using Python's os.fork() to start a
daemon process from within TextMate doesn't work? Why would I want to
do this, you ask? It seems the most logical way to browse local
Python documentation (via pydoc). The doc commands that already exist
are great if you know exactly what you're looking for, but I still
find myself starting up the doc server every now and again to go
poking around. My thought was to run a command "Browse Python
Documentation" or whatever from TextMate that opens a web browser to
the local server. If the server isn't running then it needs to start
lazily. This works great from the shell. From within TextMate the
server starts fine but the process doesn't appear to be properly
forked because TextMate just hangs like it's waiting. The script is
attached for reference.
K
I think this might be a useful preference/fix.. lots of times I open
scratch documents in TxMt to copy and pasted into my web browser.
Constantly switching back and forth between them, I end up having to
cancel the "save as" dialog every time I return to the app.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
this seems to be the case since at least beta 5, and apparently still
present. Suddenly the numbering of the new, untitled documents begins
to jump, and so I'm at untitled 86, then it's 295, and it keeps on
skiping numbers. (the numbers here are examples only)
I don't really know what triggers it, but my usage pattern is really
simple: I mostly just load a lot of sketch projects from the terminal,
and every now and then create a new, non-project file.
I'm trying to figure out a way to do auto-importing for Java in
TextMate. I'm stuck at a couple of places and I would appreciate it if
someone who knows more about TM than I do could chime in with some
suggestions.
Essentially, what I'd like to be able to do is take a class name,
select it, and hit Ctrl-Meta-Bucky-I and have TM add the appropriate
import statement to the file. My naive implmentation would look
something like:
1. Get the project CLASSPATH from a project-level config file
2. Build a list of the jar files on the CLASSPATH and grep through
their contents to find matches.
3. If there's only one match, munge it appropriately and stick it in
the import section of the buffer
4. If there's more than one match, pop up a dialog and let the user
pick the appropriate fully-qualified class name, then stick in import
section.
Does this seem to be a sensible way of approaching the problem? Is
there a way of sticking the import statement where it belongs? More
generally, is there any way to do arbitrary transformations on the
contents of the buffer as if it were a java AST, instead of a stream
of characters? I think that would probably be necessary to create
commands to do source-level refactorings.
Thanks,
Alex
Hi All,
In the project drawer, a right-click on a file icon opens a dialog
where one can find :
Treat Files with ".xxx" Extension as Text
Where does TM store this infos afterwards? Did not find anything in
"Application Support" nor in "Preferences"
The point is to have TM consider files with a variable extension as
text, like the ones I have to deal with : the extension is a 8-digit
number representing the date the document was edited (*.20041023 for
instance)
Can we use regular expression for this (like \d{8})?
Found nothing in the Wiki nor in Help.
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
Subversion seems to work with TextMate only if the .tmproj file is
saved within a subversioned folder, or if a Subversioned folder has
been opened in TextMate without the project being saved.
Is anyone else experience this -- or am I not doing something wrong?
Just checking.
Hi, this is my fist post on this ML, i want to share some little
extensions that i've made to C Language Bundle.
Hope these helps
Name : Run
Activation : command-R
#!/usr/bin/python
import os
file = os.environ['TM_FILEPATH']
path = os.path.split(file)
filename = path[1].split('.')
os.system("gcc -Os " + path[1] + " -o " + filename[0])
os.system("./" + filename[0])
Name : Run Project
Activation : command-shift-R
#!/usr/bin/python
import os
file = os.environ['TM_PROJECT_FILEPATH']
path = os.path.split(file)
projectName = path[-1].split('.')
projectName = projectName[0]
os.system("make -k")
os.system("./" + projectName)
Name : Compile
Activation : command-B
#!/usr/bin/python
import os
file = os.environ['TM_FILEPATH']
os.system("gcc -c -Os " + file);
Name : Compile Project
Activation : command-shift-B
make -k
--
Ciao
Fabio
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
must be retarded, but I can't figure out where the "apple+/" shortcut
for commenting is stored... I looked through the bundle editor but...
anyway, I'd like to change that shortcut which conflicts with
UnicodeChecker (http://earthlingsoft.net/UnicodeChecker/index.html)
"HTML entities -> Unicode" conversion Service...
Any idea? Thanks! :)
.........................................
m i n i m a l d e s i g n
244 Fifth Avenue - Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: work(a)minimaldesign.net
site: http://minimaldesign.net/
Hi,
I use the 'Open Recent' menu a lot (actually I have a plugin that
modifies the 'Open Recent' menu of TextMate, Xcode and some others to
retain 50 files instead of just 10).
Seems TextMate has a bug though: The 'Open Recent' menu only contains
files that were opened AND SAVED with TextMate. If I just open a
file, look at it, then close it, TextMate's 'Open Recent' menu will
NOT contain the file.
TextEdit's 'Open Recent' menu will also list files that just have
been 'viewed'.
Gerd
Hi there...
Is there any way to avoid window clutter, by opening more than one
file using an ftp-client? BBEDIT handles this well by adding the
documents
to the front window...
-Bjoern
Hey all,
I'm new to the list but had a real quick question that's been driving me crazy.
Here's my initial salvo & response regarding this issue:
http://comments.gmane.org/gmane.editors.textmate.general/5091
Pretty much, I've tried that. Hunted down answers on the #TextMate
channel and still haven't figured out how to get this working to my
little tab-space hearts desire.
As of now, I cannot get the Tab key to produce spaces, regardless, in
my Ruby files, even when the "Preferences > Editor uses spaces instead
of tabs" box is checked.
I had previously followed the advice from the link above (adding
softTabs, etc. entries in the Bundle Editor) but nothing I added made
any difference. The advice was also not clear on where exactly to add
the preference items in the existing Bundle preferences, or to create
new ones, or what.
Any help would be much obliged.
On a more positive note, I love TextMate. Like others, I'm new to OS
X and was turned on to TextMate / OS X by fellow Ruby on Rails
developers.
Thanks!
Shanti
http://sablog.com/
Hi Everyone
How do you go about creating your themes?
Do you start from another theme? with a clean slate? Do you do it
editing a plist file or just use the built-in editor? How do you
preview your results, what source code you find best to use?
I'm looking to craft a theme or two and would like to know how the
others are doing it.
oh yeah!!!
thankyou Allan!!!!
Get ready for some seriously hideous themes!!!! HaHA!
All I need next is the ability to set the color of underlines
separate from text color. (that might just be a pipe dream)
thanks!
is there a global source language where I can define white space scopes?
I looked on the mailing list history and couldn't find much about
this... so here goes
Is there any way to emulate the balance tags command in BBEdit?
If your selection is between brackets or between tag pairs,
balance tags selects the brackets and everything within it with a
shortcut.
for textmate
We might be able to emulate that function and improve on it.
The command would extend the selection to select the entire scope at
the insertion point.
Hitting it again would select the next scope up the chain.
If it's easier maybe we could just have it select everything with
foldingStartMarker and foldingStopMarkers.
Is this something that I could do with a command, or is it something
that would require a change to the programming?
I figure the data has to be in there somewhere in order to color the
scope.
I have no idea what it would take to like command-double-click on a
scope to select the whole thing or some such thing.
How about a Close All Tabs feature?
It's useful when you want to close all tabs, but leave the project open.
At the moment, I work around this by frantically clicking on the close
icon of the left-most tab until all tabs are close.
I uploaded a Perl module yesterday to CPAN and testers report
failures on several platforms when building the module.
The error logs mention unknown files whose name is the same one that
the actual included files, but with "._" prepended. For instance, if
the tarball contains "Makefile.PL" it turns out that it also contains
a mysterious "._Makefile.PL".
Even "ls -a" does not show those "._" files, and opening one of them
in a Windows machine showed something that seemed binary, and with
"www.macromates.com" somewhere with something that looks like
metadata like caret position (I think). That makes me wonder whether
TM could have anything to do with them. I am not familiar enough with
resource forks to be able to guess what's happening on my own.
Does this ring any bell?
-- fxn
I use the presumably obscure Dvorak/Command-Querty keyboard layout. It
uses Dvorak for standard typing, but when you hold down the command
key, it switches to Querty, so I can use the key that's actually
printed on the page, and preserve that precious command key muscle
memory. I've had mixed success using the command keys with TextMate,
though. For instance, I frequently change the indentation of blocks of
code, using command-[ and ]. When I use DQ, I tend to get some sort of
commenting. If I switch back to regular querty, I get the results I
expect. Is there any way this can be improved?
Hello, my name is Thomas.
And I am addicted to making textMate themes.
Please feed my addiction by suggesting theme ideas.
I have been told that my themes make peoples eyes bleed. They are
obviously of limited use, therefore.
If people seriously want a certain theme, I WILL make it (eventually).
I've got a process down now that's really quick.
-----
I WANT TO KNOW:
Who uses what theme in textMate?
What themes have you used from previous systems or applications?
visual studio? dreamweaver? bbedit? foo.app?
Do you like them?
Do you want an 'expert designer' to tell you what you should like?
<insert canned laughter here>
Do you have bad taste and should be ignored? <again.. haha>
Do you like black backgrounds? Do you like colored backgrounds?
Do you hate excessive use of background colors? ...for the
page? ...for individual elements?
Do you like high contrast? Do you prefer lower contrast?
Do you like having a bunch of different colors or would you prefer
one with shades of only a few colors?
What colors do you like? Please give examples.
Do you have synisthesia? Are certain elements 'supposed' to be a
certain color?
What languages do you want to have colored?
Do you want different languages to have different colors?
-----
Please provide example screen shots (or links to them to keep from
clogging the list) if at all possible.
Thank you for 'enabling' my habit ;D
After pressing Esc for word completion TxMt stops tab-completion on the
snippet. Is this a feature or a bug? Cheers,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
I got impatient waiting for my Amiga theme, so I created one myself.
It's high-contrast and uses only a handful of colors (those from
MagicWB, which was an 8 color icon set which radically improved the
look of the Amiga workbench back then) -- I cheated and actually used
a light grey for comments, since pure white was too bright, and MWB
half-shine was too dark.
I haven't added this to the repository, since I don't expect that
anyone actually wants to use it :)
I miss a new-from-template-function in TextMate. I know I could realize
them as snippets but nevertheless it would be comfortable.
Otherwise a new-as-copy-function which creates a new file with the
beginning content of another file.
I'm new on TextMate and really love this editor!! :-)
Regards,
Ruben
1. Open a project
2. Activate the Find in Project window
3. Search for a string that will match something
4. Open another project
5. Activate the Find in Project window
6. Click one of the matches
Observed:
A new tab appears on the second project, with no content window.
Expected:
The correct (first) project is brought to front (but behind the find
window) and a tab is opened in it.
Hello.
TextMate is the best text editor I have ever used.
But I have one problem that I can't input Japanese.
(I can't live without Japanese...)
In Japanese, many characters are used. So we have to use
input-method to convert ascii characters into Japanese
characters.
For more information, visit the following.
http://lists.freedesktop.org/pipermail/uim/2005-July/001195.htmlhttp://lists.freedesktop.org/pipermail/uim/2005-July/001215.html
Mac OS X bundles the input-method named Kotoeri.
When I use Kotoeri in TextMate, typed characters does not appear.
And when I try to convert words, the candidate window is not
displayed.
To use input-method, the text editor must be implemented as
TSM(Text Service Manager) client.
http://developer.apple.com/documentation/Carbon/Reference/
Text_Services_Manager/
I guess TextMate is not completely implemented as TSM client.
(Sorry if I was wrong.)
Is it possible to resolve this problem?
And the character overlapping problem posted before happens
also in my environment.
http://lists.macromates.com/pipermail/textmate/2004-October/000322.html
Regards.
---
Masaki Yatsu
yatsu(a)yatsu.info
Thank you for your reply.
On 2005/09/12 Robert Deaton wrote:
> This has been brought up multiple times in the past, and I still think
> the only response you'll get it is to switch to UTF-8 or UTF-16. It
> makes life easier for everyone.
Sorry, I can't find postings of the same topic.
I am using UTF-8 encoding and I have never used any other
encoding in TextMate.
I can see Japanese characters even though it is overlapped.
If I am using other encoding than UTF-8, I can't even see
Japanese characters.
I'm not talking about text encoding.
My problem is that I can't INPUT Japanese by input-method.
Sorry for my bad English.
---
Masaki Yatsu
yatsu(a)yatsu.info
Hi,
Word completion seems to look for matching words on the document from
the cursor point and up, and then, from the cursor down. It's often the
case, however, that the matching word you need is right on the next
line, or even later in the same line, and it takes a lot of
ESC-pressing to get to it.
My suggestion is that you sort them by proximity (as it is now), but
look for words in both directions, so the words right in the next line
stand a better chance.
(I had the impression that back in 1.0 it worked that way. Did it?)
Hi,
With most tree view like controls on OS X, alt-click will recursively
unfold all levels enclosed.
Is something like that possible or planned with fold markers in TM?
Alt-clicking does not seem to to anything different than normal
click, folds inside the clicked fold stay folded.
Gerd
Hi,
Very new to TextMate, so please forgive if this is a dumb question or
already well-known. I saw there was a similar discussion back in
March, but not quite the same issue as this:
I have the following four source files at the same level in my codebase:
FUFlickrExport.h
FUFlickrExport.m
FUFlickrExportCover.h
FUFlickrExportCover.m
If I open FUFlickrExport.m from, say Xcode, and hit Cmd-Opt-Up Arrow
to go to the header, TextMate opens FUFlickrExportCover.h.
TextMate correctly opens the counterpart of FUFlickrExportCover.
{h,m}. It also correctly goes to FUFlickrExport.m from its header,
it's just going to the header of FUFlickrExport.m that's not right.
Is there a better place to report bugs than on this list?
Best,
Fraser
--
www.speirs.orgwww.connectedflow.com
Hi,
Two things that I find consistently not to my liking in how TextMate
handles Ruby code:
1) When you fold a (ruby) function it places a "---" marker at the end
of the non-folded first line to represent (presumably) the folded
section.
However, although the "---" isn't part of the logical line, if you
place the caret before the marker and hit Enter the marker is moved
down a line and inherits a folding arrow. This leaves the first line
of the folded function disjointed with a non-functioning fold arrow.
=> I'd like hitting Enter at the "---" to move the caret to a new line
below the folded function without affecting the folded section.
2) When you fold a function and use Ctrl+/ on the visible line with
the "---" marker to comment it out what actually happens is that t
comments out only the visible line. The rest of the function is not
commented if you expand it.
=> I'd like to it comment/uncomment the folded section as well.
I am using v1.1b17
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
Are language definitions merged?
There are a few languages where I have some 'private' rules. Is it
possible to write them in such a way that these are merged with
whatever language definition is found 'higher up', so that I can
easily enjoy updates from the svn repository without having to modify
that definition each time?
Gerd
Has anyone experienced an increase in TextMate's performance after
upgrading to Tiger?
On Panther, for me, simple things like switching tabs take half a sec.
My specs:
Panther 10.3.9 on Powerbook 15"
1.5 GHz PowerPC G4
1GB DDR SD RAM
I don't know how to fix this but maybe someone else does: When I use
the "Show TODO list" command (ctrl+shift+T), german umlauts like ä,ö
or ü are getting displayed wrongly.
Cheers. Oliver
Hello.
I'm experimenting with crazy nested syntax coloring.
I can't seem to figure out how to make all the transparent background
colors interact properly.
Ideally I'd like to define a scope:
scope test = everything within "(...)"
Then set a syntax color of transparent background color.
scope: test = White 10% opaque
Then nest a bunch of them inside each other.
zero (one (two (three (four (five (six (seven (eight ))))))))
result: The transparent background color would compound and gradually
get stronger:
n/a (10% (20% (30% (40% (50% (60% (70% (80% ))))))))
If I could get this to work, I could color different block types with
a massive background color & the content colors would be based on the
block color.
EG: HTML tags = blue BG, embedded ASP = red BG, strings = yellow
BG ... string in html tags = green, string in asp = orange.
With what I know now I could simulate this by explicitly setting the
background colors for every possible combination of elements, but
that's a lot of work. And if I decide to change the hue of something
I have to manually recalculate all of those static simulations of
color interactions.
---
I can get things to interact with the background color.
If I change the BG color for the scope "source" all the transparent
things define their transparency based on that color.
Also the line highlight & selection colors.
---
Am I asking for too much?
Will this make performance suffer?
Is this already possible, but I just can't figure it out?
I was trying to figure out how I could write a snippet that would
wrap a bunch of lines into a HTML list... lets say you got this text:
item 01
item 02
item 03
then the snippet would output:
<ul>
<li>item 01</li>
<li>item 02</li>
<li>item 03</li>
</ul>
I'm kinda stuck on how to get the recursive thing to adapt to the
number of list items... Any thoughts? Thanks! :)
.........................................
m i n i m a l d e s i g n
244 Fifth Avenue - Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: work(a)minimaldesign.net
site: http://minimaldesign.net/
In order to streamline snippet input from selection, it would be
pretty cool to have the option to access the snippets from a
contextual menu. A pretty flexible way to implement that could be a
check box or equivalent in the bundle editor that says something like
"include in contextual menu" on a per language and/or snippets basis.
.........................................
m i n i m a l d e s i g n
244 Fifth Avenue - Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: work(a)minimaldesign.net
site: http://minimaldesign.net/
Question from a Terminal newbie ... is there a way to automatically
execute the three commands I use for the subversion checkout?
(Namely these three:
cd /Library/Application\ Support/TextMate
export LC_CTYPE=en_US.UTF-8
svn --username anon --password anon co
http://macromates.com/svn/Bundles/trunk ./
)
Does the application Pipe help you do something like automating this
into a little macro? Or is there a more direct way?
Thanks very much for the help -
Jim
Expected behaviour: Cmd+W closes the file as fast as clicking the "x"
icon on the tab
Actual behaviour: Cmd+W takes a bit longer to close a file than
clicking the "x" icon on each tab\
Version: 1.1b17 (v1.1b17)
Hello!
Does the subversion bundle work with remote repositories? If yes, how do
I go about making the subversion bundle work with a remote subversion
repository?
thanks in advance!
rene
Here's a patch that fixes a problem with syntax highlighting in Tcl.
Basically if you have
set foo "some \[ escaped \] brackets"
all the code after the string is taken as a string.
The other problem this fixes (although I'm not sure this is the right
fix) is with curly brackets in interpolated variables. E.g.
puts "${variable} ${weird variable with spaces}"
the first ${variable} works, but the second ${weird variable with
spaces} doesn't.
Although, admittedly you have to question the sanity of whomever puts
spaces in his variables...
Index: Bundles/Tcl.tmbundle/Syntaxes/Tcl.plist
===================================================================
--- Bundles/Tcl.tmbundle/Syntaxes/Tcl.plist (revision 1719)
+++ Bundles/Tcl.tmbundle/Syntaxes/Tcl.plist (working copy)
@@ -100,7 +100,7 @@
<key>comment</key>
<string>FIXME not sure this
is the proper way to do Tcl escape sequences --Allan</string>
<key>match</key>
- <string>\\([abfnrtv"\\]|0\d
{2}|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4})</string>
+ <string>\\([\[\]abfnrtv"\\]|0
\d{2}|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4})</string>
<key>name</key>
<string>constant.character.escape.tcl</string>
</dict>
@@ -108,7 +108,7 @@
<key>comment</key>
<string>FIXME what are legal
variable characters? --Allan</string>
<key>match</key>
- <string>\$[a-zA-Z]+</string>
+ <string>\${?[a-zA-Z]+}?</string>
<key>name</key>
<string>variable.other.tcl</
string>
</dict>
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
I would like some snippets to only be in scope for a specific project.
For instance, some tab-expansions I'd like to choose for a snippet
only make sense for C++ files part of project Foo, but not all C++
files. So I'd like to be able to specify the scope to be something
like:
project:Foo.source.cpp
Instead of just
source.cpp
Thus narrowing the snippet to only the source.cpp scope for files in
project Foo.
Perhaps allowing a user to add a project scope identifier and use this
in scope specifications would be the way to implement this. Heck, that
would allow anything that depends on a specific scope to be
project-specific if the user wants. Templates, commands, macros..
Sounds like fun to me ;-)
--
-Corey O'Connor
I can't figure out how to make Zero-width positive lookbehind regex
patterns work right.
The basic example i'm trying to do is a pattern that will match
everything within quotes, but not the quote marks themselves.
the closest I've been able to get to kindof work is:
\b([^"\n]*)(?=")
This is obviously sub-optimal.
The pattern that i'd use if ZWPL worked would be:
(?<=")([^"]*)(?=")
Does your regex parser support ZWPL?
Is there something else I can use that will imitate this function
using Zero-width positive lookAHEAD?
Are you planning on adding support for ZWPL?
There are a number of things that I'd like to use ZWPL for.
I could match all words following the word DIM without
matching the DIM, for example.
http://www.regular-expressions.info/refadv.html
APPENDIX: Zero-width positive lookbehind. Matches at a position to
the left of which text appears. Since regular expressions cannot be
applied backwards, the test inside the lookbehind can only be plain
text. Some regex flavors allow alternation of plain text options in
the lookbehind.
"Find in Project" is a form of "find all", but I would like to see a
better implemenation of this.
Basically, "Find All" would work on single and multiple files (as
with BBedit's "Multi file search"), not just a project, and the
results would be either the whole block as currently, or only the
exact search term. Finally, I should be able to have the results
appear in a new document, or at least be copy/pastable.
I never, ever use column selection or typing, so perhaps the
following behavior is useful there.
Frequently I have a block of code I need to indent. Say my Ruby code
looks like this:
class Foo
def bar
puts "yay"
end
end
I lazily select parts of the lines I want, (because it's faster than
being sure to select the entire line) represented by the | in the
following showing the start and end of the selection:
class Foo
de|f bar
puts "yay"
en|d
end
When I press cmd-], I expect:
class Foo
def bar
puts "yay"
end
end
(which is what BBEdit gives me), but what I get is:
class Foo
de f bar
puts "yay"
end
end
...where's the logic in that? If I have no text selected, but the
carat is in the middle of the line, cmd-] shifts the whole line (as
desired). I suggest that the 'break-the-line' method only occur if
the selection is columnar - i.e. if the start column of later lines
is the same as the start column of the first line.
Stakeout looks fantastic! Here's what I'm envisioning for my AS
development:
I have a command set up right now to cd to my project directory and run
rake if it finds a Rakefile, otherwise running MTASC into a temp file
to check the syntax, formatting the output and giving me a clickable
error list. What I'd like to do is be able to run this command any time
a class file is changed. Problem is I don't think there's any way to
tell TxMt to run a command from outside the GUI. Is there any way we
could get some kind of access to Commands through the tm utility?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
On 06/09/2005, at 19.29, Jeff Powell wrote:
[ I've cc'ed the ML, since this is a popular request, yet you're the
first to suggest solving the problem with a command :) ]
> It's pretty basic really --- I've got a project setup in TM and
> quite frequently, I will need to make a copy of a file inside of
> the project [...] Can I make a command that might do the duplication?
Yes, make a command that saves current file (since it duplicates
what's on disk). The actual command should be:
--------8<--------
# so we can work with relative paths
cd "$TM_DIRECTORY"
# construct a default name for the duplicate
def_name=`perl -pe <<<"$TM_FILENAME" 's/^(.*?)(\.[^.]*)?$/$1 copy$2/'`
# prompt user for a name
CocoaDialog inputbox --text "$def_name" --button1 "Duplicate" --
button2 "Cancel"|{
# if user selected 'Duplicate' and file doesn't exist
read res; read new_name;
if [[ "$res" == "1" && ! -e "$new_name" ]]; then
# do the actual duplication
cp -p "$TM_FILENAME" "$new_name"
# force TM to refresh project drawer and open duplicate
{ osascript -e 'tell application "SystemEvents" to activate' \
-e 'tell application "TextMate" to activate'
open -a TextMate "$new_name"; } &>/dev/null &
fi
}