Hey all,
if i do, in a ruby file :
#!/usr/bin/env ruby
require 'plist'
plist=Plist.parse_xml(my_info_plist)
within TextMate i get :
NameError: uninitialized constant Plist
altought this script is running well from terminal doing a :
> ruby essai.rb
the ruby used is the same (/opt/local/bin/ruby)
i did setup within textmate some enverironnement variables :
TM_RUBY => /opt/local/bin/ruby
RUBYOPT => -rrubygems
GEM_HOME => /opt/local/lib/ruby/gems/1.8
they all correspond to what i get in the Terminal ie :
> which ruby
/opt/local/bin/ruby
> echo $RUBYOPT
-rrubygems
> echo $GEM_HOME
/opt/local/lib/ruby/gems/1.8
the, i don't understand where the prob comes from...
Hi,
is it possible to change the subversion bundle to allow the diff
actions to take the selected folder in the project drawer as its target?
Thanks in advance,
--
Pedro Melo
JID: melo(a)simplicidade.org
So: I notice that there isn't a Velocity (VTL) bundle available, and
it's listed as something people are interested in. I also can't see
one in the Subversion repository.
As a result: I'm interested in one, and I'm working on one. So far
(after 1-2 hours work) it covers syntax highlighting for keywords in
Velocity lines, as well as single-line comments; there's also some
basic snippets for commonly used methods (set, cparse, parse, if,
foreach). It also inherits all the HTML highlighting/functionality,
obviously.
If anyone else is interested in this bundle, I'd be very grateful for
feature requests and suggestions on what syntax highlighting should
cover. I'd also be interested to know what it *shouldn't* do.
At some point I'll see if I can get an SVN login and put it into the repository.
Anyhow, thought this might be of some interest.
t.
Thanks to Chris, Torsten, Allan and Thomas for the awesome new
subversion bundle.
I do have a few minor feature requests for your consideration:
- Add Commit button directly to the Status window so commits can be
done straight after reviewing the changes
- Add propedit svn:externals command to menu (on selected file) and
allow the externals editing in a subversion window
- Add svn:ignore command to menu (on selected file)
- In the status window, allow setting svn:ignore via shortcut on ?-
files (similar to the Add link)
Any chance you find any of this worth implementing?
Thanks again for your great work.
Sebastian
Hello,
I'm having some problems with the blogging bundle in TextMate. I've
run 'Setup Blogs' and configured it properly. I hesitate to post the
configuration here for public consumption, but if I will email it
directly if need be.
When I try to post or fetch posts, I get this error:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:9:in
`expand_path': couldn't find HOME environment -- expanding
`~/Library/Preferences/com.macromates.textmate.blogging.txt'
(ArgumentError)
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:9
from /tmp/temp_textmate.3tWil3:2:in `require'
from /tmp/temp_textmate.3tWil3:2
Any help would be appreciated.
-Zach
Hey All,
I know there aren't any bundles for Coldfusion out there so HTML
bundle has worked ok. But the one thing that is really annoying is
opening a coldfusion document with comments in it.
HTML comments work fine:
<!-- something here -->
CFM comments have problems
<!--- something else here --->
It shows like it's an incorrect syntax and everything below that
point gets dimmed out like it's a comment. Any ideas on how to make
these types of comments look right for me? Something quick and easy
is preferable.
Thanks.
Josh
I admit it: I have not really understood what changed in the
subversion bundle, as I am getting bugs in two places:
* Log on a file produces:
> No Match
> mhh, something with with the regex or svn must be wrong. this
> should never happen.
> last line: Geänderte Pfade:
> please bug-report.
* Blame on a file produces:
> No Match
> mhh, something with with the regex or svn must be wrong. this
> should never happen.
> last line:
> 11 dekay
> 2006-01-21 21:07:26 +0100 (Sa, 21
> Jan 2006) %!TEX root = ../
> Doktorarbeit.tex
> please bug-report.
I suppose this is because of some parsing of the svn output that
doesn't escape the contents of the output - and since Latex likes the
use of % and \ this could cause problems?
* View revision… of a file produces an untitled document (it would
be nice to have a complete filename with the revision in it?)
Dan
I've just begun with svn ... and I've googled and tried :)
how do you supply your password to the svn bundle, I try to commit
but it says I haven't supplied a password (which I haven't since I
don't know how)
help appreciated as always
Andreas
I've recently been messing with the Remind language grammar, and I
would welcome some comments and test files, especially from people
who are use some of the more obscure features. Here is the file:
http://skiadas.dcostanet.net/uploads/Remind.tmLanguage
Atm there is not support for multiline commands (i.e. a command
continuing in a separate line). I hope to add it soon.
Haris
Hi,
I've tried to edit a post via the bloggin bundle. I was able to
retrieve the post, edited without problem, but at posting time, I get
a error to name the endpoint.
THe problem is that the Blog: header (of a moveable type blog) is
missing the #blog_id at the end, although is present in the config file.
Thanks,
--
Pedro Melo
JID: melo(a)simplicidade.org
I am trying to modify my view lists command. It is based on the TODO
bundle command, but I am trying to use string comparison instead of
regexp to test lines. As far as I can tell, the sorting is going ok,
but I'm having trouble with the output. It seems to show everything
except for the task itself (the content). Here is the code, any idea
what's going wrong? Thanks.
Mike
#!/usr/bin/env ruby
$myPath = ENV['TM_DIRECTORY']
$tags = [] #user defined contexts
def readContexts(a)
# processes contexts.gtd into script
context, tabCommand, tabString, regex, color = a.split(/\|/)
$tags.push({:label => context, :regexp => regex, :color =>
color, :matches => []})
end
require "#{ENV['TM_SUPPORT_PATH']}/lib/textmate"
require "erb"
include ERB::Util
def TextMate.file_link (file, line = 0)
return "txmt://open/?url=file://" +
file.gsub(/[^a-zA-Z0-9.-\/]/) { |m| sprintf("%%%02X", m[0]) } +
"&line=" + line.to_s
end
# the contexts.gtd file is read, and converted into $contexts
file = File.open($myPath+"/contexts.gtd", "r")
file.each do |line|
readContexts(line)
end
# sorting happens
$tags.each do |tag|
context = tag[:label]
myFiles = Dir.entries($myPath)
myFiles.each do |fileName|
if (fileName[-3,3] == "gtd") and (fileName != "contexts.gtd")
lineno = 0
mFile = File.open(fileName)
mFile.each do |line|
lineno = lineno + 1
re = /\s/
ctask = re.match(line)
if ctask.pre_match == context
results = {
:file => fileName[0..-5],
:line => lineno,
:content => ctask.post_match
}
results[:match] = html_escape($1)
tag[:matches] << results
end
end
end
end
end
tmpl_file = "#{ENV['TM_BUNDLE_SUPPORT']}/template.rhtml"
puts ERB.new(File.open(tmpl_file), 0, '<>').result
> It's not happening here. Is this consistent? Is it always the Finder,
> or whatever the “previous application” is?
Always the finder.
> Do you use any programs like LiteSwitchX? I do, but I don't know if
> this would affect things.
Nope. Fresh Tiger install, though I did copy over ~/Library/
Application Support/TextMate and ~/Library/Preferences/
com.macromates.textmate.plist.
> Do you notice this only with the date dialog, not with the choose
> context dialog or other dialogs?
Just tested the choose context dialog and got the same issue.
> Do you have your own CocoaDialog installed, or just the one that
> comes with TextMate?
Just the one that comes with TxMt.
Thanks for your assistance, hope this helps. Best regards,
Ben
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.