> 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