When writing C++ code in TextMate, it appears that the method names are not
well detected when I use the throw\([^\)]*\) keyword on my method
declarations, as in this example:
void Foo::Bar(int argument) const throw()
{
/* ... */
}
or like this:
void Foo::Bar(int argument) const throw(std:exception, int)
{
/* ... */
throw std::exception("exception message");
/* ... */
throw 42;
/* ... */
}
When I use the throw keyword on my method declarations, the method name
detected by TextMate is "throw", which isn't really useful, especially when
all the method names are detected as "throw". How can I fix this to ensure
TextMates resolves the proper names?
Thanks for your help,
Marc-Antoine Courteau
Hi!
Can someone help me to tune BloggingBundle to avoid iconv error?
The problem is: when i try to fetch category list (cat->) i get an
error "iconv: (stdin): cannot convert"
I'm using WordPress as blog engine with MySQL (all fields set to utf8 manually).
PS
Some of the categories is in russian (utf8).
Hello,
I use textmate a lot to write in markdown. However, the documents I
produce need to be printed out and proofread often. Is there any way
to get textmate to print out documents double spaced? If not, I
preview the documents in firefox on OS X. Is there any way to get
firefox to print double spaced?
Thank you for your time,
-Colin Palmer
Hello,
Attached is a patch to
Bundles/Rails.tmbundle/Support/lib/rails/rails_path.rb that adds .erb
files to the list of files considered as view files. .erb files are
the new default view files for edge rails.
Thanks
-Lee
Allan, team, I was wondering if anyone can help me. I'm intrigued by
the implementation of textmate's incremental search feature for file.
What intrigues me most is the fact that it's partially ordered, though
it works on any set of characters that appear within a name.
Most incremental searches are implemented using trie structures, but
I'm not seeing how that can be used to implement partial ordered
searches, or I don't believe that data structure is the most efficient
way of doing so.
I'm wondering if someone can share a bit info on how this is
implemented. Are you using some known tree algorithm/structure, or is
the search performed by regex? I'm hoping the earlier and that you
can point me in the right direction.
I really appreciate any information.
Thanks.
Ilya Sterin
What could I have done that will give me this error when I hit command-R
for compiling latex:
"python: execv:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python:
No such file or directory"
[my earlier post went to another thread — sorry about that]
Starting a new thread because it is new issue.
> Updating should make both this and the overprint/overlayarea stuff
> work. I added some shortcuts for them and other beamer commands in
> the "Insert Environment/ Insert Command" dictionary.
After updating, I checked the configuration file via LaTeX → Edit
Configuration File and could not find these. I then checked /Library/
Application Support/TextMate/Bundles/Latex.tmbundle/Support/
latex.config, and the changes were there, but have no effect---the
shortcuts do not work. In the past I have edited the configuration
file through the LaTeX bundle (I added support for the quote
environment which I use often). Does this mean that editing the
configuration file in this way somehow blocks the changes made to /
Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/
latex.config? Or am I doing something stupid? (Likely, I am afraid)
Best, Mark
A couple requests about beamer support.
First, highlight and smart typing pairs should include the ones
supported in LaTeX. So Miscellaneous (Beamer) should be:
{ highlightPairs = (
( '<', '>' ),
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '“', '”' ),
( '$', '$' ),
( '`', "'" ),
);
smartTypingPairs = (
( '<', '>' ),
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '“', '”' ),
( '$', '$' ),
( '`', "'" ),
);
}
Second, it would be nice to support the overprint environment in
which \onslide functions similarly to \item. Specifically, it would
be useful to hit enter and to create another \onslide. \onslide takes
a number between angle brackets (e.g., \onslide<3>, *without* a plus
or minus sign since overprints may not overlap). Another difference
from \item is that the text begins indented on a new line as in the
following example:
\begin{overprint}
\onslide<1>
lorem
\onslide<2>
ipsum
\end{overprint}
Thanks in advance.
All the best, Mark
I discovered a little quirk of TextMate this afternoon that cost me several
hours of work.
I had a file within a project called "distributions.py", and wanted to make
a new file called "Distributions.py" to experiment with a few things.
When I created this file, it generated a new file, but rather than the usual
template, it contained the contents of distributions.py. Fine, I thought,
I was going to copy some of the contents of "distributions.py" over
anyway. I went ahead and heavily edited Distributions.py, including
deleting much of the original contents.
I was shocked to find that when I went back to the original file, all
the editing that I had done in the new file was mirrored in the second!
I had done enough editing that I was unable to undo changes to get most
of it back. Several hours of work -- gone.
Why on earth did creating a *new* file in a project apparently just
create some sort of symbolic link to an existing file?? 2 different files
"Distributions.py" and "distributions.py" both appeared in the project list,
and both had their own tabs. Does this have something to do with having
files that differ only in case? Very frustrating.
Since it seems entirely possible that the subversion bundle developers do
not read the intricate details of some LaTeX discussions I thought I would
just highlight a couple of ideas that came out of yesterday's emails.
Could you make it more difficult to commit without a comment? For example
if the comment is blank could you pop up a confirmation dialog? Or could
you disable the commit button until something has been entered in the
comment field?
Another suggestion was to have it so that the comment field gets the focus
when the window pops up. Although this seems to be how it works for me
already, so maybe this is done already.
Thanks,
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Hi
I would like to change the cursor size on my TextMate.
I know there is a similar question posted several years ago, but I am not sure I
understand the answer.
Could someone let me know which option determines the size?
Thanks
Alexandra
I'm looking for a way for a snippet to perform a transformation on a
tab stop, but to output the number characters, not to modify the
captured tab stop. Can anyone think of how this would be done?
Example: A tab trigger for the PHP function strncmp(), and when I
type 'string', the third argument would update to the total number of
characters in the string.
strncmp($$1, '$2', <character count of $2>)
giving me:
strncmp($foo, 'string', 6)
-Derek
Ahoy me TextMateys,
I just had a kindof a neat idea.
TextMateHistoryManagement
Currently, when you do a thousand changes in textmate and then close
your document, all your changes are totally lost :(
What if every time you saved your document, I caught that action,
backed up your original version and the new one and then archived it
away in a magical forrest for safekeeping. Then when you open that
document up again you have the option to undo every previous save
you've ever made to the document? And you can even see how many
changes were made every time you saved with a timestamp and a full
diff and all kinds of crazy stuff?
I know tons of people use some kind of SCM like subversion or
mercurial or something, but you normally only commit working changes
and projects that you're working on. Instead, this
TextMateHistoryManagement would keep track of every single change you
make to every single document you ever save, good changes or bad ones,
who cares, just everything.
Personally, I think this would be stinking awesome to the power of
infinity -1 squared! (aka, it'd be nifty)
So, as far as UI goes…
I want a new history to be saved every time I save the document.
I want to have a nice GUI palette like photoshop to see a list of
changes.
That list shows the filename, hide-able full file path, timestamp and
the number of lines added, removed or changed in that version.
There should be a hide-able diff drawer or area with a tabbed safari-
esque view with tabs for each diff available. Diff that version to
it's parent, the selected items to eachother, or the selected item
with your open version.
There are some obvious technical hurdles to leap, but it's all totally
doable. The purpose of this poll is to see if anyone would be
interested in this from a fronend user interface level. I already know
how I'm likely going to actually build this thing, and we can talk
more about that later.
What I'm most interested in is workflow.
I'd like us all to come up with the best and most genericly usable
workflow for everyone. Maybe some advanced stuff for the nerds, but I
want this as mostly a noob feature and for people who don't want to
have to care about version control or whatever.
For example, with the implementation that I just suggested, you could
do this…
You're working on a version of some random webpage, then someone
emails you a changed version. You could just replace your current file
with that one and open it up and check your history palette to see the
changes. (assuming you had opened and saved the original file in
textmate at some point)
You'd never had to install or configure or set up anything. It should
all just work™
Thoughts?
thomas Aylott — subtleGradient — CrazyEgg — bundleForge
Is there a way to make the HTML output window autoscroll? For things
like RakeMate, it would be great if the window auto scrolled as new
content was added.
- LD.
Hello everyone,
I am working with the TextMate Subversion bundle and a German shell
localization (LC_ALL=de_DE.UTF-8). It turns out the commit result
window will always show 'unknown revision committed' in its title.
To fix that I put a copy of svn_commit.rb out of the Subversion
bundle's Support folder in ~/Application Support/TextMate/Bundles/
Subversion/Support/ and changed the regex in line 214 to the following:
http://pastie.textmate.org/89801
Hopefully this will catch other languages as well. Maybe someone
finds this useful, so I thought I would post it here.
cheers
Tibor Claassen
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