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