I have just discovered TextMate, and am so far very happy with it,
but I think I just hit a glitch...
I am trying to edit a SQL load file that is about 5M, which shouldn't
be a problem. However, some of the lines are very long, as a complete
website contents is in a single line. I have no idea how many
characters are in this line, but I suspect about 2M worth.
Anyway, TextMate hangs while trying to work with this file. I can't
do much at all. Even a simple act of scrolling hangs. TextEdit does a
reasonably good job with the file though...
Actually, I don't think it is hanging, as it eventually responds
(about 30 seconds later), but it is so slow that it is completely
unusable. Is this a known problem? For me, it is weird files like
this that we need an editor like TextMate to be able to easily handle.
Thanks...
Jim Leask
Hi!
I'm just working on some Tex-Document which uses several dialogues
which I want to enclose in "< "> (the result are those <<
>>-enclosures in the document). Would be cool if that could be added
to the language grammar.
Thanks in advance
Niels
Hey everyone,
Recent TextMate convert here and boy do I love it - trial expiring
within the week, so will be a paying customer from then on. ;)
Have a question, though, with regards to sorting in the Project Drawer.
Is it possible to have entries sorted by type, and only then by
name? I'd like to keep directories together. (At the top,
preferably. ;)
I found the following reference (and its references) in the mailing
list archives:
http://comox.textdrive.com/pipermail/textmate/2004-December/001971.html
This message seems to imply the sorting is hard-coded.
Alexander Deruwe
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
As I set up Reformat Comment commands for the languages I use most
frequently (LaTeX and R), it occurred to me that maybe there's a way
to make a single call to rubywrap more generic, so that we don't need
a command per bundle. This is the result:
#!/usr/bin/env ruby
$LOAD_PATH << "#{ENV["TM_SUPPORT_PATH"]}/lib"
require "escape"
scope = ENV["TM_SCOPE"]
case scope
when /comment\.(block|line)\.number-sign\./
cstring = "# "
when /comment\.(block|line)\.percentage\./
cstring = "% "
end
flags = ""
flags += " -p \"#{cstring}\" "
flags += " --retabify" if ENV["TM_SOFT_TABS"] == "NO"
text =`echo -n "#{e_as(STDIN.read).gsub(/[$`]/, '\\\\\0')}" | ruby "#
{ENV["TM_SUPPORT_PATH"]}/bin/rubywrap.rb" #{flags}`
print e_sn(text)
The parameters are the same as the current command, with the
exception of scope, which I set to "comment.line, comment.block".
I also added a gsub to the command because it was eating latex math
and R symbols ($). There's probably a better solution to that. This
seems to work for me, and should be extended easily by adding lines
to the case statement for other languages. One advantage is that by
specifying the comment character based on the scope, it ought to work
for anything; it catches comments for both bash and perl, for
instance, without any extra effort. I think it's kind of cool.
-Alan
Hi there :)
I seem to remember that this bug has already
been reported and if it's the case, it is still around
for me…
Quite ramdomly, TM simply crash when bringing
up the Find/Replace dialog window and tabbing
between the “Find:” field and the “Replace:” field.
Let me know if you need the Crash Report :)
TIA
Hi,
I use Textmate 1.5.5 on my MacBook Pro (2,33 MHZ, OS X 10.4.9) t
mamage my rails project with about 500 files in the project.
Every time I switch from the active TM to another application and then
back again, TM spins the wheel for about 5 secs. May be it is checking
files or something else.
I only installed the TmCodeBrowser additionally, nothing else.
Is there a way to make TM instantly responsive after activating it?
thanks,
Alex.
When I invoke "Run Script (PyMate)" from the Python bundle, I get:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`initialize': Permission denied -
/Users/darylspitzer/Programming/Altera/Perforce/miscellany/infrastructure/integration/integration_status.py
(Errno::EACCES) from
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`open' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`initialize' from
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24:in
`new' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24
This started happening yesterday, and then went away. Now it's back.
How do I make it go away for good?
I'm running 1.5.6 (1405).
Hello,
I am working a lot with source code written using Emacs on Linux. The
prevailing convention is that tabs are presented as 8 spaces, but
indents are only 4 spaces. Indenting will insert spaces, and Emacs
seems to swap groups of 8 spaces for a tab.
If I use a tab size of 8 in Textmate, the source files display
correctly. Sadly, there is no way to tell Textmate to use an indent
size of 4.
It would be very useful is it was possible to tell TextMate to:
1. Draw tabs as 8 spaces
2. Use spaces when indenting
3. Intend with 4 spaces, not the 8 spaces from a tab
Is there any way to do this with TextMate at the moment?
I'm using TextMate 1.5.3 (1215)
--
Kind regards,
James Milne
I created this a while back, but I had forgotten about it until a
recent discussion of Drag Commands.
If you're using the pre-insalled Apache under Mac OS X, the
DocumentRoot is set to `/Library/WebServer/Documents/`. I try to
avoid attachments as much as possible, so I'll usually put a file in
that location and just send people a URL that leads them to it. To
make this easier, I created a Drag Command that applies to any file
in that directory. For example, if I drop /Library/WebServer/
Documents/some.zip in a document, it inserts http://
kendra.oit.gatech.edu/some.zip instead.
It's currently scoped to "text.mail,text.html" and I usually only use
it for e-mail, but perhaps it should be scoped for all "text"?
Anyway, I thought this might be a useful addition to the Mail or Text
bundle.
On a related note, what's the preferred way to say "I thought this
might be a useful addition to the XYZ bundle"? :)
FYI - If you're looking at the command and wondering why all the
gymnastics to get the Fully Qualified Domain Name for the local
machine, it is intended to work in either of these situations:
1. `hostname` returns something appropriate, like "kendra" and
`domainname` returns something appropriate like "oit.gatech.edu".
2. `hostname` erroneously returns the FQDN (like
"kendra.oit.gatech.edu") and `domainname` returns nothing at all.
(For reasons unknown, I think most systems are misconfigured like
this by default.)
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.