Hi Haris, I know you have just done a bunch of reorganization, but it
is producing an error, at least on my end, with the command, `#`:
[2]
/tmp/temp_textmate.ST54F9:41:in
Best, Mark
Hello all,
It occurred to me that it would very useful if the Latex bundle could
let one know whenever a \ref{X} occurs before \label{X}. When you
cut and paste sections, you have to check mentally that the logical
order is preserved. Sometimes, of course, you wish the order to
be reversed, as in "This theorem will be generalized later in \ref
{X}", but this is the exception rather than the rule. It would
helpful to see a list of exceptions in a separate window on command
such as with the handy TODO command.
This seems a natural problem for this group to tackle and would
benefit many grad students now writing their theses.
Cheers,
Jenny
There's a conflict between the system jpeg lib and the one installed
with I installed the Darwin Ports ImageMagick. This has been a
persistent problem that has crashed TextMate for me. Does anyone have
a workaround for this?
The example below shows an svn commit that crashed.
TIA
s.ross
CrashReporter/CommitWindow.crash.log
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/ImageIO
Expected in: /opt/local/lib/libJPEG.dylib
Dear all,
I just wrote a small Drag&Drop command for inserting encoded txt,
htm, html files and doc and rtf files.
The background:
I get a lot of data written as doc, rtf, html, and txt files which
are encoded in different encodings like Shift_JIS, EUC-JP, Big5, etc.
In order to insert these data in my document I wrote a tiny drag&drop
command which makes usage of the tm_dialog and the UNIX command
'textutil'.
The usage is very simple. Just drag one or more selected files to an
open TM document. The dialog will ask you for the source encoding and
the output format. Press 'Insert' and the tool will convert
everything to utf-8 text/html/rtf/rtfd/wordml format. See more detail
with 'man textutil'
The encoding 'no conversion' will avoid a conversion. To change the
available encodings just open the 'icf.plist' within the bundle with
TM or the plist editor. Only IANA names for encodings are allowed.
I leave the scope empty. File Types I set to 'doc, rtf, htm, html,
txt, webarchive'. But, it is easy to customize it.
Now you can drag e.g. a WORD document and insert it as uft-8 (cleaned
up) html in your current document.
For me it works perfectly. Of course, 'textutil' cannot do magic
things but for 95% of all cases it works pretty good.
Maybe some of you find it also quite useful ;)
Comments are welcomed, as always.
Have a nice day,
Hans
Hello.
I have released tmplugin that supports CJK input.
http://hetima.com/textmate/index-e.html
It detects input mode correctly. No action to activate required.
I have tested only Japanese. But it will works with other language
that uses Input Method as well.
Screenshot is here.
http://www.flickr.com/photos/hetima/293699370/
thanks.
--
hetima
Hi,
This should be real quick to answer, but I have
started a Rails app, dragged it into textmate, but it
is having trouble recognizing the Rails bundle.
The Ruby bundle seems to work fine, I can Tab Complete
for the commands there, but not for Rails.
Is there something that I can do to get it to
recognize the Rails bundle as well?
For example
begin[tab] works fine,
but not bt[tab] (belongs to) which is in Rails.
Thanks,
Tim
Timothy Wee
(612)889-1185
3301 Coachman Rd. #321
Eagan, MN
http://www.timshawn.com
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
Hi everybody.
As some of you may have figured out, I work a lot in HTML and CSS and
I have a fetish for descriptive titles on links. I've been rewriting
the wrap selection as link command and have it all worked out to grab
the title of the link in the clipboard if it starts with http(s). I
can't get it to validate the link, though.
Here's the text of the command:
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
require 'open-uri'
link = "http://site.com"
title = #{ENV['TM_SELECTED_TEXT']}
s = IO.popen('pbpaste', 'r+').read
if s.match(/(http(s?):\/\/)/) then
TextMate.call_with_progress(:title => "Opening Link", :message =>
"Retrieving Title for #{s}") do
begin
fp = open(s)
title = fp.read.match(/<title>([^<>]*)<\/title>/i).to_a
[1].strip
link = s
rescue
title = "site unreachable"
end
end
end
print %{<a href="${1:#{link}}" title="${2:#{title}}" >
$TM_SELECTED_TEXT</a>}
I've tried all kinds of overly complex methods that all yield the
same results when the link is bogus:
/usr/lib/ruby/1.8/timeout.rb:42:in /bin/bash: -c: line 1: unexpected
EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileconnect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileopen'
from /usr/lib/ruby/1.8/net/http.rb:430:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestart'
from /usr/lib/ruby/1.8/net/http.rb:324:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileproxy_open'
from /usr/lib/ruby/1.8/open-uri.rb:525:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 5: syntax error: unexpected end of filepopen'
from /Users/brett/Library/Application Support/TextMate/Support/lib/
progress.rb:11:in
This is what I get (and should get, I think) when I run it from a
Ruby dialog:
<a href="${1:http://site.com}" title="${2:site unreachable}" >
$TM_SELECTED_TEXT</a>
It works great when the site in the clipboard is valid. Any
suggestions would be appreciated.
Thanks,
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
My language grammar is very rusty, so correct me where I'm wrong. I'm trying to modify the language for the Mail bundle so reply quotes have syntax coloring:
>
>>
>>>
I've added the following to the "patterns = {" section of the Mail language bundle:
{ name = 'comment.line.first';
match = '^[ \t]*(>[ \t]*){1}.*$\n?';
},
{ name = 'comment.line.second';
match = '^[ \t]*(>[ \t]*){2}.*$\n?';
},
{ name = 'comment.line.third';
match = '^[ \t]*(>[ \t]*){3}.*$\n?';
},
But in my mail text, on a line starting with > the scope still says:
text.mail.markdown
text.html.markdown
Further, since making these changes, whenever I try to get scope (control shift p) on a mail document TextMate goes AWOL:
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
16465 TextMate 145.8% 0:45.73 4 101 24990 740M+ 20.5M 614M+ 963M+
I removed the Mail.tmbundle/Syntaxes/Mail.tmDelta file and it works again, so clearly something is wrong with my syntax above.
Quinn
I'm a little hesitant to put this out there because I'm not sure if
it's a silly idea or not. I asked a little while back about
interactive template creation. I created a portfolio website that,
when the entries are created correctly, automatically generates
client lists, recent project lists, portfolio pages, etc. I just
needed a way to enter the data and have it format a blog entry.
What I ended up doing with it was using tm_dialog to create a form
and then process that in a template command that outputs to a new
blog.html file. It's very specific to my needs, so I'm obviously not
sending that to the list. However, the process seemed relatively
new, so I thought I'd share it, just in case.
The template will take any key-value pairs fed to it by the nib and
substitute them for the :::key::: in the template file. You can
build as complex a nib as you like, and do whatever you want with the
keys in the template file. It's all done in ruby.
It just includes a Mad Lib and is basically a proof of concept, but I
think it has applications ranging from composing emails to blog
entries and anything that could be sped up by inputting values into a
template interactively.

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................