Is there a way to automatically have TextMate change to a specified
theme based on the bundle that is selected?
An example is, when I select to make a Screenwriting bundle file, I'd
like it to automatically change to my screenwriting default theme
instead of whatever is currently there.
I've been extremely frustrated trying to figure this out.
Thanks in advance!
I have a SVN project with a few externals. Every time I go to
commit, it automatically includes these external folders in the
window and marks them with and X. What happens, is that if im not
actually commiting inside one of the external directories, the commit
fails.
What I want to do, is that if there is an "X" item, I want it
deselected by default. If you need a screen shot to understand what
I'm talking about, I can give it up.
If someone could either fix it or toss the code my way so I can mess
with it, it would be greatly appreciated.
Eric Coleman
I don't really understand why, but the "Edit in TextMate" command
works for me in Firefox, even though it is not visible from the Edit
menu at all. Or, more specifically, it works in my blog's post
composition window (Wordpress 2).
Does anyone know why?
Dan
It works fine from TextEdit. What might be up? Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Running the Show TODO List command, I get the following error:
/tmp/temp_textmate.jfDKQP:25:in `initialize': No such file or
directory - /Users/markkalderon/Documents/TheHub/Research/
ColorPluralism/Drafts/Trunk/Philosophy.bib (Errno::ENOENT) from /tmp/
temp_textmate.jfDKQP:25:in `open' from /tmp/temp_textmate.jfDKQP:25
from /tmp/temp_textmate.jfDKQP:24:in `each' from /tmp/
temp_textmate.jfDKQP:24 from /tmp/temp_textmate.jfDKQP:23:in `call'
from /Library/Application Support/TextMate/Support/lib/textmate.rb:
63:in `scan_dir' from /Library/Application Support/TextMate/Support/
lib/textmate.rb:56:in `each' from /Library/Application Support/
TextMate/Support/lib/textmate.rb:56:in `scan_dir' ... 10 levels...
from /Library/Application Support/TextMate/Support/lib/textmate.rb:
56:in `each' from /Library/Application Support/TextMate/Support/lib/
textmate.rb:56:in `scan_dir' from /Library/Application Support/
TextMate/Support/lib/textmate.rb:73:in `each_text_file' from /tmp/
temp_textmate.jfDKQP:23
I am using TM 1.5.1 (985) on OS X 10.4.6. Any help would be appreciated.
All the best, Mark
I typically use TextMate for two different things: administrating/
updating websites and LaTeX. For Websites I use UTF8, but for LaTeX I
have to use Latin1 (since this is what my co-workers use).
However, when I load the website project, every time a file is saved,
Latin1 is used instead of UTF8. Is there a way to make that encoding
stick, preferably on a per-file basis (at least on a per-project
basis)? I suspect that this should be very easy to implement (via
metadata) …
Or is there another way to make TextMate respect my choice of encoding?
Thanks a lot.
Max
A newbie question. I'm looking for a way to update bumdles
automatically. I don't know much about subversion, but I got it
working, and could download bundles without a problem. Now I would
like to automatize this workflow. Copying the text onto Terminal
window is a little hassle. I tried saving the terminal window, but
only could save the Window Setting.
--
Teck
Hi,
I committed a complete rewrite of the Mercurial[1] bundle to the
repository.
The Mercurial shortcut is now ctrl + shift + M. I know this key
equivalent is already used in some other bundles, but it's the best
we could find.
I don't know if there are many Mercurial users here, but if you are
one, please give me your feedback.
[1]http://www.selenic.com/mercurial/
--
FredB
Not sure if this fits anywhere in the bundles, but I've added a
BalanceJr-like command to my personal bundle that makes navigating
Ruby, HTML and XML code a lot easier. Check it out if you're
interested: http://blog.inquirylabs.com/2006/05/02/new-feature-
intelligent-jump/
Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/
I've noticed that the HTML comments are slightly restrictive. If I
have the following code:
<p>
some text, <!--- order now --->
</p>
<div class="msg">
....
it will highlight everything from the start of the comment, to the
end of the page. How do I fix that without going through all the
flies to fix the comments?
Eric Coleman
> I'm observing some strange behaviour with the YAML folding markers:
> the folding stop marker does not appear when there is some whitespace
> on the closing line this despite of the regex matching \s*. It works
> fine if the line is completely empty, however.
I haven't found a way around this. The problem is that if you have
nested folds:
key: "value"
another_key:
yet_another_key: "another_value"
It needs to choose one to fold to. In order for this to work it
matches the indent levels of the start and stop lines.
> I also thought it helpful to add [^#] after the initial ^ in the
> folding start marker regexp so that comments containing words
> followed by colons do not appear as folding markers (as with the
> default database.yml that Rails 1.1.2 generates).
Just added it to the repo now.
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
I'm observing some strange behaviour with the YAML folding markers:
the folding stop marker does not appear when there is some whitespace
on the closing line this despite of the regex matching \s*. It works
fine if the line is completely empty, however.
I also thought it helpful to add [^#] after the initial ^ in the
folding start marker regexp so that comments containing words
followed by colons do not appear as folding markers (as with the
default database.yml that Rails 1.1.2 generates).
foldingStartMarker = '^[^#]\s*.*:(\s*\[?| &.+)?$';
-- Paul
If one opens a file in TextMate and then renames that file in the
Finder, TextMate does not pick up the change and saving the opened
file will result in the file being saved with its original name.
I only mention this as I am user coming from BBEdit and am used to it
picking up file name changes upon activating the editor window.
I'm not sure which is the best approach but I like the idea of files
not being dependent on their name; the ability to re-open a file
despite its name having been changed is a great thing so perhaps this
should apply to when a file is currently opened?
Thanks in advance,
-- Paul
I often hear in this list how Command-/ comments/uncomments the
selection with the appropriate commenting characters, however,
anytime I use it it _always_ uses C-style comments (/*...*/).
I have an up to date /Library/Application Support/TextMate checked
out from Subversion and I've poked at ~/Library/Application Support/
TextMate and couldn't find anything there that would create this
behavior.
Is there anything I need to do to enable this smart comments. And if
not, how can I debug this?
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
sorry for so many messages...
>> I don't speak Perl, so I was just talking generally... but each of
>> those \t's is a tab, so maybe remove two?
>Yeah, it works to remove two of the tabs, but since I also don't speak
>Perl I can't tell why it's doing that. And that sort of bothers me,
>that it is clearly marked as inserting two, but it actually inserts
>four.
So it works when there is text to paste in, but when it falls back to
just positioning the cursor, only two tabs are inserted.
Hi list -
"xhtml2article" (in the Markdown bundle) has definitions to transform
xhtml meta-tags/info into LaTeX definitions/tags. Can I define this
meta-information, such as the author, in the Markdown file? If not,
how do I get this meta-info into LaTeX?
Thanks for any hint.
With regards
- Stefan
> I don't speak Perl, so I was just talking generally... but each of
> those \t's is a tab, so maybe remove two?
Yeah, it works to remove two of the tabs, but since I also don't speak
Perl I can't tell why it's doing that. And that sort of bothers me,
that it is clearly marked as inserting two, but it actually inserts
four.
Anyone speak Perl?
> Set the output to "Insert as snippet" and wrap it in ${0:...}? you'll
> need to escape the ... bit of course.
Do you mean this:
#!/usr/bin/perl -w
$m1=$m2='';
$c=1;
while(<>)
{
if(/^\t{4}(.+)[\r\n]+$/)
{
$m1=$m2;
$m2=$1;
}
$c++;
last if($c==$ENV{'TM_LINE_NUMBER'});
}
print "\n\n\t\t\t\t\${0:\$m1}";
...'cause that seems to work but inserts two too many tabs now.
First off, Allan, for build 989 you're my hero.
Second,
> If I understand the problem correct, the script below does that.
> Input set to 'Entire Document', Output to 'Insert as Text'.
> Gerd
Seems like you understand it quite well. I'll test it over the next
few days to see if it holds up. Looks like it will.
One small thing... Ideally, the text that is grabbed and placed via
the script should end up being selected so that it can easily be
over-ridden. Is there an easy fix for the script that will do that?
Thanks a lot guys.
If you try to run an untitled Ruby file, the Ruby bundle saves a temp
file, and then runs that. In Python, we are first required to save the
file somewhere. I find myself saving lots of files in the trash or in
/tmp. What do people think of changing the Python run command to mimic
the Ruby run command? I would just change it myself, but perhaps
someone has a reason to prefer the existing behavior.
-Jacob
Allan recently isolated a bug I found to be in the regular expression
library TextMate uses and we're waiting for a response. While we wait
I was looking to implement the feature that crashed TextMate and I
hoped you all could help me out with some ruby or perl (or whatever)
voodoo.
The bug is explained here: http://ollieman.net/videos/find-bug.mov
The expected behavior is explained here: http://ollieman.net/videos/desired.mp4
It works the rest of the time, it's just when at the beginning of the
document that it crashes.
Thanks in advance for any help.
--oliver
P.S. Are these videos a good way to ask questions? I feel like it's
difficult to articulate without actually showing you.
> 1. When triggered the macro looks backwards from
> the cursor position for lines beginning with four tabs?
Yes. Specifically, four tabs followed by a letter, number or punctuation mark.
> 2. The first such line is skipped and the second such
> line inserted where the cursor is.
Two lines down from where the cursor is, yes.
> What is supposed to happen if there is only one such line
> in the document. (I know it crashes, but what is it suppose
> to do?)
Just insert the cursor in the expected position (two lines down and
four tabs in) with no text.
Hello all,
I'm relatively new to TextMate, only been using it for a few weeks,
and I have decided it quite possibly the best way for me to develop
my games, programs and websites in. Unfortunately it when I
downloaded it did not do any BlitzMax, which is one of the main IDE's
I use. I began to look around and I couldn't find one anywhere.
Anyway I began to develop my own, and I have just today gotten it to
a working stage. There are still limitations in it, which I'm looking
in to on how to correct.
Anyway, here is a link to a post on my blog about it, and where you
can download it. I hope people like it, as it has taken quite a bit
doing and learning of TextMate's bundle system.
Tom
http://www.freepgs.com/bluelaser/blog.php
When a snippet with the same tab trigger/key command is activated you
get a menu item with which one you would like to select.
Unfortunately you can't use [C-n or C-p][1] so you must either use
the mouse or the arrow keys. How about each snippet is assigned a
number which would activate the snippet?
[1]: Please fix this :)
-- Daniel
A new TmCodeBrowser version is available here:
http://www.cocoabits.com/TmCodeBrowser/
This update is recommended to all TmCodeBrowser users. It deals with
ctags occasionally hanging and prevents TextMate to hang also when
this happens.
To install:
- Save all open files in TextMate (just in case)
- Download and open the dmg
- Double-click on the bundle
TextMate will take care of the installation.
Gerd