I know I got turned onto the wonderful Vera monospaced font through
this list, so I thought folks might be interested that there's an
effort to greatly improve Vera.
Vera's an open source font, but is apparently not maintained by
Bitstream. So it's been forked as Deja Vu. From glancing at the
project's history page, and playing around with it a bit, it seems
every bit as good as Vera, and has far better international support
-- I noticed less-common diacriticals and Cyrillic glyphs, to start,
and it seems there are many more. They are intent on making it a
full Unicode font.
More info here:
http://dejavu.sourceforge.net/wiki/index.php/Main_Page
Although most of the installation instructions seem complicated, for
us OS X users it's easy: just download the zip file, and add the .ttf
fonts to your system.
--John
Hi peeps. I was told this was the best place to put this. I've had a
hunt round the mailing list archives and dug up an elegant solution
here or there for Vim-style comment block behaviour, but nothing
obsessive-compulsive enough to quite satisfy me. So here's mine! I
hope you find it useful.
#!/usr/bin/env ruby
# TextMate command to continue block comment
# Preserves whitespace before and after asterisk
# Save: Nothing
# Input: Selected Text / Line
# Output: Insert as Snippet
# Activation: Key Equivalent
# Scope: comment.block
line = ENV['TM_CURRENT_LINE']
caret = ENV['TM_LINE_INDEX'].to_i
before = (caret > 0) ? line[0..caret-1] : ''
after = line[caret..-1]
before =~ /^(\s*)(\/)?\*(\s*)/
if $&
spc = $2 ? ' ' : ''
printf before + "\n#{$1}#{spc}*#{$3}$0" + after
else
before =~ /^(\s*)/
printf before + "\n#{$1}$0" + after
end
This is also my first ever custom command, so it might look a bit
rough. Also, it doesn't insert the space after the asterisk by
default, but by its very indentation-preserving nature will happily
add it after you type one out on the first line.
I guess if there IS a way to do this with a snippet after all, I'm
going to look a bit silly.
Hi,
While tracking down some unrelated issue, I ran into a problem with svn
blame. It breaks when you apply it to files that are not versioned:
> NoMethodError
>
> reason: undefined method `+' for nil:NilClass
> trace:
> /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/format_blame.rb:49
> /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/format_blame.rb:43
Could someone please have a look at this?
Thanks,
Jeroen.
> I can't reproduce this here. Can you give us a precise step-by-step?
1. Open todo.gtd.
2. Create a project and an action
3. Hit "#"
4. Hit "Enter" to set the date to "today"
5. Focus goes back to Finder instead of TxMt
- Ben
After entering the date in the CocoaDialog popup, TxMt is losing
focus. The date is still getting written to the file. Any thoughts on
what might be the issue?
Ben
i am trying to convince the perl bundle to properly fold pod
documents. has anyone tried this with success?
i have tried modifying the Start/Stop markers from
foldingStartMarker = '(/\*|(\{|\[|\()\s*$)';
foldingStopMarker = '(\*/|^\s*(\}|\]|\)))';
to
foldingStartMarker = '(/\*|(\{|\[|\()\s*$|^=head\d)';
foldingStopMarker = '(\*/|^\s*(\}|\]|\))|^=cut)';
which works fine for a simple block:
=head1 HELLO
Hello, World.
=cut
but not for blocks that have more than one =head marker:
=head1 HELLO
Hello, World.
=head2 OOPS
Now head1 and head2 both show folding carets, but only the one
one by head2 does anything when you click it.
=cut
i tried to get clever and use perlish zero-width positive look-ahead
regex -- something like (^=head\d(.|\n)*(?==cut)) -- but textmate
doesn't appear to support such patterns.
any suggestions?
I found this full screen SIMBL bundle today that allows one to work
with any app in full screen mode. Works great in TextMate.
http://ianhenderson.org/megazoomer.html
Ciao
Martin
Hi
Is there a list of which static TM variables are currently available?
I was wondering if for example TM_AUTHOR already exists. I think it
could be of good use for many things. E.g. filling in the author of
S5 slides automatically or when converting a MultiMarkdown document
to LaTeX.
Cheers. Oliver
After the last update to textmate the keyboard shortcut
(command+period) to auto close html tags seems to have broken. This is
the error message that occurs:
<p>/tmp/temp_textmate.IBrgoT:7: undefined method `match' for
#<String:0xc59ac> (NameError)
Does anyone know how or if this can be fixed?
Thank you.
Michael
Hey Drew,
> ---------- Forwarded message ----------
> From: Drew McLellan <lists(a)allinthehead.com>
>
> I'd like to see this as an editing mode, automatically managing real
> tabs/spaces for me.
>
> I use tabs for aligning assignment blocks, and so often find myself
> going back up to add extra tabs when the left side of the assignments
> becomes longer than I expected. Example (using 4 spaces for a tab here):
>
> $a = 'A';
> $bb = 'B';
> $ccc = 'C';
>
> If I were to enter a forth line with a really long variable name, I'd
> *love* for the behaviour to be result in:
>
> $a = 'A';
> $bb = 'B';
> $ccc = 'C';
> $really_long_name = 'foo';
>
> .. but for that to be done with real tabs. I think the suggested
> convention of using a blank line to clear the alignment is a good one.
>
> Not sure if that's useful input or not, but there you have it :)
I've built a TM filter command that will realign assignment blocks.
It'll run on the current selection or on a block of statements
touching the current line. You can find it at
http://random-dreams.org/freeware/textmate/assignment-block-tidier.txt.
It's been on my shortlist since then to write a version that can
realign entire statements, lining up commas and closing parenthesis
and such. I'll probably get to that this month.
Regards,
Chris.