hello,
i've checked out a current revision of the Bundle repository (rev. 429)
and when I try to use any of the new subversion commands I get the
following error:
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:49: undefined method `[]'
for nil (NameError) from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:46:in `call' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/Builder.rb:226:in `_nested_structures' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/Builder.rb:148:in `method_missing' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:46 from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:44:in `each_line' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:44 from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:43:in `call' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/Builder.rb:226:in `_nested_structures' ... 6
levels... from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:29:in `call' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/Builder.rb:226:in `_nested_structures' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/Builder.rb:148:in `method_missing' from
/Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Tools/format_status.rb:29
I've installed subversion from the 'official' binary package at
http://metissian.com/projects/macosx/subversion/
before setting TM_SVN to ''/usr/local/bin/svn' it wouldn't run at all,
complaining, that it can't find 'svn' (which is odd, as /usr/local/bin
is in $PATH...
any ideas?
thanks in advance,
tom
--
Tom Lazar, http://tomster.org
Greetings!
I'm trying to change the background/foreground colors, which only seems
to work on documents w/out syntax highlighting. I set my background to
black, but when I open a PHP file it has a white background. I set my
background to white, but when I open a Ruby file it shows up black. Is
this deliberate? Do I have to learn how to rewrite the syntax rules to
make this change? Frankly, it seems quite counter-intuitive. Why offer
that option if it usually doesn't even work?
If there is a simple answer, can someone direct me to it? I would be
ever so grateful.
Also, is there a manual for this software? Between the mailing list,
the startup tips, the newsgroup, the wiki, and the blog, I'm near my
wit's end. I do like this program, but I assumed that it would come
with documentation!!! Frankly, using this feels more like a scavenger
hunt, not exactly par for commercial software.
Please don't take me wrong, I'm just a little frustrated.
Regards,
Raymond
Is there any way to get preferences for search dialogs to last across
an OS restart? For instance, the regexp checkbox. I almost always
want that to be checked. I have noticed that it sticks when restarting
TM during the same OS session, but not across reboots.
--
Best regards,
Lang Riley
On Mar 5, 2005, at 5:38 AM, Tom Lazar wrote:
> /Volumes/Data/Applications/TextMate.app/Contents/SharedSupport/
> Bundles/Subversion.tmbundle/Tools/format_status.rb:49: undefined
> method `[]' for nil (NameError)
This is an old thinko on my part, now fixed (thanks for catching it!).
Please svn update to the latest format_status.rb and give it another
shot.
Chris
Hi,
I made a script that opens the source of the frontmost Safari document
in TextMate, with syntax-coloring.
I used a similar one for BBEdit a long time ago. (or was it only 5
months? ;)
With Applescript, it always look quite easy when you start, then you
end up spending hours to get it to work properly.
AS is as easy to read as it's hard to write. But it works!
You can see I'm a little AS challenged, so advices are welcome.
Basically, it takes the source and the title of the frontmost Safari
window (warns you if there is none, or if it's blank),
remove "http://" and replace any "/" in the title with ":", makes a
file in /tmp with the title as name (adding ".html" if it's not already
there) and opens it in TM.
Should I put it on the wiki or in the repository?
Hope this can be useful to someone.
--
Fred
Download it here: http://osxgeek.org/tm/Source2TM.zip or copy/paste it
Script Editor.
========================================================================
=
tell application "Safari"
if not (exists document 1) then
display dialog "You need to open a web location first!" buttons
{"OK"} default button 1
return
end if
set mySource to the source of front document as text
if (length of mySource is 0) then
display dialog "You need to open a web location first!" buttons
{"OK"} default button 1
return
end if
set myName to name of front document as text
end tell
try
tell application "TextMate" to activate
set myName to replace_chars(myName, "http://", "")
set myName to replace_chars(myName, "/", ":")
if (myName ends with ".html") or (myName ends with ".htm") then
set myPath to "/tmp/" & myName
else
set myPath to "/tmp/" & myName & ".html"
end if
do shell script "rm -f " & quoted form of myPath
do shell script "echo " & quoted form of mySource & " >> " & quoted
form of myPath
do shell script "open -a TextMate " & quoted form of myPath
end try
on replace_chars(this_text, search_string, replacement_string)
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of this_text
set AppleScript's text item delimiters to the replacement_string
set this_text to the item_list as string
set AppleScript's text item delimiters to ""
return this_text
end replace_chars
========================================================================
=
I just got this from Schubert:
I have fixed a bug that could cause it to crash when the
initialization of the PDF document fails in the most recent
version. If you still have documents that cause a crash please
forward them to me.
It was released 2nd of March, so I'd encourage people to update, and if
you experience a crash, send him the PDF causing the problem.
I regularly post code onto blogs and would love to get what I see in
TextMate (highlighting and such) to be represented with HTML. I there
a method in place for doing this?
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
Hi
I am just trying out TextMate and have been impressed, however
I am a bit confused by the folding. The main problem comes when I click
on the arrow for a fold opening (down arrow), it simply folds to the
next fold closing
(up arrow). If a new fold opening occured in the middle then it
ignores this.
From looking at the lists and so on I think this might have something
to do
with indentation, however I am using latex, which it is not natural to
indent.
best wishes
Edmund
------------------------------------------------------------------------
------------
Problems worthy
Edmund Harriss
of attack Queen Mary, University of
London
prove their worth edmund.harriss(a)mathematicians.org.uk
by hitting back. http://www.mathematicians.org.uk/eoh
Piet Hein 1905-1996
------------------------------------------------------------------------
------------
There has been some talk here and on the bundle dev list about
character sets and entities in HTML documents. Here is some information
that might be useful.
First of all, there is no need to use entities in HTML documents for
such things as é è ê ë etc., as it only makes them harder to read, to
edit and to parse. When using utf-8, the entire utf-8 range CAN be used
directly. As far as I know, the only entities needed are:
& > <
In order to not confuse the parser. No, all this only works if the
document is sent by the server as UTF-8. Someone wrote on the dev-list
that he makes sure this is the case by putting a meta-tag in the
document (using http-equiv).
Unfortunately, most popular web-servers (well, at least Apache ;-))
doesn't look at the document to see if you included such a tag, and
will always add a char-set header to the HTTP response. This defaults
to iso-8859-1 and _overrides_ the one specified in the document
meta-tag. Maybe this is not in line with the standard, but it is
nevertheless what happens in practice.
So we need to make the server send the content as utf-8 instead. With
Apache we have several alternatives:
1) Enable MultiViews using (in .htaccess) Options +MultiViews and
rename the document to name.html.utf8 or name.php.utf8 etc. MultiViews
also allow for content-type and language negotiation so you can refer
to a picture with 'name' and have several versions on disk 'name.jpeg',
'name.png' etc. The same goes for omitting the .php and .html
extensions. Note that some web-servers may be setup to prevent you from
enabling MultiViews like this.
2) Set the default charset for all text/html and text/plain content.
This will of course also include php, ruby and cgi in general. You can
do this by putting: AddDefaultCharset utf-8 in your .htaccess file.
This is probably the easiest way.
3) Set the charset to utf-8 for some file-extensions only. This hardly
seem useful, and could probably be of more use by setting the charset
to something ELSE than utf-8 for certain files, e.g. name.txt or
similar. The syntax is (in the .htaccess file): AddCharset <charset>
<extensions...>, e.g. AddCharset iso-8859-1 .txt .text.
Note that there doesn't seem to be any way to add charsets to specific
mime-types, but only extensions. Of the methods above I recommend 2,
although enabling MultiViews is generally a Good Thing™, in my opinion.
--
Sune :: http://cyanite.org/
"And now there is merely silence, silence,
silence, saying all we did not know."
I've run into a rather annoying bug, seem that if I create a project
by dragging a folder of files onto TextMate, I can't group files, has
anyone else had problem with this?
If I create a project from within TextMate and then add files one at a
time to it, I can group them.
any ideas?
--
--------------------------------------------
saul rosenbaum
www.visualchutzpah.com
Another thing I miss from BBEdit: Would it be possible to have vertical
lines show in a faint shade of grey so that it's easy to see at which
indent level you are?
Of course, this should come /after/ SFTP and SVN :). (Btw, those are
the things why I still use BBEdit as my main editor.)
If there is another way of asking for features—or better yet checking
how often something is requested, please let me know.
--
Regards, Charles.
Having just started to do some Python coding, I have discovered that Python
seems to prefer spaces instead of tabs for its indenting, so I've switched
the setting in the prefs, which is fine, but I was wondering whether there
is any way to make this setting language dependent as I do a lot of
Actionscript work as well, where tabs are more normal for indenting.
Regards all,
Chris Jenkins
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
When I run the HTML color picker command i get:
## Component Manager: attempting to find symbols in a component alias
of type (regR/carP/x!bt)
in addition to the hex value for the color.
Any ideas of how to fix this?
Cheers,
Ian
I use TextMate at work and love it, but on my home computer it crashes
upon startup. (Both machines are running 10.3.8.) I've tried both
1.0.2 and the beta release. After some research, I find that my problem
is practically identical to this one...
http://lists.macromates.com/pipermail/textmate/2005-February/003009.html
...which is why I won't include a crash log unless it's requested, since
as far as I can tell mine is the same as his. Unfortunately, the
problem never seemed to get resolved. I imagine there's some sort of
conflict with something I've installed previously, but I'm not inclined
to uninstall things one by one just to see what happens.
Are there any ideas as to what could be the problem?
Andrew Dupont
I had been using Jotz (until it became Bloatz), then MacJournal and
tried DevonThink (which I may still purchase--it's pretty cool). But
since I have TM open all the time anyway I have an "info" project where
I store various bits of data. There's no RTF or images but I can live
without them and I like the portability of plain text.
What I would like is an on-the-fly encryption -- i.e. select the text
and run a command to encrypt it (with a pre-set password). Then I could
store bank data etc securely.
Any tips on how this might be done? I know there is command-line
encryption of various kinds but I'm not sure how I could store a
password w/in TM for global use.
thanks!
Paul
PS looking forward to the new PHP bundle!
OK, not sure how to explain this simply and clearly. So here goes :)
Reworking the CSS syntax file and I've decided to separate things like
this:
SELECTORS::
Main selector group should be grabbing anything in front of { but not {
begin = "[^} \\t{/@][^{]*?";
end = "(?=/\\*|\\{|\\s|$)";
Subpatterns
|-> selectors.html-elements = matching all HTML tags
|-> selectors.classes = UserDefined classes = matching any word with
a . in front of it
|-> selectors.id = UserDefined #Ids = matching any word with a # in
front of it
|-> selectors.pseudo-class = :hover, :link etc
PROPERTIES::
catching everything between the { } with the requisite sub-patterns.
begin = "\\{";
end = "\\}";
The problems I am having is that I can catch either the Selectors OR
the Properties, but NOT both at the same time.
The Selectors Regex above enables the Properties to work, but not the
Selectors.
Somehow lost the working regex for Selectors right now, but think I was
using:
begin = "^[^{]*?";
end = "(\\{)";
What am I doing wrong, where the hell is this thing falling apart
?????? I'm going nuts and has been on the verge of throwing the damn
thing out of the window. Please save my 'puter from an untimely death
: )
Going to sleep now, hoping for a better day tomorrow.
===================
Example Code:
/* a comment */
body {
/* inside properties comment */
properties: value;
}
div, .classname, #IDname:hover
{
/* inside properties comment here too */
properties: value;
}
/* another comment */
End Example Code:
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Wouldn't it be really nice if the find function was shown at the bottom
of the window like it is done in Firefox?
Regards,
Thijs
--
Fingertips - http://www.fngtps.com
Firefox - Take back the web - http://getfirefox.com
Hi-
Quick question on a bit of Wiki comment. On the 'suggestions' page,
this is listed under 'Already Implemented':
"Similar to above, if I open a file through an FTP/SFTP app, it would
be cool to have the file open in a project instead of with a regular
editor window. Perhaps if the frontmost window is a project window,
the file is placed in that project"
I'm just wondering if 'already implemented' means in your internal
CVS/SVN repo, or in the public beta? I don't think this is working for
me so I'm guessing you mean internal builds (?)
thanks
-Todd
One more help request. How can I write a better command that would check
a whole document, or selected text, and spell check it through
excalibur.
What I am using now is:
input: document
open -a excalibur "$TM_FILEPATH"
output: disgard
This calls excalibur with the file fine. I run the spell check and make
changes and then excalibur asks me to save it. When I return to TextMate
the page does not show the corrections until I click on it. Any further
suggestions for the code much appreciated.
If anyone would like this added to the LateX bundle, I would be happy to
add it.
Cheers
Robert
I was wondering if anyone has figured out how to set the preferences in
xcode to open a tmproj file in textmate? Of course I can control "open
with finder' to get it to open in textmate, but I am looking to set the
preferences to open all tmproj files with textmate as the external
editor. I can not find such a heading in xcodes preferences though.
Cheers,
Robert