Hi all,
i am running TM Version 1.5.6 (1414) and have a question regarding memory use..
First, uname -a:
Darwin *.local 8.10.3 Darwin Kernel Version 8.10.3: Wed Jun 27 23:29:36 PDT 2007; root:xnu-792.23.3~1/RELEASE_I386 i386 i386
2.2 CD2 MacBook Pro
2 GB 667 Factory RAM
after opening text files of moderate size (10M-20M) for editing, applying the edits, and closing them, TM retains *lots* of memory (~ 285 MB Real). The memory is only released upon restarting the program. This can be reproduced simply by opening a large text file, closing it, and monitoring RAM usage (top/Activity Monitor).
My question boils down to whether or not this is the desired/expected behavior?
cheers,
brant
<*)
(_\\
_||
Hello,
a quote from the release notes from REVISION 1401:
> When TextMate bumps your encoding to UTF-8 it will first display a
> confirmation dialog (there is no help in finding which characters
> cause a problem though, but a bundle command can be devised)
Is there already such a bundle command anywhere?
Kind regards,
Tobias
Hello everybody,
First of all, I'm well aware of the ability to use column selections
instead of rows, so please don't respond with that. What I'd like to
be able to do is select a random bit of text here and another there,
no matter where they are in the document, and then be able to use cmd-
c to copy it and paste it to another section (perhaps separated by
line breaks to indicate that the text fragments are from non-
continuous selections). Kind of like the cmd key lets you do in some
other cocoa editors (like Pages). Any ideas?
Thanks,
Michael
Hi everyone,
I'm wondering if there was a mean to insert some kind of “informative
text” in a snippet, i.e. text that informs you of what should be
inserted where but disappears when it's not needed any longer.
Here's a short example (a method definition in some Lisp dialect) of
a problem I currently face that should make the situation a bit clearer.
Here is what I'd want to appear with my defmethod snippet, with
“normal” default text between [ ] and informative text between { } :
(defmethod [name] ({parameters}) ({code}))
The parameters are written as “(name type)”, so when I reach the
{parameters}, the first thing I do is adding a parenthesis. Result:
the default text (“parameters”) is still there, but now unselected
and between parenthesis. I thus have to remove it by hand, which is
quite annoying. Of course, a possibility is to let the default string
empty, but you can easily get lost in your structure, then
(especially in Lisp). So is there a way to have text reminding you
what you should be typing, but disappearing after a while (ideally,
when you hit tab in order to jump to the next snippet point or when
you reach $0)?
Thank you very much,
Édouard
Textmate is more sluggish lately for me than in the past. I notice it
when I switch from the terminal back to Textmate. TM takes a little
while to respond. Almost like it has to awakened from a good nap. At
least it isn't grumpy afterwards.
I'm running TextMate 1.5.6 (1414)
Anyone else notice this? Suggestions?
-David
Hello, everyone.
I have written a more Xcode like completion extension for tm_dialog. My
guess is that this is of interrest to more people than me. The code has
not been commited yet, but I have made a screencast to show of some of the
functionallity.
[ http://mail.mac.se/joachimm/TextMateCodeCompletionEnhancements.mov ]
, right now I am looking for suggestions for the programmatic and user
interface.
what I have so far
"$DIALOG" -f -p '{suggestions = ({title = "foo";filterOn = "foo";},{title
= "bar";filterOn = "bar";snippet = "(${1:hello}, ${2:again})";});
mutablePrefix = "fo"; staticPrefix = "";}
as you can see you need to populate an array called 'suggestions' with
dicts with the keys 'title' and 'filterOn', the key 'snippet' is optional.
you also have to give the keys mutablePrefix which is the prefix when you
launched the command. plus the optional staticPrefix which is handy when
you are completing things that are multipart such as objective-c methods
(it is not really necessary since filterOn does not have to have the same
prefix as title).
Once the command is running it should work as follows.
* an alphanumeric key press appends to mutablePrefix, there by potentially
limiting the list of candidates.
* a tab press inserts the longest common prefix among the candidates, this
will ofcourse never limit the list in itself, but can quickly be followed
up with a alphanumeric keypress, thereby saving lots of typing.
* a return inserts the current selection in the list, plus its snippet key
if there is one.
* delete removes a char, if this moves the caret before the beginning of
the search prefix the dialog goes away
* up/down moves in the list
* any other key closes the dialog and hands control back to TextMate.
What are your thought, am I missing something that could be useful for
your language?
Thanks in advance.
Joachim Mårtensson
I'm using the LaTeX bundle from SVN, updated daily (currently at
r8019). One of my documents has the following line of text, which
causes the syntax highlighting to misfire:
\textbf{Top row} - Manifold Pressure (`` HG) and Fuel Pressure ($
\mathrm{lb/in^{2}}$).\\
The fact that the quotes are not closed seems to be the problem.
But, I believe this is a perfectly legal usage, if you want to use an
abbreviation for "inches".
Kevin Horton
Ottawa, Canada
I think it would be very useful for TextMate to identify the type of a
script file based on the shebang line. This would be particularly
useful for scripts without suffixes. In my opinion, an identification
made this way would take precedence over one done based on the file
suffix.
For example if the first line of the script named "do_some_stuff" was
"#!/bin/env bash", then the file type would be a Bourne Shell script
file and Shell script (bash) syntax would be turned on.