From drdrang at gmail.com Wed Mar 1 03:22:39 2006 From: drdrang at gmail.com (Dr. Drang) Date: Tue, 28 Feb 2006 21:22:39 -0600 Subject: [TxMt] Extra indentation in Markdown mode Message-ID: I take class notes on my laptop in Markdown and organize them in a locally-hosted blog. Last week was the first week I used TextMate instead of BBEdit for this, and I was occassionaly getting an extra level of indentation while typing in code blocks. For example, in one section of my notes I typed this: | #include | | vector v; // vector of zero elements | vector v(250); // vector of 250 elements, initialized to zero | vector t(10); // 10 elements, all set to 00:00 Each line is indented by four spaces (the pipe characters are meant to represent the left margin), which Markdown will wrap in
 and
 tags. I have TM (version 1.5 [906]) set to use soft tabs of 2
characters each.

I found that hitting the Return key after each of these lines (other
than the blank one) would put the cursor on the next line with an
indentation of 6 spaces instead of 4. This may be a red herring, but
the extra indentation seemed to occur only after lines that had an
angle-bracked pair, like , in them. So in this excerpt

|    #include
|    #include
|    #include "d_random.h"
|    using namespace std;

the extra indentation occurred after the first two lines, but not
after the second two.

Can anyone tell me why this is happening and what I can do to fix it?

--
Dr. Drang


From cskiadas at uchicago.edu  Wed Mar  1 04:26:19 2006
From: cskiadas at uchicago.edu (Charilaos Skiadas)
Date: Tue, 28 Feb 2006 22:26:19 -0600
Subject: [TxMt] Extra indentation in Markdown mode
In-Reply-To: 
References: 
Message-ID: <09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu>

On Feb 28, 2006, at 9:22 PM, Dr. Drang wrote:
>
> Each line is indented by four spaces (the pipe characters are meant to
> represent the left margin), which Markdown will wrap in 
 and
>  tags. I have TM (version 1.5 [906]) set to use soft tabs of 2
> characters each.
>
> I found that hitting the Return key after each of these lines (other
> than the blank one) would put the cursor on the next line with an
> indentation of 6 spaces instead of 4. This may be a red herring, but
> the extra indentation seemed to occur only after lines that had an
> angle-bracked pair, like , in them. So in this excerpt
>
> |    #include
> |    #include
> |    #include "d_random.h"
> |    using namespace std;
>
> the extra indentation occurred after the first two lines, but not
> after the second two.
>
> Can anyone tell me why this is happening and what I can do to fix it?
>
I can explain what is happening and suggest some ideas on how to fix  
it. The scope for the entire markdown bundle is text.html.markdown
This means that it inherits stuff from the html bundle, in general a  
good thing. In this case, it inherits the indentPattern behavior,  
that you would see for instance if you type  and press enter.  
This is dictated in the Miscellaneous preferences file in the HTML  
bundle, by the following code:

	increaseIndentPattern = '(?x)
		(<(?!area|base|br|col|frame|hr|html|img|input|link|meta|param|[^>]*/>)
		  ([A-Za-z0-9]+)\b[^>]*>(?!.*)
		|)
		|\{[^}"'']*$
		)';

I think what you have to do is create such a file in the Markdown  
bundle, with an appropriate increase indent pattern and scope  
text.html.markdown, and hope that this will override the pattern from  
html. The problem with that of course is that then the html indenting  
will not work in markdown.
I don't think that there is a simple answer here, in that we do want  
such indenting in markdown in general, and in fact in code blocks  
too, since the code blocks might often be html. It just happens to  
have this weird behavior if your code happens to have what looks like  
the opening of an html tag.
> --
> Dr. Drang

Haris




From Soryu at serenity.de  Wed Mar  1 05:32:46 2006
From: Soryu at serenity.de (Soryu)
Date: Wed, 1 Mar 2006 06:32:46 +0100
Subject: [TxMt] TODO Suggestion / Need Help
In-Reply-To: <8E021173-EBB4-4B9A-ADA0-BB37DEDFAE3B@aplosmedia.com>
References: <8E021173-EBB4-4B9A-ADA0-BB37DEDFAE3B@aplosmedia.com>
Message-ID: <3A318BC3-BEC3-4F13-A34F-500CE40A06FA@serenity.de>

Hi Eric,

if you are familiar with ERB/Ruby you can easily duplicate the  
template [1] of the todo list and give it any look/format you'd like.  
You can then either copy and paste from the todo list window, or  
change the output from HTML to New Window and save the file. Changing  
the last line in the command
	puts ERB.new(File.open(tmpl_file), 0, '<>').result
to some not output the generated contents (puts) but to save them to  
a file in your project dir should be no big problem, too. If you need  
help with that, just ask.

For further suggestions you would have to include a little more  
detail like in what format your todo list should be.
I'm also considering adding priorities, so
	... // TODO(1) This is important!
	... // TODO(10) This can wait until 2.0
would let you assign further info to the items. But I'm not sure  
about how I will present that information.


Soryu

[1] /Library/Application Support/TextMate/Support/lib/textmate.rb


On 28.02.2006, at 22:51, Eric Coleman wrote:

> I really like the TODO bundle... however, something I think might  
> be useful.
>
> I want to export the todo list to a file called "TODO" in the root  
> directory of the project.  How can I accomplish this?
>
> Eric Coleman



From drdrang at gmail.com  Wed Mar  1 06:29:49 2006
From: drdrang at gmail.com (Dr. Drang)
Date: Wed, 1 Mar 2006 00:29:49 -0600
Subject: [TxMt] Extra indentation in Markdown mode
In-Reply-To: <09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu>
References: 
	<09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu>
Message-ID: 

On 2/28/06, Charilaos Skiadas  wrote:

> I can explain what is happening and suggest some ideas on how to fix
> it. The scope for the entire markdown bundle is text.html.markdown
> This means that it inherits stuff from the html bundle, in general a
> good thing. In this case, it inherits the indentPattern behavior,
> that you would see for instance if you type  and press enter.

[snip]

> I think what you have to do is create such a file in the Markdown
> bundle, with an appropriate increase indent pattern and scope
> text.html.markdown, and hope that this will override the pattern from
> html. The problem with that of course is that then the html indenting
> will not work in markdown.
>
> I don't think that there is a simple answer here, in that we do want
> such indenting in markdown in general, and in fact in code blocks
> too, since the code blocks might often be html. It just happens to
> have this weird behavior if your code happens to have what looks like
> the opening of an html tag.

Haris, I hope you're getting paid for the good work you do on this
list. You seem to be helping out in every thread.

I haven't thought about this issue before, but I think I'm going to
disagree with your last paragraph. Certainly we'd all like indenting
in our code blocks, but I don't think HTML code should get special
treatment in TM because it doesn't get special treatment in Markdown
itself. I suppose I wouldn't mind if this special treatment of HTML
were benign, but it isn't: it messes up the input of other types of
code.

Should Markdown be inheriting from HTML? My tendency is to say no.
Markdown is not a subset or superset of HTML; it is something
different. Yes, you can insert HTML directly (outside of a code block)
when Markdown itself can't give you what you want, but those
insertions are usually very short. I don't think TM's Markdown mode
benefits from this inheritance.

--
Dr. Drang


From gavin at refinery.com  Wed Mar  1 06:54:13 2006
From: gavin at refinery.com (Gavin Kistner)
Date: Tue, 28 Feb 2006 23:54:13 -0700
Subject: [TxMt] showInSymbolList not working
In-Reply-To: <2A93AD23-1C1F-46C2-8F5B-ABB4BF16EEFA@refinery.com>
References: <2A93AD23-1C1F-46C2-8F5B-ABB4BF16EEFA@refinery.com>
Message-ID: <1606FB49-38CD-4F47-BA92-48E019037651@refinery.com>

On Feb 28, 2006, at 8:53 AM, Gavin Kistner wrote:
> I'm trying to play with symbol list definitions, and things aren't  
> working for me.

Bah...I had another preference file in a different bundle with no  
scope set and some bad data, and this seems to have been corrupting/ 
overriding things. Removing that preference chunk caused my tests to  
work.



From cskiadas at uchicago.edu  Wed Mar  1 07:21:38 2006
From: cskiadas at uchicago.edu (Charilaos Skiadas)
Date: Wed, 1 Mar 2006 01:21:38 -0600
Subject: [TxMt] Extra indentation in Markdown mode
In-Reply-To: 
References: 
	<09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu>
	
Message-ID: <0080E70D-203F-4F1B-A97B-806D262D620D@uchicago.edu>

On Mar 1, 2006, at 12:29 AM, Dr. Drang wrote:

> I haven't thought about this issue before, but I think I'm going to
> disagree with your last paragraph. Certainly we'd all like indenting
> in our code blocks, but I don't think HTML code should get special
> treatment in TM because it doesn't get special treatment in Markdown
> itself. I suppose I wouldn't mind if this special treatment of HTML
> were benign, but it isn't: it messes up the input of other types of
> code.
>
  I will agree with you that in markup.raw.block.markdown it perhaps  
should not get special treatment. I don't think that it is easy to  
disable though, and we do want it to be enabled in the rest of the  
markdown code.

> Should Markdown be inheriting from HTML? My tendency is to say no.
> Markdown is not a subset or superset of HTML; it is something
> different. Yes, you can insert HTML directly (outside of a code block)
> when Markdown itself can't give you what you want, but those
> insertions are usually very short. I don't think TM's Markdown mode
> benefits from this inheritance.
>
I don't tend to use HTML in Markdown, but I sure would like to see it  
colored when I do use it. I guess it depends on how one uses  
Markdown. One simple solution to avoiding the indenting behavior is  
to change the scope of the "Miscellaneous" file in the HTML bundle  
from "text.html" to "text.html - text.html.markdown". That would tell  
it to not use whatever that file is offering in the markdown bundle.  
This should make things work in your local copy. (Don't forget, if  
you want changes to preferences items to take effect, you have to  
close the Bundle Editor window)
The only "disadvantage" to this is that it makes something in the  
HTML bundle refer markdown. the HTML bundle doesn't "know" about  
markdown, and it shouldn't. But if you want a quick fix, that is the  
simplest way.

> --
> Dr. Drang

Haris




From gerkol at gmail.com  Wed Mar  1 13:47:47 2006
From: gerkol at gmail.com (Guray Erkol)
Date: Wed, 1 Mar 2006 13:47:47 +0000 (UTC)
Subject: [TxMt] Re: Complete Run
References: <7AD61CAE-DA71-45D0-9C1F-E27DD8466026@mpi-hd.mpg.de>
Message-ID: 

Hi,
Does this help:
i) Go to Window > Show Bundle Editor and choose Latex on the left pane.
ii) Highlight "Run Bibtex" and click on the middle button which 
stands on the lower left hand corner of the window. This looks like 
double plus sign "++" which will create a copy of the bundle "Run Bibtex".
iii) Click on "Run Bibtex copy" bundle which you have created above and write 
the following code in the  right hand pane:
#----------------------------------
"# Latex-Bibtex-Latex-Latex-dvipdf-show file
# Variables
V=${TM_LATEX_VIEWER:=preview}
M=${TM_LATEX_MASTER:=$TM_FILEPATH}
DIR=`dirname "$M"`
FILE=`basename -s.tex "$M"`
DVI="${FILE%.tex}.dvi"
PDF="${FILE%.tex}.pdf"
CWD="`pwd`/"

# Switch to the right directory.
cd "$TM_PROJECT_DIRECTORY"
cd "$DIR"

latex "$FILE"
bibtex "$FILE"|pre
latex "$FILE"
latex "$FILE"
dvipdf "$DVI"

# View...
open -a "$V" "$PDF"
#----------------------------------

iv) Rename the bundle and run it on your file. See what happens.
Success,
Guray.






From throw-away-1 at macromates.com  Wed Mar  1 13:56:13 2006
From: throw-away-1 at macromates.com (Allan Odgaard)
Date: Wed, 1 Mar 2006 14:56:13 +0100
Subject: [TxMt] TODO Suggestion / Need Help
In-Reply-To: <3A318BC3-BEC3-4F13-A34F-500CE40A06FA@serenity.de>
References: <8E021173-EBB4-4B9A-ADA0-BB37DEDFAE3B@aplosmedia.com>
	<3A318BC3-BEC3-4F13-A34F-500CE40A06FA@serenity.de>
Message-ID: 

On 1/3/2006, at 6:32, Soryu wrote:

> [...] you can easily duplicate the template [1]
> [...]
> [1] /Library/Application Support/TextMate/Support/lib/textmate.rb

Should be: /Library/Application Support/TextMate/Bundles/ 
TODO.tmbundle/Support/template.rhtml




From drdrang at gmail.com  Wed Mar  1 14:11:06 2006
From: drdrang at gmail.com (Dr. Drang)
Date: Wed, 1 Mar 2006 08:11:06 -0600
Subject: [TxMt] Extra indentation in Markdown mode
In-Reply-To: <0080E70D-203F-4F1B-A97B-806D262D620D@uchicago.edu>
References: 
	<09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu>
	
	<0080E70D-203F-4F1B-A97B-806D262D620D@uchicago.edu>
Message-ID: 

On Mar 1, 2006, at 1:21 AM, Charilaos Skiadas wrote:

> I don't tend to use HTML in Markdown, but I sure would like to see  
> it colored when I do use it. I guess it depends on how one uses  
> Markdown.

I'm beginning to think that I don't want any syntax highlighting in  
Markdown. I suppose the ideal would be for code blocks to be  
highlighted according to the language in that block, but not having  
highlighting doesn't affect me much. Except when taking notes in a  
programming class, I don't write code directly in Markdown, I paste  
it into my Markdown documents from the original source files--which  
are, of course, properly highlighted for the language.

> One simple solution to avoiding the indenting behavior is to change  
> the scope of the "Miscellaneous" file in the HTML bundle from  
> "text.html" to "text.html - text.html.markdown". That would tell it  
> to not use whatever that file is offering in the markdown bundle.  
> This should make things work in your local copy. (Don't forget, if  
> you want changes to preferences items to take effect, you have to  
> close the Bundle Editor window)
> The only "disadvantage" to this is that it makes something in the  
> HTML bundle refer markdown. the HTML bundle doesn't "know" about  
> markdown, and it shouldn't. But if you want a quick fix, that is  
> the simplest way.

I've only been back to using TextMate for a couple of weeks now, and  
don't feel comfortable mucking around inside it yet. And I've spent  
too much time undoing "quick fixes" to want to jump in and change  
TM's behavior before I get a better understanding of how it works and  
how I work with it. So for now I'll just backspace to get rid of the  
extra indentation.

Thanks for the explanations.

--
Dr. Drang




From throw-away-1 at macromates.com  Wed Mar  1 14:15:34 2006
From: throw-away-1 at macromates.com (Allan Odgaard)
Date: Wed, 1 Mar 2006 15:15:34 +0100
Subject: [TxMt] Extra indentation in Markdown mode
In-Reply-To: <0080E70D-203F-4F1B-A97B-806D262D620D@uchicago.edu>
References: 
	<09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu>
	
	<0080E70D-203F-4F1B-A97B-806D262D620D@uchicago.edu>
Message-ID: 

On 1/3/2006, at 8:21, Charilaos Skiadas wrote:

> I will agree with you that in markup.raw.block.markdown it perhaps  
> should not get special treatment [...]

I added a Preferences item to the Markdown bundle which sets the  
increase/decrease indent patterns as they are set in the Source  
bundle, and scoped this to markup.raw.block.markdown -- so at least  
in raw text in Markdown, C++ template arguments are not mistaken for  
HTML tags.

Maybe though people who use the raw environment for HTML examples  
will dislike the lack of smart indent -- but then, they can just  
remove this new preferences item :)

>> Should Markdown be inheriting from HTML? My tendency is to say no.
>> Markdown is not a subset or superset of HTML; it is something
>> different. [...]

There are advantages of letting it inherit from HTML, and thanks to  
the granular scope system, it?s generally not a problem to override  
the default behavior given from the HTML inheritance.



From dasvo at planeta.cz  Wed Mar  1 14:15:25 2006
From: dasvo at planeta.cz (Daniel Svoboda)
Date: Wed, 01 Mar 2006 15:15:25 +0100
Subject: [TxMt] Code folding suggestion/bug report/feature request
Message-ID: 

Hello,

I just have one suggestion for your otherwise beautiful text editing. Can
you please make code folding to display also an end tag of the block. Now
when the code is folded I can see "if {..." but the end tag is not visible.
I think it should display even the terminating "}", like "if {...}" or
"
...". Not seeing the terminating tag makes the document with folded code simply unreadable, especially if the document is big and there is lots of code folded. I am always searching for where the end of my block was gone. Maybe it is only me, but I found it very confusing. Can you please fix/adapt it? And if it's only me, it would be nice to have preferences for it, only for me :) Thanks, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2182 bytes Desc: not available URL: From throw-away-1 at macromates.com Wed Mar 1 14:18:54 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 1 Mar 2006 15:18:54 +0100 Subject: [TxMt] Code folding suggestion/bug report/feature request In-Reply-To: References: Message-ID: <51F72400-6F43-4F9C-AB6B-E800ECFC7346@macromates.com> On 1/3/2006, at 15:15, Daniel Svoboda wrote: > [...] Can you please fix/adapt it? [...] When I revisit the rendering model, yes. But this is long-term. From c.janssen at mpi-hd.mpg.de Wed Mar 1 14:30:57 2006 From: c.janssen at mpi-hd.mpg.de (Christof Janssen) Date: Wed, 1 Mar 2006 15:30:57 +0100 Subject: [TxMt] Re: Complete Run In-Reply-To: References: <7AD61CAE-DA71-45D0-9C1F-E27DD8466026@mpi-hd.mpg.de> Message-ID: <3AE76738-81C3-4637-997E-E6685D78CCF4@mpi-hd.mpg.de> Hi, thanks for looking into it. Your script is running "almost" perfect. Unfortunately, I get a pdf error when I include the pdfsync package. If I don't, the run is latex bibtex latex latex without errors/ problems. Otherwise I get the following error (from the log file): pdfTeX error (\pdfsavepos): used while \pdfoutput is not set. \@PDFSYNC ->\relax \ifPDFSYNCOK \pdfsavepos \immediate \write \PDFPOS {l\spa... l.40 \begin{document} No pages of output. Transcript written on rkarticle.log. Christof Am 1. Mrz 2006 um 14:47 schrieb Guray Erkol: > Hi, > Does this help: > i) Go to Window > Show Bundle Editor and choose Latex on the left > pane. > ii) Highlight "Run Bibtex" and click on the middle button which > stands on the lower left hand corner of the window. This looks like > double plus sign "++" which will create a copy of the bundle "Run > Bibtex". > iii) Click on "Run Bibtex copy" bundle which you have created above > and write > the following code in the right hand pane: > #---------------------------------- > "# Latex-Bibtex-Latex-Latex-dvipdf-show file > # Variables > V=${TM_LATEX_VIEWER:=preview} > M=${TM_LATEX_MASTER:=$TM_FILEPATH} > DIR=`dirname "$M"` > FILE=`basename -s.tex "$M"` > DVI="${FILE%.tex}.dvi" > PDF="${FILE%.tex}.pdf" > CWD="`pwd`/" > > # Switch to the right directory. > cd "$TM_PROJECT_DIRECTORY" > cd "$DIR" > > latex "$FILE" > bibtex "$FILE"|pre > latex "$FILE" > latex "$FILE" > dvipdf "$DVI" > > # View... > open -a "$V" "$PDF" > #---------------------------------- > > iv) Rename the bundle and run it on your file. See what happens. > Success, > Guray. > > > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From drdrang at gmail.com Wed Mar 1 15:31:22 2006 From: drdrang at gmail.com (Dr. Drang) Date: Wed, 1 Mar 2006 09:31:22 -0600 Subject: [TxMt] Extra indentation in Markdown mode In-Reply-To: References: <09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu> <0080E70D-203F-4F1B-A97B-806D262D620D@uchicago.edu> Message-ID: <6D9024BA-DC33-49BA-8747-36A61595BAB9@gmail.com> On Mar 1, 2006, at 8:15 AM, Allan Odgaard wrote: > On 1/3/2006, at 8:21, Charilaos Skiadas wrote: > >> I will agree with you that in markup.raw.block.markdown it perhaps >> should not get special treatment [...] > > I added a Preferences item to the Markdown bundle which sets the > increase/decrease indent patterns as they are set in the Source > bundle, and scoped this to markup.raw.block.markdown -- so at least > in raw text in Markdown, C++ template arguments are not mistaken > for HTML tags. Unfortunately, I'm too new to TextMate to really understand this. But it sounds like the new Markdown bundle will not have the extra indentation by default. Am I right? I also want to make sure I understand the bundle hierarchy before I install anything new. I've made my own additions to TM's Markdown support and I don't want them to get blown away. As I understand it, the default bundles are in /Applications/TextMate/ Contents/SharedSupport/Bundles and any changes/additions I make to a bundle are in ~/Library/Application\ Support/TextMate/Bundles. The manual says that when checking out bundles from svn, I should put them in Library/Application\ Support/TextMate/Bundles. Does this mean that the priority for bundle behavior is this? Highest: ~/Library/Application\ Support/TextMate/Bundles /Library/Application\ Support/TextMate/Bundles Lowest: /Applications/TextMate/Contents/SharedSupport/Bundles -- Dr. Drang From fredb7 at starflam.com Wed Mar 1 16:03:01 2006 From: fredb7 at starflam.com (Fred B.) Date: Wed, 1 Mar 2006 17:03:01 +0100 Subject: [TxMt] Growl instead of tool tips Message-ID: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Hi, Is there any way to replace tool tip output with Growl[1] for the svn bundle? Tool tips are the only "non-sticky" output, but they are so non- sticky that I sometimes cant read them at all. If the cursor is not at the right place (99% of the time as I use a tablet pen), this is a real nightmare. I can't find a way to catch the output of the command, if I could I'd send it to Growl thru growlnotify (Shell) or Ruby-Growl. So my questions are: 1) How can I catch the output of svn commands? 2) More generally, wouldn't it be nice to add Growl to the output options? What do you think Allan? For those who don't know it: Growl is a central notification system for Mac OS X. It's free and released under BSD license. What is nice is that you can configure how notifications will look, if they are sticky, etc. per applications. Applications can access it through Cocoa and Carbon API or Applescript, Ruby, Perl, Java, TCL, Python, Shell, etc. Here are some scrennshots[2] and the huge list of apps using Growl[3] [1]: http://growl.info/ [2]: http://growl.info/screenshots.php [3]: http://growl.info/applications.php -- FredB From ericbuth at mac.com Wed Mar 1 16:10:00 2006 From: ericbuth at mac.com (Eric Buth) Date: Wed, 1 Mar 2006 11:10:00 -0500 Subject: [TxMt] tm and intel. In-Reply-To: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: hey all. i am new to list. i was wondering, what is the status of TM vis-a-vis intel macs? is the current version "universal"? thanks eric From unlogikal at gmail.com Wed Mar 1 16:12:19 2006 From: unlogikal at gmail.com (Kyle Swank) Date: Wed, 1 Mar 2006 11:12:19 -0500 Subject: [TxMt] tm and intel. In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: <3b7b9d490603010812v572822fdw66af86b9906cfcd6@mail.gmail.com> Yes, it's universal. Kyle On 3/1/06, Eric Buth wrote: > hey all. i am new to list. i was wondering, what is the status of TM > vis-a-vis intel macs? is the current version "universal"? thanks > > eric > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > From fredb7 at starflam.com Wed Mar 1 16:12:48 2006 From: fredb7 at starflam.com (Fred B.) Date: Wed, 1 Mar 2006 17:12:48 +0100 Subject: [TxMt] tm and intel. In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: <85A8B325-DC8D-4975-911A-DC2B59C229F0@starflam.com> On 01 Mar 2006, at 17:10, Eric Buth wrote: > hey all. i am new to list. i was wondering, what is the status of > TM vis-a-vis intel macs? is the current version "universal"? thanks > > eric Yes. ;) -- Fred From ericbuth at mac.com Wed Mar 1 16:14:46 2006 From: ericbuth at mac.com (Eric Buth) Date: Wed, 1 Mar 2006 11:14:46 -0500 Subject: [TxMt] tm and intel. In-Reply-To: <85A8B325-DC8D-4975-911A-DC2B59C229F0@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <85A8B325-DC8D-4975-911A-DC2B59C229F0@starflam.com> Message-ID: <65E492D7-F7F0-4813-9A0B-FA2E3DE5C63E@mac.com> maybe i just missed it, but it seems they would do well to list this prominently on the macromates site. perhaps using that icon. eric On Mar 1, 2006, at 11:12 AM, Fred B. wrote: > > On 01 Mar 2006, at 17:10, Eric Buth wrote: > >> hey all. i am new to list. i was wondering, what is the status of >> TM vis-a-vis intel macs? is the current version "universal"? thanks >> >> eric > > Yes. ;) > > -- > Fred > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From cryo at cyanite.org Wed Mar 1 16:51:48 2006 From: cryo at cyanite.org (Sune Foldager) Date: Wed, 1 Mar 2006 17:51:48 +0100 Subject: [TxMt] tm and intel. In-Reply-To: <65E492D7-F7F0-4813-9A0B-FA2E3DE5C63E@mac.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <85A8B325-DC8D-4975-911A-DC2B59C229F0@starflam.com> <65E492D7-F7F0-4813-9A0B-FA2E3DE5C63E@mac.com> Message-ID: <39E1E1E6-FC6A-434F-B5EA-A6402210D467@cyanite.org> On 01/03/2006, at 17:14, Eric Buth wrote: > maybe i just missed it, but it seems they would do well to list > this prominently on the macromates site. perhaps using that icon. I think Allan is against that icon :-). -- Sune. From ericbuth at mac.com Wed Mar 1 16:55:12 2006 From: ericbuth at mac.com (Eric Buth) Date: Wed, 1 Mar 2006 11:55:12 -0500 Subject: [TxMt] tm and intel. In-Reply-To: <39E1E1E6-FC6A-434F-B5EA-A6402210D467@cyanite.org> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <85A8B325-DC8D-4975-911A-DC2B59C229F0@starflam.com> <65E492D7-F7F0-4813-9A0B-FA2E3DE5C63E@mac.com> <39E1E1E6-FC6A-434F-B5EA-A6402210D467@cyanite.org> Message-ID: regardless, it seems to make sense to indicate more prominently that there is an intel binary in there. will this program run natively on my hardware is a serious question when considering using a new piece of software. eric On Mar 1, 2006, at 11:51 AM, Sune Foldager wrote: > On 01/03/2006, at 17:14, Eric Buth wrote: > >> maybe i just missed it, but it seems they would do well to list >> this prominently on the macromates site. perhaps using that icon. > > I think Allan is against that icon :-). > > -- Sune. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From bchoate at gmail.com Wed Mar 1 17:39:21 2006 From: bchoate at gmail.com (Brad Choate) Date: Wed, 1 Mar 2006 09:39:21 -0800 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: I would prefer to use Growl over tooltips too. The tooltip _is_ barely readable. Moving your mouse even 1 pixel will clear it. I would recommend either adding a minimum interval to display the tooltip or add a threshold for more forgiving mouse movement (especially important when a mouse click was used to trigger the command that displays the tooltip). On Mar 1, 2006, at 8:03 AM, Fred B. wrote: > Hi, > > Is there any way to replace tool tip output with Growl[1] for the > svn bundle? > > Tool tips are the only "non-sticky" output, but they are so non- > sticky that I sometimes cant read them at all. If the cursor is not > at the right place (99% of the time as I use a tablet pen), this is > a real nightmare. > > I can't find a way to catch the output of the command, if I could > I'd send it to Growl thru growlnotify (Shell) or Ruby-Growl. > > So my questions are: > 1) How can I catch the output of svn commands? > 2) More generally, wouldn't it be nice to add Growl to the output > options? What do you think Allan? > > For those who don't know it: > Growl is a central notification system for Mac OS X. > It's free and released under BSD license. > > What is nice is that you can configure how notifications will look, > if they are sticky, etc. per applications. Applications can access > it through Cocoa and Carbon API or Applescript, Ruby, Perl, Java, > TCL, Python, Shell, etc. > > Here are some scrennshots[2] and the huge list of apps using Growl[3] > > [1]: http://growl.info/ > [2]: http://growl.info/screenshots.php > [3]: http://growl.info/applications.php > > -- > FredB > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From thomas.42 at gmail.com Wed Mar 1 17:54:37 2006 From: thomas.42 at gmail.com (thomas Aylott) Date: Wed, 1 Mar 2006 12:54:37 -0500 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: <6B204BE1-1995-4E97-ADD8-55465278474B@gmail.com> I agree. Growl, much much! I would like an explicit growl output option for my commands. I would like to have an option in the app to force all tooltip output commands to use growl instead of having to manually edit each one. Thanks On Mar 1, 2006, at 11:03 AM, Fred B. wrote: > Is there any way to replace tool tip output with Growl[1] for the > svn bundle? > > Tool tips are the only "non-sticky" output, but they are so non- > sticky that I sometimes cant read them at all. If the cursor is not > at the right place (99% of the time as I use a tablet pen), this is > a real nightmare. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at grayskies.net Wed Mar 1 18:25:00 2006 From: david at grayskies.net (David Powers) Date: Wed, 01 Mar 2006 13:25:00 -0500 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <6B204BE1-1995-4E97-ADD8-55465278474B@gmail.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <6B204BE1-1995-4E97-ADD8-55465278474B@gmail.com> Message-ID: <4405E6FC.1050507@grayskies.net> agreed - on both growl and a little more lenience on tool tips -David thomas Aylott wrote: > I agree. > Growl, much much! > > I would like an explicit growl output option for my commands. > I would like to have an option in the app to force all tooltip output > commands to use growl instead of having to manually edit each one. > > Thanks > > > On Mar 1, 2006, at 11:03 AM, Fred B. wrote: > >> Is there any way to replace tool tip output with Growl[1] for the svn >> bundle? >> >> >> Tool tips are the only "non-sticky" output, but they are so non-sticky >> that I sometimes cant read them at all. If the cursor is not at the >> right place (99% of the time as I use a tablet pen), this is a real >> nightmare. >> > > > ------------------------------------------------------------------------ > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From cskiadas at uchicago.edu Wed Mar 1 18:42:47 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Wed, 1 Mar 2006 12:42:47 -0600 Subject: [TxMt] tm and intel. In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <85A8B325-DC8D-4975-911A-DC2B59C229F0@starflam.com> <65E492D7-F7F0-4813-9A0B-FA2E3DE5C63E@mac.com> <39E1E1E6-FC6A-434F-B5EA-A6402210D467@cyanite.org> Message-ID: <5D819869-CA68-4E1C-9F0A-AA7F762AE34F@uchicago.edu> On Mar 1, 2006, at 10:55 AM, Eric Buth wrote: > regardless, it seems to make sense to indicate more prominently > that there is an intel binary in there. will this program run > natively on my hardware is a serious question when considering > using a new piece of software. > While I agree with you that it would be nice for it to somehow be mentioned on the first page, a simple google search for "textmate universal" produces at least two links that have the answer. > eric Haris From david.clark at umb.edu Wed Mar 1 22:26:42 2006 From: david.clark at umb.edu (David Clark) Date: Wed, 1 Mar 2006 17:26:42 -0500 Subject: [TxMt] tm & symfony Message-ID: <94f9bc580603011426v34a26ab8wc8bdbc9e0eebfbd6@mail.gmail.com> Hi all, I have come across an interesting conundrum that I wonder if anyone else has dealt with. (it goes without saying that I am now a tm fanatic and don't know how I lived without it). I am starting to work with Symforny -- a php5 framework. I have a tm project for my sf project, but have discovered that the existence of the ._files is interfering with the execution of the symfony command (ie it sees ._schema..xml as "empty" and does not use the correct schema.xml file). I found 19.4 in the manual, and I want to know if that is my only option -- I would rather not sacrifice metadata. Thanks, -- dc ----- David Clark Web Specialist Institute for Community Inclusion (http://www.communityinclusion.org/) david.clark at umb.edu (617) 287-4318 From ericob at possibilityengine.com Wed Mar 1 23:20:44 2006 From: ericob at possibilityengine.com (Eric O'Brien) Date: Wed, 1 Mar 2006 15:20:44 -0800 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: As a partial fix: in the subversion bundle you could change the "Output" setting for the command(s) you're interested in having stick around "Show as HTML." On Mar 1, 2006, at 8:03 AM, Fred B. wrote: > Hi, > > Is there any way to replace tool tip output with Growl[1] for the > svn bundle? > > Tool tips are the only "non-sticky" output, but they are so non- > sticky that I sometimes cant read them at all. If the cursor is not > at the right place (99% of the time as I use a tablet pen), this is > a real nightmare. > > I can't find a way to catch the output of the command, if I could > I'd send it to Growl thru growlnotify (Shell) or Ruby-Growl. > > So my questions are: > 1) How can I catch the output of svn commands? > 2) More generally, wouldn't it be nice to add Growl to the output > options? What do you think Allan? > > For those who don't know it: > Growl is a central notification system for Mac OS X. > It's free and released under BSD license. > > What is nice is that you can configure how notifications will look, > if they are sticky, etc. per applications. Applications can access > it through Cocoa and Carbon API or Applescript, Ruby, Perl, Java, > TCL, Python, Shell, etc. > > Here are some scrennshots[2] and the huge list of apps using Growl[3] > > [1]: http://growl.info/ > [2]: http://growl.info/screenshots.php > [3]: http://growl.info/applications.php > > -- > FredB From roberto+textmate at keltia.freenix.fr Wed Mar 1 23:38:53 2006 From: roberto+textmate at keltia.freenix.fr (Ollivier Robert) Date: Thu, 2 Mar 2006 00:38:53 +0100 Subject: [TxMt] Mercurial bundle committed Message-ID: <20060301233853.GA67405@tara.freenix.org> Hello, I've committed a working version of my Mercurial bundle to the Svn repository. There may be some rough edges (like troubles if hg is not in your PATH) but I'll fix these soon. Thanks to the Darcs/SVN bundles authors for inspiration. :) Enjoy! -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005 From mummer at whitefalls.org Thu Mar 2 01:09:56 2006 From: mummer at whitefalls.org (Michael Sheets) Date: Wed, 1 Mar 2006 19:09:56 -0600 Subject: [TxMt] tm & symfony In-Reply-To: <94f9bc580603011426v34a26ab8wc8bdbc9e0eebfbd6@mail.gmail.com> References: <94f9bc580603011426v34a26ab8wc8bdbc9e0eebfbd6@mail.gmail.com> Message-ID: > I am starting to work with Symforny -- a php5 framework. I have a tm > project for my sf project, but have discovered that the existence of > the ._files is interfering with the execution of the symfony command > (ie it sees ._schema..xml as "empty" and does not use the correct > schema.xml file). > > I found 19.4 in the manual, and I want to know if that is my only > option -- I would rather not sacrifice metadata. Not really any way around that, at least for editing files directly like that. Though it would be nice to have a new halfway pref, where it would save metadata only if it didn't require a file. The best way around the issue entirely would be to use subversion or similar to manage the project, or you could use some sort of mirroring software to keep a local and remote copy in sync. Either one should ignore the metadata when it transfers. From jrus at fas.harvard.edu Thu Mar 2 04:12:46 2006 From: jrus at fas.harvard.edu (Jacob Rus) Date: Thu, 2 Mar 2006 04:12:46 +0000 (UTC) Subject: [TxMt] Re: UI suggestion for tabbed file names References: < <7b8791900602220114w3068a79fpded46148cc7843b8@mail.gmail.com> <096FA8E1-7392-41A1-9A56-943884A1DB02@macromates.com> <40D7E36B-71DF-4D7A-89A6-B01990451C28@3dlabs.com> <43FC6803.4080408@creutzig.de> <57BBB96E-B437-4D2D-8C2C-2C2D73841DAC@3dlabs.com> <7F6ED9D3-CFD6-47FE-9E96-C3F0E0223805@possibilityengine.com> <05CE1CD2-5E89-4FED-9AAB-C8D4A3E8F167@macromates.com> Message-ID: <20060301231245036-0500@news.gmane.org> Allan Odgaard wrote on 2/24/06 6:25 AM: > On 23/2/2006, at 21:40, Andrew Vit wrote: >> [...] I'd like to see numbers on them when I hold Cmd, to indicate >> the keyboard shortcut for jumping to them. Beyond 5-6 it's hard to >> spot them at a glance and forces me to count on my fingers. ;^) > > Conditional disclosure of the numbers sounds like a good idea (better > than having them permanently there) -- one problem is that you use > command for a lot more than switching tabs (through numbers), so > these numbers would show on a lot of keyboard actions, and are likely > to be a bother for most users (because part of the interface blink/ > flashes when using the command modifier key). Maybe the numbers could show up whenever someone switches tabs via the keyboard, e.g. via Cmd-opt-right, or Cmd-4. From lists at rainpuddle.com Thu Mar 2 05:45:16 2006 From: lists at rainpuddle.com (Brian Caldwell) Date: Thu, 2 Mar 2006 00:45:16 -0500 Subject: [TxMt] mate link creation error Message-ID: <20060302054516.14612@mail.rainpuddle.com> Hi - Using TM v.1.5 (906), I selected Terminal Usage... from the Help menu. I got a message window titled "Enhanced Terminal Usage" which explained about the shell command "mate" and asked where to create a symlink. I left the default location as /usr/bin and clicked then "Create Link" button. The standard admin user authentication box pops up, I enter the secret password. Then I get a error message box that says: Couldn't Create Link Creating the link "/usr/bin/mate" failed with the following reason: Operation not permitted Hmmm. I check to see if mate is in /bin. Nope. Okay let's check /usr/ bin. Ahh a symlink but not a valid one. The link is /Users/aurora/ Desktop/TextMate.app/Contents/Resources/mate. The correct link should be /Users/aurora/Desktop/TextMate/TextMate.app/Contents/Resources/mate. Which in turn is a symlink to ../SharedSupport/Support/bin/mate where it truly is. So, I deleted the bad symlink at /usr/bin and recreated it properly. After a rehash, where mate shows it at /usr/bin/mate. And mate -h returns help as it should. Conclusion: whatever process or command within Textmate that created the original (bad) symlink in /usr/bin needs to get tweaked to add the TextMate bundle (Textmate) into the source file name. The Textmate app name (TextMate.app) is fine, but both are needed. Hope this helps, Brian Caldwell From throw-away-1 at macromates.com Thu Mar 2 12:50:12 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 13:50:12 +0100 Subject: [TxMt] Crash with \n in symbol transform In-Reply-To: References: Message-ID: <36AF6AA7-2D64-4AFF-9D03-7392A810ACF3@macromates.com> On 28/2/2006, at 18:04, Gavin Kistner wrote: > A very minor issue, but if I use the symbol transform to place a \n > in the output for the symbol, TextMate insta-quits when I load up a > file using that language. [...] Fixed, thanks. FYI the problem is the subst. stuff use the same code as snippet variable substitution, where a newline adds indent, but there was no indent source for symbol list substs. From throw-away-1 at macromates.com Thu Mar 2 12:52:02 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 13:52:02 +0100 Subject: [TxMt] mate link creation error In-Reply-To: <20060302054516.14612@mail.rainpuddle.com> References: <20060302054516.14612@mail.rainpuddle.com> Message-ID: <34B63B60-12EE-4153-A9C0-250DA58710D6@macromates.com> On 2/3/2006, at 6:45, Brian Caldwell wrote: > Conclusion: whatever process or command within Textmate that > created the > original (bad) symlink in /usr/bin needs to get tweaked to add the > TextMate bundle (Textmate) into the source file name. The Textmate app > name (TextMate.app) is fine, but both are needed. I think more likely the link was already created, while TM was running from just ~/Desktop (instead of ~/Desktop/TextMate). Though why it did not detect, that there already was a link, I don?t know. A quick test shows that this code works here -- but ?operation not permitted? would indicate failure to overwrite the existing link (which does have to be removed for TM to be able to create a new, unline e.g. files, but TM should also detect when there already is one). From throw-away-1 at macromates.com Thu Mar 2 12:55:18 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 13:55:18 +0100 Subject: [TxMt] tm & symfony In-Reply-To: <94f9bc580603011426v34a26ab8wc8bdbc9e0eebfbd6@mail.gmail.com> References: <94f9bc580603011426v34a26ab8wc8bdbc9e0eebfbd6@mail.gmail.com> Message-ID: On 1/3/2006, at 23:26, David Clark wrote: > [...] the ._files is interfering with the execution of the symfony > command > (ie it sees ._schema..xml as "empty" and does not use the correct > schema.xml file). > > I found 19.4 in the manual, and I want to know if that is my only > option -- I would rather not sacrifice metadata. It sounds like Symfoni does not ignore hidden files, and load the first file named *.xml or similar -- I think you should write the Symfoni authors with the problem, and ask them to exclude such hidden files (everything starting with a period). From throw-away-1 at macromates.com Thu Mar 2 13:04:09 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 14:04:09 +0100 Subject: [TxMt] Extra indentation in Markdown mode In-Reply-To: <6D9024BA-DC33-49BA-8747-36A61595BAB9@gmail.com> References: <09F7A865-28E0-4637-A0C8-46D84B76B23E@uchicago.edu> <0080E70D-203F-4F1B-A97B-806D262D620D@uchicago.edu> <6D9024BA-DC33-49BA-8747-36A61595BAB9@gmail.com> Message-ID: <29E8BB92-2A72-4F3D-9794-955D3BDE4A09@macromates.com> On 1/3/2006, at 16:31, Dr. Drang wrote: > Unfortunately, I'm too new to TextMate to really understand this. > But it sounds like the new Markdown bundle will not have the extra > indentation by default. Am I right? Yes, for raw environments. > As I understand it, the default bundles are in /Applications/ > TextMate/Contents/SharedSupport/Bundles and any changes/additions I > make to a bundle are in ~/Library/Application\ Support/TextMate/ > Bundles. The manual says that when checking out bundles from svn, I > should put them in Library/Application\ Support/TextMate/Bundles. > Does this mean that the priority for bundle behavior is this? > > Highest: ~/Library/Application\ Support/TextMate/Bundles > /Library/Application\ Support/TextMate/Bundles > Lowest: /Applications/TextMate/Contents/SharedSupport/Bundles Yes -- and it merges bundles on a per-item basis. So add one item to the Markdown bundle, and only that item goes to ~/Library, and the rest is still from the default bundle. Basically TM will never ?blow away? any custom stuff when you upgrade. For that, you need to actively delete stuff in ~/Library. From throw-away-1 at macromates.com Thu Mar 2 13:11:28 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 14:11:28 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: On 1/3/2006, at 17:03, Fred B. wrote: > 1) How can I catch the output of svn commands? Currently not really possible w/o editing them. But we could work in e.g. a bash (or Ruby) function into the command init which we use for ?status information?, and that functcion could optionally be sourced from a location in ~ -- that way, the user would be able to provide his own status information hooks. But I am not entirely sure what the best approach is here. > 2) More generally, wouldn't it be nice to add Growl to the output > options? What do you think Allan? I am not really liking that -- Growl is an optional install, so not all will have it, meaning that TM shoukd probably hide the option, when Growl isn?t installed, and have commands fall back to tool tip output or similar. If that becomes the case, I would much rather see that handled entirely as a bash (or Ruby) function, which commands then make use of, as that is more extensible and (to me) appears less hardcoded. As for tool tips, I think the suggestions (from Brad) about a) ignoring mouse movement e.g. for the first 1-2 seconds, and/or b) require a little more mousing for it to hide, would be nice improvements. From throw-away-1 at macromates.com Thu Mar 2 13:14:04 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 14:14:04 +0100 Subject: [TxMt] tm and intel. In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <85A8B325-DC8D-4975-911A-DC2B59C229F0@starflam.com> <65E492D7-F7F0-4813-9A0B-FA2E3DE5C63E@mac.com> <39E1E1E6-FC6A-434F-B5EA-A6402210D467@cyanite.org> Message-ID: <63AE4727-8845-44D7-9EB7-ED216E8076BD@macromates.com> On 1/3/2006, at 17:55, Eric Buth wrote: > regardless, it seems to make sense to indicate more prominently > that there is an intel binary in there. will this program run > natively on my hardware is a serious question when considering > using a new piece of software. In Finder, you can select Get Info for an application to see if it is universal. And Mac is about ?[it] just works? -- regardless of whether or not TM is universal, it will ?just work? on your new i386 hardware :) My reason for not putting the banner on the page though is mostly aesthetic. From csilver_junk at mac.com Thu Mar 2 14:30:26 2006 From: csilver_junk at mac.com (csilver_junk at mac.com) Date: Thu, 2 Mar 2006 08:30:26 -0600 Subject: [TxMt] Persistent Includes? Message-ID: Hello, I've been a lurking member of this list for some time, but this is my first attempt at posting. I've been trying out TextMate in demo mode and plan to buy it because it's nearly perfect for the way I work, but I have a couple questions I'm hoping somebody could clear up for me. I'm not a programmer, so please forgive me if my questions seem somewhat elementary. I do, however, use the Terminal quite often for shell commands, and I understand PHP well enough to write code for my own purposes. I prefer coding my web pages by hand, and I'm fluent in XHTML and CSS and competent in XSLT. I'm a bit anal about clean coding, usability, and accessibility (both for the end user and for me when writing my pages). For these reasons among others, I've been disappointed by virtually all of the website generation applications and/or scripts I've tried. It seems they require lots of convoluted configuration that just gets in my way. Besides, I'd rather just do it all myself with flat text files, using scripting just to generate the headers, footers, navigation, etc. I'm not necessarily concerned with TextMate's ability to do the many super-complicated things it obviously can do, as I probably won't use most of it myself. However, I'm wondering if it has a feature similar to the Persistent Includes available in BBEdit. I have examined the manual and read about how to use snippets, templates, commands, and the like, and I understand how these could be used to make my life easier. The problem is that I haven't figured out if there's a way to re-parse an entire project or certain files within a project after I've made changes that will affect the output. For instance, if I've used a script to output links to all the files contained in the directory (as a navigation menu of sorts) but later add more files to that same directory, I'd like to be able to re- generate the entire site so that those new files show up in the menu. Likewise, if I've generated prev/next links to other files in the same directory, I'd like to have them updated without having to manually type the new hyperlinks into each and every file of the site. I know I could use PHP or server-side includes or something similar (and I have written a simple php function to do just that), but I'd really like to generate static web pages because having dynamic pages online really isn't necessary for what I'm doing (also, I can upload the same files both to .Mac and to my virtual host, for example). If nothing resembling Persistent Includes is available in TextMate, another viable option would be to auto-generate the output of an entire project but save it to a new directory on my system using the same hierarchy of the original project. That way, I can simply re- generate it whenever I need to. In fact, that would probably be a simpler solution than the Persistent Includes idea, but of course you all probably know much more about how to efficiently accomplish this than I do. Also, if anyone could point me in the direction of a good streamlined tutorial on how to use shell scripts in an environment such as TextMate, perhaps I can figure it out on my own. The TextMate manual is nice, but something more tutorial-like would help a lot. Sorry for the long post - it actually started out longer with more details about my background and what I do, but I figured people may get annoyed, so I cut it. If I need to further clarify exactly what I need to accomplish, please ask, but I suspect most of you are quite familiar with BBEdit and know about how Persistent Includes work and how they differ from regular Includes. Thanks, Crystal From mithoo at mac.com Thu Mar 2 14:53:56 2006 From: mithoo at mac.com (Indranil Mookherjee) Date: Thu, 2 Mar 2006 06:53:56 -0800 Subject: [TxMt] Help with sort command Message-ID: <3A524D3D-A7CB-4D2B-84B1-CA5394AC5AB2@mac.com> I am new to TextMate. I have a bunch of lines and I am trying to sort them. I select them and use the Actions popup and choose Sort from the menu choices under Text, the text to be sorted disappears. I tried to run the Sort command through the Filter through command and got the same result. Empty document. I am sure that my newbieness is showing through but can somebody please figure out what exactly is wrong? Indro From domenico.carbotta at fastwebnet.it Thu Mar 2 15:04:02 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Thu, 2 Mar 2006 16:04:02 +0100 Subject: [TxMt] Help with sort command In-Reply-To: <3A524D3D-A7CB-4D2B-84B1-CA5394AC5AB2@mac.com> References: <3A524D3D-A7CB-4D2B-84B1-CA5394AC5AB2@mac.com> Message-ID: <2F9450F8-15E6-47FA-9DF2-B3A42BE8011F@fastwebnet.it> > choose Sort from the menu choices under Text I assume you meant the "Sort lines" command from the Text bundle =) > I tried to run the Sort command through the Filter through command > and got the same result. Empty document. just to make sure sort didn't rot: open a terminal, then type 'which sort'. it should reply /usr/bin/sort (or even /sw/bin/sort if you have fink installed). now do 'sort', type in some random lines, then press ctrl+D on an empty line (that is, EOF). check for consistent output (it should print your random lines, er, sorted). if it doesn't work, something got messed up. ciao, D. From mithoo at mac.com Thu Mar 2 15:46:38 2006 From: mithoo at mac.com (Indranil Mookherjee) Date: Thu, 2 Mar 2006 07:46:38 -0800 Subject: [TxMt] Help with sort command In-Reply-To: <2F9450F8-15E6-47FA-9DF2-B3A42BE8011F@fastwebnet.it> References: <3A524D3D-A7CB-4D2B-84B1-CA5394AC5AB2@mac.com> <2F9450F8-15E6-47FA-9DF2-B3A42BE8011F@fastwebnet.it> Message-ID: <50767AC7-E87C-47DF-8E4C-B6D7C3B293FC@mac.com> On Mar 2, 2006, at 7:04 AM, Domenico Carbotta wrote: >> choose Sort from the menu choices under Text > > I assume you meant the "Sort lines" command from the Text bundle =) Yes. Sorry. >> I tried to run the Sort command through the Filter through command >> and got the same result. Empty document. > > just to make sure sort didn't rot: open a terminal, then type > 'which sort'. it should reply /usr/bin/sort (or even /sw/bin/sort > if you have fink installed). > now do 'sort', type in some random lines, then press ctrl+D on an > empty line (that is, EOF). check for consistent output (it should > print your random lines, er, sorted). > if it doesn't work, something got messed up. I got both of those results. The usr/bin/sort and then the random lines sorted fine. But in TextMate it still burps. I had installed a few bundles. I got rid of them. I started off a new copy of the program. No effect. Or rather same result. I dumped the preferences. Started the program again. Registered and found the same result. Thanks for the help. Indro > ciao, > > D. > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From lists at interdisco.net Thu Mar 2 16:14:01 2006 From: lists at interdisco.net (Oliver Hagmann) Date: Thu, 2 Mar 2006 17:14:01 +0100 Subject: [TxMt] Mercurial bundle: other shortcut than cmd-H Message-ID: Hello there I just noticed that the new Mercurial bundle uses cmd-H to activate its commands. I use this shortcut very often for hiding Textmate and other applications. It's a system wide shortcut for hiding applications. So I might not be the only one doing this. It's no big problem for me since I can always disable the bundle with the filter. All the same it might be a good idea to change it to anoter shortcut. Cheers. Oliver From cskiadas at uchicago.edu Thu Mar 2 16:20:57 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Thu, 2 Mar 2006 10:20:57 -0600 Subject: [TxMt] Mercurial bundle: other shortcut than cmd-H In-Reply-To: References: Message-ID: <3E63A2E6-E64B-4351-9274-4D41DAA5BF29@uchicago.edu> On Mar 2, 2006, at 10:14 AM, Oliver Hagmann wrote: > Hello there > > I just noticed that the new Mercurial bundle uses cmd-H to activate > its commands. I use this shortcut very often for hiding Textmate > and other applications. It's a system wide shortcut for hiding > applications. So I might not be the only one doing this. It's no > big problem for me since I can always disable the bundle with the > filter. > All the same it might be a good idea to change it to anoter shortcut. > In general, there are some guidelines for choosing key bindings: http://macromates.com/textmate/manual/key_bindings#key_bindings 16.4 > Cheers. Oliver Haris From domenico.carbotta at fastwebnet.it Thu Mar 2 18:31:31 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Thu, 2 Mar 2006 19:31:31 +0100 Subject: [TxMt] Help with sort command In-Reply-To: <50767AC7-E87C-47DF-8E4C-B6D7C3B293FC@mac.com> References: <3A524D3D-A7CB-4D2B-84B1-CA5394AC5AB2@mac.com> <2F9450F8-15E6-47FA-9DF2-B3A42BE8011F@fastwebnet.it> <50767AC7-E87C-47DF-8E4C-B6D7C3B293FC@mac.com> Message-ID: you might want to try asking for help on the IRC channel: server irc.freenode.org, channel #textmate From fredb7 at starflam.com Thu Mar 2 19:23:42 2006 From: fredb7 at starflam.com (Fred B.) Date: Thu, 2 Mar 2006 20:23:42 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> On 02 Mar 2006, at 14:11, Allan Odgaard wrote: > On 1/3/2006, at 17:03, Fred B. wrote: > >> 1) How can I catch the output of svn commands? > > Currently not really possible w/o editing them. But we could work > in e.g. a bash (or Ruby) function into the command init which we > use for ?status information?, and that functcion could optionally > be sourced from a location in ~ -- that way, the user would be able > to provide his own status information hooks. I was asking how to edit the command to catch the output, in fact. ;) I tried but never found how to do it. > > But I am not entirely sure what the best approach is here. > >> 2) More generally, wouldn't it be nice to add Growl to the output >> options? What do you think Allan? > > I am not really liking that -- Growl is an optional install, so not > all will have it, meaning that TM shoukd probably hide the option, > when Growl isn?t installed, and have commands fall back to tool tip > output or similar. > > If that becomes the case, I would much rather see that handled > entirely as a bash (or Ruby) function, which commands then make use > of, as that is more extensible and (to me) appears less hardcoded. That won't make much difference to me. I'd be happy with any way to use Growl... Another option could be to install Growl with TM (Adium X does this I think), but I understand that you don't like that. > As for tool tips, I think the suggestions (from Brad) about a) > ignoring mouse movement e.g. for the first 1-2 seconds, and/or b) > require a little more mousing for it to hide, would be nice > improvements. That would help. But I'd still prefer Growl. ;) It's much more beautiful and configurable + I it's nice to have a central notification system. Thanks for you answer. -- Fred From domenico.carbotta at fastwebnet.it Thu Mar 2 19:39:16 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Thu, 2 Mar 2006 20:39:16 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> Message-ID: <70D65311-9DD8-45A6-86CE-A403744386D9@fastwebnet.it> imo hardcoded support for Growl wouldn't be a problem... it's not like there's another notification system out there =) (until apple doesn't include something similar in leopard.) From duane.johnson at gmail.com Thu Mar 2 19:42:50 2006 From: duane.johnson at gmail.com (Duane Johnson) Date: Thu, 2 Mar 2006 12:42:50 -0700 Subject: [TxMt] Growl instead of tool tips In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: On Mar 2, 2006, at 6:11 AM, Allan Odgaard wrote: > On 1/3/2006, at 17:03, Fred B. wrote: > >> 1) How can I catch the output of svn commands? > > Currently not really possible w/o editing them. But we could work > in e.g. a bash (or Ruby) function into the command init which we > use for ?status information?, and that functcion could optionally > be sourced from a location in ~ -- that way, the user would be able > to provide his own status information hooks. > > But I am not entirely sure what the best approach is here. > >> 2) More generally, wouldn't it be nice to add Growl to the output >> options? What do you think Allan? > > I am not really liking that -- Growl is an optional install, so not > all will have it, meaning that TM shoukd probably hide the option, > when Growl isn?t installed, and have commands fall back to tool tip > output or similar. > > If that becomes the case, I would much rather see that handled > entirely as a bash (or Ruby) function, which commands then make use > of, as that is more extensible and (to me) appears less hardcoded. > > As for tool tips, I think the suggestions (from Brad) about a) > ignoring mouse movement e.g. for the first 1-2 seconds, and/or b) > require a little more mousing for it to hide, would be nice > improvements. > > How about supporting the new CocoaDialog 2.0 "bubble" dialog[1]? If it could be tied in to work with Growl, that would be a nice way to make a standard status information box with optional growl support. Duane Johnson (canadaduane) http://blog.inquirylabs.com/ [1] See http://cocoadialog.sourceforge.net/ documentation.html#bubble_control for a screenshot and http:// cocoadialog.sourceforge.net/examples.html#bubble for example code. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at dihedral.ca Thu Mar 2 20:39:09 2006 From: andrew at dihedral.ca (Andrew Vit) Date: Thu, 02 Mar 2006 12:39:09 -0800 Subject: [TxMt] UI suggestion for tabbed file names In-Reply-To: <05CE1CD2-5E89-4FED-9AAB-C8D4A3E8F167@macromates.com> References: <7b8791900602220114w3068a79fpded46148cc7843b8@mail.gmail.com> <096FA8E1-7392-41A1-9A56-943884A1DB02@macromates.com> <40D7E36B-71DF-4D7A-89A6-B01990451C28@3dlabs.com> <43FC6803.4080408@creutzig.de> <57BBB96E-B437-4D2D-8C2C-2C2D73841DAC@3dlabs.com> <7F6ED9D3-CFD6-47FE-9E96-C3F0E0223805@possibilityengine.com> <05CE1CD2-5E89-4FED-9AAB-C8D4A3E8F167@macromates.com> Message-ID: On Feb 24, 2006, at 3:25, Allan Odgaard wrote: > > Conditional disclosure of the numbers sounds like a good idea > (better than having them permanently there) -- one problem is that > you use command for a lot more than switching tabs (through > numbers), so these numbers would show on a lot of keyboard actions, > and are likely to be a bother for most users (because part of the > interface blink/flashes when using the command modifier key). A slight (half-second?) delay before showing the numbers might work nicely. This way, quick key commands wouldn't cause a flash, and slower multi-modifier (Cmd-Opt-Ctrl-Shift) "chords" shouldn't make it a distraction either since we're probably just looking at our hands by that point anyway... For those who don't like this behaviour, the preferences window still has room for one more toggle! --Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From throw-away-1 at macromates.com Thu Mar 2 21:55:18 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 22:55:18 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> Message-ID: On 2/3/2006, at 20:23, Fred B. wrote: >> Currently not really possible w/o editing them [...] > I was asking how to edit the command to catch the output, in fact. ;) > I tried but never found how to do it. Ah? well, a simple way is to put { on the first line and then e.g. ?}| growlShellNotify? on the last line. This will cause all stdout output from the stuff in the block, to be piped to growlShellNotify, e.g.: { echo foo echo bar }|growlShellNotify To also have stderr redirected, use: ?} 2>&1|growlShellNotify?. If we want to pipe it to growl, but still want it to show as a tool tip, we could (most likely) do: ?} 2>&1|tee >(growlShellNotify)?. I say most likeky, because some commands deal with stdin in a way that is not compatible with process substitution. From throw-away-1 at macromates.com Thu Mar 2 22:09:25 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 2 Mar 2006 23:09:25 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: On 2/3/2006, at 20:42, Duane Johnson wrote: > How about supporting the new CocoaDialog 2.0 "bubble" dialog[1]? > If it could be tied in to work with Growl, that would be a nice way > to make a standard status information box with optional growl support. You just pwn3d domenico! :p Since we already bundle CD (although a forked v1.x, but I?ll update it shortly), that could be a nice touch -- although CD does have an issue with multi-monitor setups, since it always use the main screen. So this should preferably be fixed first. But I am a little unsure for what people want Growl notifications, instead of TextMate. I understand that TM?s tool tips currently have lower usability, but Growl to me seems like on screen displays for notifying about background tasks -- where the tool tip output option of TM is often used for instant feedback on the command executed, like Validate Syntax, Show Scope, etc. From domenico.carbotta at fastwebnet.it Thu Mar 2 22:59:33 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Thu, 2 Mar 2006 23:59:33 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: > You just pwn3d domenico! :p duane is from canada. canadians are allowed to pwn me since they live in my dream nation =) take the states, add a welfare system, subtract dubya... w00t!!! > But I am a little unsure for what people want Growl notifications, > instead of TextMate. I understand that TM?s tool tips currently > have lower usability, but Growl to me seems like on screen displays > for notifying about background tasks I think they'd mainly be useful for tasks like version control and builds. However I'm +0 on these, since a smarter tooltip system could come handy for other tasks -- and I'd prefer al to work on more important stuff, like indentation-based folding and chunk undo [1]. D. [1] sorry al, I couldn't resist. From fredb7 at starflam.com Thu Mar 2 23:58:20 2006 From: fredb7 at starflam.com (Fred B.) Date: Fri, 3 Mar 2006 00:58:20 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> Message-ID: <7AF3D501-22B1-4DEA-8400-2A5F2F8730AD@starflam.com> On 02 Mar 2006, at 22:55, Allan Odgaard wrote: > Ah? well, a simple way is to put { on the first line and then e.g. > ?}|growlShellNotify? on the last line. This will cause all stdout > output from the stuff in the block, to be piped to > growlShellNotify, e.g.: > > { > echo foo > echo bar > }|growlShellNotify That was the first thing I tried but the result was empty, guess I needed stderr... > To also have stderr redirected, use: ?} 2>&1|growlShellNotify?. I tried this before but I included the all SVN "add to repository" command. This is now working by keeping "require_cmd..." out of the braces. Thanks Allan. On 2/3/2006, at 20:42, Duane Johnson wrote: >> How about supporting the new CocoaDialog 2.0 "bubble" dialog[1]? >> If it could be tied in to work with Growl, that would be a nice >> way to make a standard status information box with optional growl >> support. > You just pwn3d domenico! :p I don't understand how CD could be "tied in to work with Growl", sorry. > Since we already bundle CD (although a forked v1.x, but I?ll update > it shortly), that could be a nice touch -- although CD does have an > issue with multi-monitor setups, since it always use the main > screen. So this should preferably be fixed first. No to be picky but IMHO: Tool tips look like OS 7, CD bubbles like OS 9, Growl like OS X. ;) > But I am a little unsure for what people want Growl notifications, > instead of TextMate. I understand that TM?s tool tips currently > have lower usability, but Growl to me seems like on screen displays > for notifying about background tasks -- where the tool tip output > option of TM is often used for instant feedback on the command > executed, like Validate Syntax, Show Scope, etc. I don't really understand what difference you make between Growl's and TextMate's notifications from a user point of view. I don't know if you use Growl but it's pretty versatile. You can choose the place where it pops up, the type of notif. (even speech or mail - not that useful for TM), the icon, how long it stays, etc. on per command basis (even over a network). So it can be used for notif. of background tasks as well for "instant feedback on the command executed". The main difference with tool tips, beside the look and configurability, is that it pops at a fixed place., which is not a bad thing IMHO. (I use a bezel centered on screen). Ok, I'll stop my Growl evangelism. ;) I just thought it was a great notif. system for free, just take it into consideration and do the best as always. Thanks for your time. -- Fred http://geekthang.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cj at syntheticplayground.com Fri Mar 3 00:48:49 2006 From: cj at syntheticplayground.com (Corey Jewett) Date: Thu, 2 Mar 2006 16:48:49 -0800 Subject: [TxMt] Growl instead of tool tips In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> Message-ID: <264B47F3-E4B5-40F8-AD8C-AEAF638AA105@syntheticplayground.com> Just joined the mailing list so sorry if I missed something important. Adding growl notification would be something that I would use. I use Growl notification from Cyberduck for near real-time notification. e.g. "Edit w/TextMate" from Cyberduck. Hit save in TM and switch to Safari. Hit reload when the upload complete message comes from CyberDuck. Corey On Mar 2, 2006, at 2:09 PM, Allan Odgaard wrote: > On 2/3/2006, at 20:42, Duane Johnson wrote: > >> How about supporting the new CocoaDialog 2.0 "bubble" dialog[1]? >> If it could be tied in to work with Growl, that would be a nice >> way to make a standard status information box with optional growl >> support. > > You just pwn3d domenico! :p > > Since we already bundle CD (although a forked v1.x, but I?ll update > it shortly), that could be a nice touch -- although CD does have an > issue with multi-monitor setups, since it always use the main > screen. So this should preferably be fixed first. > > But I am a little unsure for what people want Growl notifications, > instead of TextMate. I understand that TM?s tool tips currently > have lower usability, but Growl to me seems like on screen displays > for notifying about background tasks -- where the tool tip output > option of TM is often used for instant feedback on the command > executed, like Validate Syntax, Show Scope, etc. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From duane.johnson at gmail.com Fri Mar 3 01:08:29 2006 From: duane.johnson at gmail.com (Duane Johnson) Date: Thu, 2 Mar 2006 18:08:29 -0700 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <7AF3D501-22B1-4DEA-8400-2A5F2F8730AD@starflam.com> References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> <7AF3D501-22B1-4DEA-8400-2A5F2F8730AD@starflam.com> Message-ID: On Mar 2, 2006, at 4:58 PM, Fred B. wrote: > On 2/3/2006, at 20:42, Duane Johnson wrote: > >>> How about supporting the new CocoaDialog 2.0 "bubble" dialog[1]? >>> If it could be tied in to work with Growl, that would be a nice >>> way to make a standard status information box with optional growl >>> support. >> You just pwn3d domenico! :p > > I don't understand how CD could be "tied in to work with Growl", > sorry. > CocoaDialog already has a notification system, is already packaged with TextMate, and is already in use by some bundles as a notification system. So it's a win/win for everyone if CocoaDialog were to support growl as an optional notification mechanism. Basically TextMate bundles could send their message to CocoaDialog and not care what happens after that. Perhaps once the 'bubble' command is supported by the built-in CocoaDialog package, Allan could add 'Notification' as an output method (similar to how tooltip is now) to "pipe" the output of the command to the CocoaDialog "bubble --text" option. The only remaining piece to the puzzle then would be how we configure CocoaDialog from within TextMate (e.g. perhaps bubble gradient colors could be configurable, and of course growl support would be a CocoaDialog option). On second thought... would forwarding to Growl be automatic if it's detected? Does Growl usually get detected by programs automatically? And do other programs just assume the user wants output sent to Growl if Growl is present on the system? >> Since we already bundle CD (although a forked v1.x, but I?ll >> update it shortly), that could be a nice touch -- although CD does >> have an issue with multi-monitor setups, since it always use the >> main screen. So this should preferably be fixed first. > > No to be picky but IMHO: Tool tips look like OS 7, CD bubbles like > OS 9, Growl like OS X. ;) > I don't think it's picky to have an opinion. And I agree, anyway ;) Duane Johnson (canadaduane) http://blog.inquirylabs.com/ From fredb7 at starflam.com Fri Mar 3 02:34:23 2006 From: fredb7 at starflam.com (Fred B.) Date: Fri, 3 Mar 2006 03:34:23 +0100 Subject: [TxMt] Growl instead of tool tips In-Reply-To: References: <54EF66E1-B41B-4814-B084-DE55C21FBCAF@starflam.com> <56433959-90BA-43E7-B71E-FB1FC8654580@starflam.com> <7AF3D501-22B1-4DEA-8400-2A5F2F8730AD@starflam.com> Message-ID: On 03 Mar 2006, at 02:08, Duane Johnson wrote: > > On Mar 2, 2006, at 4:58 PM, Fred B. wrote: >> >> I don't understand how CD could be "tied in to work with Growl", >> sorry. >> > > CocoaDialog already has a notification system, is already packaged > with TextMate, and is already in use by some bundles as a > notification system. So it's a win/win for everyone if CocoaDialog > were to support growl as an optional notification mechanism. > Basically TextMate bundles could send their message to CocoaDialog > and not care what happens after that. Ok, I didn't understand you meant CD would have to be modified to support growl. Tired, sorry. > > Perhaps once the 'bubble' command is supported by the built-in > CocoaDialog package, Allan could add 'Notification' as an output > method (similar to how tooltip is now) to "pipe" the output of the > command to the CocoaDialog "bubble --text" option. The only > remaining piece to the puzzle then would be how we configure > CocoaDialog from within TextMate (e.g. perhaps bubble gradient > colors could be configurable, and of course growl support would be > a CocoaDialog option). Could be nice. The advantage of Growl is that you can configure it when you invoke it, then in the central PrefPane. So, if Allan added a simple "pipe to" output option, it would be good enough for me. I can (and have for some of them) replaced Tool Tips by Growl, the only downside is when the bundles are updated... > > On second thought... would forwarding to Growl be automatic if it's > detected? Optional is often good, but in this case CD bubbles can easily mimicked in Growl, so... > Does Growl usually get detected by programs automatically? And do > other programs just assume the user wants output sent to Growl if > Growl is present on the system? Detected: yes: On the integration: It depends on applications. Some are more tied with Growl, others just provide it as on optional notif. system. IIRC, AdiumX installs Growl, at least am sure it updated Growl on my system once. Anyway, even when an applications is registered in Growl, you can disable or configure it, or its different notif. individually, in the Growl's PrefPane. >> No to be picky but IMHO: Tool tips look like OS 7, CD bubbles like >> OS 9, Growl like OS X. ;) > > I don't think it's picky to have an opinion. And I agree, anyway ;) Cool. ;) -- FredB http://geekthang.com From textmate at minimaldesign.net Fri Mar 3 00:24:15 2006 From: textmate at minimaldesign.net (minimal.design) Date: Thu, 2 Mar 2006 19:24:15 -0500 Subject: [TxMt] find in project text field Message-ID: <20056640-1DB2-4975-9E81-2224CC0E3FE7@minimaldesign.net> In the regular find window, there's that arrow button you can click to get a multi line text field where to enter your search query, but I don't see it when I do a search in whole project, which is kind of a pain when looking for lengthy pieces of code... Did I miss something? Thanks! From ni-di at web.de Fri Mar 3 09:59:30 2006 From: ni-di at web.de (Niko Dittmann) Date: Fri, 3 Mar 2006 10:59:30 +0100 Subject: [TxMt] Persistent Includes? In-Reply-To: References: Message-ID: <853AABC8-1028-4DC3-851A-9429F80231D0@web.de> hi. Am 02.03.2006 um 15:30 schrieb csilver_junk at mac.com: > I'm not necessarily concerned with TextMate's ability to do the > many super-complicated things it obviously can do, as I probably > won't use most of it myself. However, I'm wondering if it has a > feature similar to the Persistent Includes available in BBEdit. I > have examined the manual and read about how to use snippets, > templates, commands, and the like, and I understand how these could > be used to make my life easier. The problem is that I haven't > figured out if there's a way to re-parse an entire project or > certain files within a project after I've made changes that will > affect the output. > > For instance, if I've used a script to output links to all the > files contained in the directory (as a navigation menu of sorts) > but later add more files to that same directory, I'd like to be > able to re-generate the entire site so that those new files show up > in the menu. Likewise, if I've generated prev/next links to other > files in the same directory, I'd like to have them updated without > having to manually type the new hyperlinks into each and every file > of the site. I know I could use PHP or server-side includes or > something similar (and I have written a simple php function to do > just that), i think you could call this php-function from within a TM-command to generate the links and (at least) pipe the output into pbcopy (and the replace the static html by hand) or substitute the current selection. regards, niko. -- ____________________________ niko dittmann ____________________________ From ollieman at gmail.com Fri Mar 3 10:42:18 2006 From: ollieman at gmail.com (Oliver Taylor) Date: Fri, 3 Mar 2006 02:42:18 -0800 Subject: [TxMt] Screenwriting bundle 2.0 Message-ID: <6048FB69-6C64-4D4C-8D0D-A0212B84A27D@gmail.com> I've released version 2 of my screenwriting bundle. release: http://ollieman.net/words/2006/03/ screenwriting_with_textmate_20.php bundle: http://ollieman.net/code/screenwriting/textmate/ --- I've tried to document it into the ground, which is the reason there are so many instructional videos. (I hope you finally understand what I'm doing, Haris) From the release: > It may seem oblique that the reason I learned the first bit of CSS > and XHTML I did was because late one night I was pissed off at > Final Draft for crashing for the 3rd time in a row. I was convinced > that there had to be a better way, that there had to be a way to > write screenplays that didn?t hurt. I don?t remember why this > propelled me to CSS, but it did. > > Well, I can now firmly say that I have found a way of writing > screenplays that doesn?t hurt. Never-mind that I had to build it > myself, never-mind that the process took me over a year. I?ve found > it. I'd like to take a second and thank all of you for helping me with this. It's an amazing thing that I've managed to build for myself (at least) an end-to-end solution for writing screenplays that I actually enjoy using. And no small part of that is due to the users of this list, you have made this a learning experience that has resulted in a useful tool. It's not just that TextMate is my new favorite app. It's that I feel as though Allan and the community around TextMate are genuinely working together to advance the quality of our collective writing environments; it's not just features and buttons, it's progress. And for that, I cannot thank you enough. -- oliver ollieman.net From entropydave at mac.com Fri Mar 3 11:06:39 2006 From: entropydave at mac.com (David Levy) Date: Fri, 3 Mar 2006 11:06:39 +0000 Subject: [TxMt] Growl instead of tool tips In-Reply-To: <20060303100203.5F6CB61CF@comox.textdrive.com> References: <20060303100203.5F6CB61CF@comox.textdrive.com> Message-ID: <20060303110639.28831@smtp.mac.com> >I don't know if you use Growl but it's pretty versatile. You can >choose the place where it pops up, the type of notif. (even speech or >mail - not that useful for TM), the icon, how long it stays, etc. on >per command basis (even over a network). So it can be used for notif. >of background tasks as well for "instant feedback on the command >executed". Allan I think you use this discussion list as a user feedback collection point. In which case, FWIW, I would be very glad for Growl support too for the reasons stated above. Growl is highly configurable, usable in a persistent, immediate and coalesced modes and very OS X. I find tooltips fiddly and non-persistent. I use most text at 14 points and I find tooltips bothersome to read. cheers David. From roberto+textmate at keltia.freenix.fr Fri Mar 3 14:38:11 2006 From: roberto+textmate at keltia.freenix.fr (Ollivier Robert) Date: Fri, 3 Mar 2006 15:38:11 +0100 Subject: [TxMt] Mercurial bundle: other shortcut than cmd-H In-Reply-To: References: Message-ID: <20060303143811.GA88386@tara.freenix.org> According to Oliver Hagmann: > All the same it might be a good idea to change it to anoter shortcut. Good point, I choose H because of Hg (just like The Darcs bundle uses cmd-D) but it can be changed. I'll think about it. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005 From gavin at refinery.com Fri Mar 3 16:18:39 2006 From: gavin at refinery.com (Gavin Kistner) Date: Fri, 3 Mar 2006 09:18:39 -0700 Subject: [TxMt] Specifying a 'funky' file path Message-ID: <1C49A74A-FCF5-46BF-88D6-1699DFA9B455@refinery.com> I am (almost done) writing an HTML output script for my Lua bundle which (among other things) provides TextMate links for syntax error codes. I put one of my files in a path with a space in the name, and it took me a fair amount of experimenting to figure out how TextMate and Lua independently wanted to see the URL. The raw path as supplied in the argument list is: /Users/gavinkistner/Desktop/pork butt/bling/tmp.lua To pass that to Lua, I needed to escape the space char: file_path = Pathname.new( ARGV[0].gsub( %r{([^\w/.])}, '\\\\\1' ) ) #=> /Users/gavinkistner/Desktop/pork\ butt/bling/tmp.lua To create the parameter for the TextMate URL, I needed to NOT have that escaping. If I perform HTML escaping (for valid HTML) the space may not be represented as a '+' char, but must be a %20. WORK: DON'T WORK: The Ruby code to create the valid URL param: htmlpath = CGI.escape( "file://" + File.expand_path( path+file, file_dir ).gsub( /\\(.)/, '\\1' ) ).gsub('+','%20') As a more pathological case, I renamed the folder in Finder to "pork \ % / butt" The "/" in the name is apparently a ":" on the file system: gavinkistner$ cd pork\ \\\ %\ \:\ butt/ gavinkistner$ pwd /Users/gavinkistner/Desktop/pork \ % : butt My code produces: and it works. Yay! :) From throw-away-1 at macromates.com Fri Mar 3 16:20:51 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 3 Mar 2006 17:20:51 +0100 Subject: [TxMt] find in project text field In-Reply-To: <20056640-1DB2-4975-9E81-2224CC0E3FE7@minimaldesign.net> References: <20056640-1DB2-4975-9E81-2224CC0E3FE7@minimaldesign.net> Message-ID: <771604BC-B78D-4555-8B90-DC30E9ECE8AC@macromates.com> On 3/3/2006, at 1:24, minimal.design wrote: > In the regular find window, there's that arrow button you can click > to get a multi line text field where to enter your search query, > but I don't see it when I do a search in whole project, which is > kind of a pain when looking for lengthy pieces of code... Do you know command-E? It places the selection on the find clipboard. 99% of the time, I want to find something which is already in my source, and never actually type it in the find dialog text fields. > Did I miss something? No, the grow and shrink arrow in the normal find dialog was a recent addition that I did to test the concept. Likely it will spread to the find in project (or they will be merged somehow). From throw-away-1 at macromates.com Fri Mar 3 16:29:51 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 3 Mar 2006 17:29:51 +0100 Subject: [TxMt] Persistent Includes? In-Reply-To: References: Message-ID: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> On 2/3/2006, at 15:30, csilver_junk at mac.com wrote: > [...] If nothing resembling Persistent Includes is available in > TextMate, another viable option would be to auto-generate the > output of an entire project but save it to a new directory on my > system using the same hierarchy of the original project [...] I have no real idea about what the Persistent Includes can do, but it would be easy to create a TM command which e.g. pipes each *.php file in your project through PHP and wrote the result to an ?html? sub- directory (as an HTML file): cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}" mkdir -p html for f in *.php; do php <"$f" >"html/${f%.*}.html" done This would allow you to use all the power of PHP and create static files from that. You could add a master.inc which got sourced when generating each of the files, e.g. like this: cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}" mkdir -p html for f in *.php; do cat master.inc "$f"|php >"html/${f%.*}.html" done That way you could place shared variables and such in your master.inc. FYI the TextMate manual is generated in a slightly similar fashion, see http://lists.macromates.com/pipermail/textmate/2006-February/ 008160.html for more. From throw-away-1 at macromates.com Fri Mar 3 16:59:16 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 3 Mar 2006 17:59:16 +0100 Subject: [TxMt] Specifying a 'funky' file path In-Reply-To: <1C49A74A-FCF5-46BF-88D6-1699DFA9B455@refinery.com> References: <1C49A74A-FCF5-46BF-88D6-1699DFA9B455@refinery.com> Message-ID: <494FD5D1-38D3-4F97-89C2-32FDA6B760DC@macromates.com> On 3/3/2006, at 17:18, Gavin Kistner wrote: > [...] I put one of my files in a path with a space in the name, and > it took me a fair amount of experimenting to figure out how > TextMate and Lua independently wanted to see the URL. I have this function in the Show TODO List command: 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 I will move it to the textmate ruby lib in Support/lib so that Ruby commands can just use this one. > To pass that to Lua, I needed to escape the space char: > file_path = Pathname.new( ARGV[0].gsub( %r{([^\w/.])}, '\\\\\1' ) ) > #=> /Users/gavinkistner/Desktop/pork\ butt/bling/tmp.lua I assume that ?pass that to Lua? means through the shell? There are also a few shell_escape functions in various commands, where instead I should harmonize and (again) move to the textmate ruby lib :) From dave.baldwin at 3dlabs.com Fri Mar 3 17:23:31 2006 From: dave.baldwin at 3dlabs.com (Dave Baldwin) Date: Fri, 3 Mar 2006 17:23:31 +0000 Subject: [TxMt] Spell checking when you type in Ruby In-Reply-To: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> References: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> Message-ID: <9EEABAA9-4583-4648-A7B6-6E70917CD833@3dlabs.com> Spell checking as you type seems to work for strings but not comments as the manual seems to indicate. Also does the same think in C++. Is this a genuine bug or have I screwed my setup? I am using v 1.5 Dave. From throw-away-1 at macromates.com Fri Mar 3 17:37:06 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 3 Mar 2006 18:37:06 +0100 Subject: [TxMt] Spell checking when you type in Ruby In-Reply-To: <9EEABAA9-4583-4648-A7B6-6E70917CD833@3dlabs.com> References: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> <9EEABAA9-4583-4648-A7B6-6E70917CD833@3dlabs.com> Message-ID: <721C5FA5-EED1-455A-B4BD-0F7CA8B671F4@macromates.com> On 3/3/2006, at 18:23, Dave Baldwin wrote: > Spell checking as you type seems to work for strings but not > comments as the manual seems to indicate. Also does the same think > in C++. Is this a genuine bug or have I screwed my setup? The manual is wrong. We/I tried to have spelling enabled in comments, but since a lot of comments are actually commented out code, it got irritating. From trevor at vocaro.com Fri Mar 3 17:56:45 2006 From: trevor at vocaro.com (Trevor Harmon) Date: Fri, 3 Mar 2006 09:56:45 -0800 Subject: [TxMt] find in project text field In-Reply-To: <771604BC-B78D-4555-8B90-DC30E9ECE8AC@macromates.com> References: <20056640-1DB2-4975-9E81-2224CC0E3FE7@minimaldesign.net> <771604BC-B78D-4555-8B90-DC30E9ECE8AC@macromates.com> Message-ID: <6FDF431B-B526-4BAC-87A4-1F4F3714C89A@vocaro.com> On Mar 3, 2006, at 8:20 AM, Allan Odgaard wrote: > Do you know command-E? Interesting. Is there any functional difference between Command-E + Command-F and Command-C + Command-F + Command-V? The latter seems so simple that I was surprised to see a built-in command that replicates it only to save one keystroke... Trevor -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2363 bytes Desc: not available URL: From throw-away-1 at macromates.com Fri Mar 3 18:03:40 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 3 Mar 2006 19:03:40 +0100 Subject: [TxMt] find in project text field In-Reply-To: <6FDF431B-B526-4BAC-87A4-1F4F3714C89A@vocaro.com> References: <20056640-1DB2-4975-9E81-2224CC0E3FE7@minimaldesign.net> <771604BC-B78D-4555-8B90-DC30E9ECE8AC@macromates.com> <6FDF431B-B526-4BAC-87A4-1F4F3714C89A@vocaro.com> Message-ID: On 3/3/2006, at 18:56, Trevor Harmon wrote: >> Do you know command-E? > Interesting. Is there any functional difference between Command-E + > Command-F and Command-C + Command-F + Command-V? The latter seems > so simple that I was surprised to see a built-in command that > replicates it only to save one keystroke... Often you would do: cmd-C, cmd-F, cmd-V, return. Instead you can do cmd-E, cmd-G. So you save 2 key strokes, you do not lose the contents of your clipboard _and_ you do not need to use cmd-G in the same application. For example if Console, Terminal, Mail, Safari or similar have something you want to search for in your sources, press cmd-E in that application, and cmd-G in TM vice versa. It also works nicely with Quicksilver?s queries, in that the default text there is what?s on the shared find clipboard. But in the simple case, it is functionally equivalent to pasting the selection in the find dialog. From dave.baldwin at 3dlabs.com Fri Mar 3 18:22:44 2006 From: dave.baldwin at 3dlabs.com (Dave Baldwin) Date: Fri, 3 Mar 2006 18:22:44 +0000 Subject: [TxMt] Spell checking when you type in Ruby In-Reply-To: <721C5FA5-EED1-455A-B4BD-0F7CA8B671F4@macromates.com> References: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> <9EEABAA9-4583-4648-A7B6-6E70917CD833@3dlabs.com> <721C5FA5-EED1-455A-B4BD-0F7CA8B671F4@macromates.com> Message-ID: <73F3B13C-9D78-4487-B739-DCEF4C4AE27D@3dlabs.com> On 3 Mar 2006, at 17:37, Allan Odgaard wrote: > On 3/3/2006, at 18:23, Dave Baldwin wrote: > >> Spell checking as you type seems to work for strings but not >> comments as the manual seems to indicate. Also does the same >> think in C++. Is this a genuine bug or have I screwed my setup? > > The manual is wrong. We/I tried to have spelling enabled in > comments, but since a lot of comments are actually commented out > code, it got irritating. > > That's a shame - it would be an acceptable irritation to me. If you care you could always use =begin =end in Ruby or ## to comment out code that doesn't need to be spell checked. As an aside this would be a good convention when command / is used to comment/uncomment code to avoid removing genuine comments when the code is later uncommented. Just an observation :-) In Ruby you can but code in strings so doesn't this irritate you? > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From cj at syntheticplayground.com Fri Mar 3 18:39:50 2006 From: cj at syntheticplayground.com (Corey Jewett) Date: Fri, 3 Mar 2006 10:39:50 -0800 Subject: [TxMt] Screenwriting bundle 2.0 In-Reply-To: <6048FB69-6C64-4D4C-8D0D-A0212B84A27D@gmail.com> References: <6048FB69-6C64-4D4C-8D0D-A0212B84A27D@gmail.com> Message-ID: <3BAF9C6E-92F6-4280-9197-6F6594864ABC@syntheticplayground.com> Very cool, wish I'd had this years ago in school. Corey On Mar 3, 2006, at 2:42 AM, Oliver Taylor wrote: > I've released version 2 of my screenwriting bundle. > > release: http://ollieman.net/words/2006/03/ > screenwriting_with_textmate_20.php > bundle: http://ollieman.net/code/screenwriting/textmate/ > > --- > > I've tried to document it into the ground, which is the reason > there are so many instructional videos. (I hope you finally > understand what I'm doing, Haris) > > From the release: > >> It may seem oblique that the reason I learned the first bit of CSS >> and XHTML I did was because late one night I was pissed off at >> Final Draft for crashing for the 3rd time in a row. I was >> convinced that there had to be a better way, that there had to be >> a way to write screenplays that didn?t hurt. I don?t remember why >> this propelled me to CSS, but it did. >> >> Well, I can now firmly say that I have found a way of writing >> screenplays that doesn?t hurt. Never-mind that I had to build it >> myself, never-mind that the process took me over a year. I?ve >> found it. > > I'd like to take a second and thank all of you for helping me with > this. It's an amazing thing that I've managed to build for myself > (at least) an end-to-end solution for writing screenplays that I > actually enjoy using. And no small part of that is due to the users > of this list, you have made this a learning experience that has > resulted in a useful tool. > > It's not just that TextMate is my new favorite app. It's that I > feel as though Allan and the community around TextMate are > genuinely working together to advance the quality of our collective > writing environments; it's not just features and buttons, it's > progress. And for that, I cannot thank you enough. > > -- oliver > ollieman.net > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From gerti-textmate at bitart.com Fri Mar 3 18:41:02 2006 From: gerti-textmate at bitart.com (Gerd Knops) Date: Fri, 3 Mar 2006 12:41:02 -0600 Subject: [TxMt] find in project text field In-Reply-To: References: <20056640-1DB2-4975-9E81-2224CC0E3FE7@minimaldesign.net> <771604BC-B78D-4555-8B90-DC30E9ECE8AC@macromates.com> <6FDF431B-B526-4BAC-87A4-1F4F3714C89A@vocaro.com> Message-ID: <0AA98A59-C52F-4E1A-9171-E8E36DFFB784@bitart.com> On Fri, Mar 3, at 12:03 PM, Allan Odgaard wrote: > On 3/3/2006, at 18:56, Trevor Harmon wrote: > >>> Do you know command-E? >> Interesting. Is there any functional difference between Command-E >> + Command-F and Command-C + Command-F + Command-V? The latter >> seems so simple that I was surprised to see a built-in command >> that replicates it only to save one keystroke... > > Often you would do: cmd-C, cmd-F, cmd-V, return. Instead you can do > cmd-E, cmd-G. So you save 2 key strokes, you do not lose the > contents of your clipboard _and_ you do not need to use cmd-G in > the same application. Not to mention that this way the find panel will not come up, which keeps clutter down. From throw-away-1 at macromates.com Fri Mar 3 18:43:14 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 3 Mar 2006 19:43:14 +0100 Subject: [TxMt] Spell checking when you type in Ruby In-Reply-To: <73F3B13C-9D78-4487-B739-DCEF4C4AE27D@3dlabs.com> References: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> <9EEABAA9-4583-4648-A7B6-6E70917CD833@3dlabs.com> <721C5FA5-EED1-455A-B4BD-0F7CA8B671F4@macromates.com> <73F3B13C-9D78-4487-B739-DCEF4C4AE27D@3dlabs.com> Message-ID: <94C0C5C6-ACC2-4C7F-90AF-EDF2EB18E6E9@macromates.com> On 3/3/2006, at 19:22, Dave Baldwin wrote: > Just an observation :-) In Ruby you can but code in strings so > doesn't this irritate you? The system is granular enough to have it disabled again for code in strings. As for using =begin/end for code blocks, if that?s what you do, you can enable check spelling as you type in your version of TextMate for comment.line.*. But it?s not easy to find a ?works for all people and languages? setting that doesn?t have false positives wrt wrongly spelled text. So the better default is just to not have it do check spelling as you type for comments. From duane.johnson at gmail.com Fri Mar 3 20:23:52 2006 From: duane.johnson at gmail.com (Duane Johnson) Date: Fri, 3 Mar 2006 13:23:52 -0700 Subject: [TxMt] Shared Ruby methods for TextMate module In-Reply-To: <494FD5D1-38D3-4F97-89C2-32FDA6B760DC@macromates.com> References: <1C49A74A-FCF5-46BF-88D6-1699DFA9B455@refinery.com> <494FD5D1-38D3-4F97-89C2-32FDA6B760DC@macromates.com> Message-ID: On Mar 3, 2006, at 9:59 AM, Allan Odgaard wrote: > On 3/3/2006, at 17:18, Gavin Kistner wrote: > >> [...] I put one of my files in a path with a space in the name, >> and it took me a fair amount of experimenting to figure out how >> TextMate and Lua independently wanted to see the URL. > > I have this function in the Show TODO List command: > > 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 > > I will move it to the textmate ruby lib in Support/lib so that Ruby > commands can just use this one. > Do you mind if I add TextMate.open (currently in the Rails.tmbundle/ Support/lib/rails/text_mate.rb file) as well as TextMate.open_url to the shared TextMate module? There may be some other methods in there that you'd like moved in to the shared Support/lib also. Duane Johnson (canadaduane) http://blog.inquirylabs.com/ From ericob at possibilityengine.com Fri Mar 3 23:46:52 2006 From: ericob at possibilityengine.com (Eric O'Brien) Date: Fri, 3 Mar 2006 15:46:52 -0800 Subject: [TxMt] Persistent Includes? In-Reply-To: References: Message-ID: <78F8DF83-ADB2-4EB0-9E95-9A75FA541D7A@possibilityengine.com> Actually, the concept of using a _dynamic_ tool to build static sites has just become of interest to me! Until recently I only had to be concerned with the theory of building a web site. Now I'm faced with building a couple of small, but real, sites. Just the other day, I changed the name of one of the main html files and realized I'd also have to change the text where that file was linked in all the navigation menus that existed on every page. Gaaa! "Where is the 'include' functionality in HTML?" Well, of course that's not where it is. The site I want to deploy isn't really "dynamic" at all. I just want the convenience, when I'm building it, of having repetitive parts that are common to many pages located in only ONE place. While I don't know PHP, I bet I can figure out how to get include() to work for this simple case. So Allan's recent suggestion of how to process a PHP site that results in a static site was very interesting. I suppose you could use any kind of "preprocessor" that you wanted. (By the way, "Persistent Includes" is a BBEdit thing. They're documented in the BBEdit manual in Appendix C: "Placeholders and Include Files.") eo On Mar 2, 2006, at 6:30 AM, csilver_junk at mac.com wrote: > Hello, > > I've been a lurking member of this list for some time, but this is > my first attempt at posting. I've been trying out TextMate in demo > mode and plan to buy it because it's nearly perfect for the way I > work, but I have a couple questions I'm hoping somebody could clear > up for me. > > I'm not a programmer, so please forgive me if my questions seem > somewhat elementary. I do, however, use the Terminal quite often > for shell commands, and I understand PHP well enough to write code > for my own purposes. I prefer coding my web pages by hand, and I'm > fluent in XHTML and CSS and competent in XSLT. I'm a bit anal about > clean coding, usability, and accessibility (both for the end user > and for me when writing my pages). For these reasons among others, > I've been disappointed by virtually all of the website generation > applications and/or scripts I've tried. It seems they require lots > of convoluted configuration that just gets in my way. Besides, I'd > rather just do it all myself with flat text files, using scripting > just to generate the headers, footers, navigation, etc. > > I'm not necessarily concerned with TextMate's ability to do the > many super-complicated things it obviously can do, as I probably > won't use most of it myself. However, I'm wondering if it has a > feature similar to the Persistent Includes available in BBEdit. I > have examined the manual and read about how to use snippets, > templates, commands, and the like, and I understand how these could > be used to make my life easier. The problem is that I haven't > figured out if there's a way to re-parse an entire project or > certain files within a project after I've made changes that will > affect the output. > > For instance, if I've used a script to output links to all the > files contained in the directory (as a navigation menu of sorts) > but later add more files to that same directory, I'd like to be > able to re-generate the entire site so that those new files show up > in the menu. Likewise, if I've generated prev/next links to other > files in the same directory, I'd like to have them updated without > having to manually type the new hyperlinks into each and every file > of the site. I know I could use PHP or server-side includes or > something similar (and I have written a simple php function to do > just that), but I'd really like to generate static web pages > because having dynamic pages online really isn't necessary for what > I'm doing (also, I can upload the same files both to .Mac and to my > virtual host, for example). > > If nothing resembling Persistent Includes is available in TextMate, > another viable option would be to auto-generate the output of an > entire project but save it to a new directory on my system using > the same hierarchy of the original project. That way, I can simply > re-generate it whenever I need to. In fact, that would probably be > a simpler solution than the Persistent Includes idea, but of course > you all probably know much more about how to efficiently accomplish > this than I do. Also, if anyone could point me in the direction of > a good streamlined tutorial on how to use shell scripts in an > environment such as TextMate, perhaps I can figure it out on my > own. The TextMate manual is nice, but something more tutorial-like > would help a lot. > > Sorry for the long post - it actually started out longer with more > details about my background and what I do, but I figured people may > get annoyed, so I cut it. If I need to further clarify exactly what > I need to accomplish, please ask, but I suspect most of you are > quite familiar with BBEdit and know about how Persistent Includes > work and how they differ from regular Includes. > > Thanks, > > Crystal From domenico.carbotta at fastwebnet.it Sat Mar 4 00:37:44 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Sat, 4 Mar 2006 01:37:44 +0100 Subject: [TxMt] Persistent Includes? In-Reply-To: <78F8DF83-ADB2-4EB0-9E95-9A75FA541D7A@possibilityengine.com> References: <78F8DF83-ADB2-4EB0-9E95-9A75FA541D7A@possibilityengine.com> Message-ID: > (By the way, "Persistent Includes" is a BBEdit thing. They're > documented in the BBEdit manual in Appendix C: "Placeholders and > Include Files.") BBEdit stems from a period where you had to do everything from scratch (let's say, like under windoze). TextMate, on the other end, was developed with the clear intent of leveraging the UNIX text-processing infrastructure. Persistent includes have no reason to be in TM: we're all set with the bundling of a script like allan's (erb instead of php? php is... ugly!). My .02?. Domenico From akakie at gmail.com Sat Mar 4 01:07:34 2006 From: akakie at gmail.com (Lewis Overton) Date: Fri, 3 Mar 2006 16:07:34 -0900 Subject: [TxMt] Persistent Includes? In-Reply-To: <78F8DF83-ADB2-4EB0-9E95-9A75FA541D7A@possibilityengine.com> References: <78F8DF83-ADB2-4EB0-9E95-9A75FA541D7A@possibilityengine.com> Message-ID: On 3/3/06, Eric O'Brien wrote: > > I just want the convenience, when I'm > building it, of having repetitive parts that are common to many pages > located in only ONE place. > > While I don't know PHP, I bet I can figure out how to get include() > to work for this simple case. My personal rule is NEVER code it twice except for the minimal structure. Anything which might change goes in a separate file, all managed within a TM project. Files get included with PHP one-liners: Shows up in every page, but to change navigation, I change it only in one place. It is essentially an Apache server side include using in php. Here is another one. This defines a dropdown menu in a sidebar. The dynamic part is the list, of course, which makes up part of the file name. Then this code, on the main page, loads one of the sub files into the page. Not my original code, just adapted. Visit to see it working. Look at the board archive or the program archive. After the concert on Sunday the third use of this gets emptied. Lewy -------------- next part -------------- An HTML attachment was scrubbed... URL: From ericob at possibilityengine.com Sat Mar 4 01:43:43 2006 From: ericob at possibilityengine.com (Eric O'Brien) Date: Fri, 3 Mar 2006 17:43:43 -0800 Subject: [TxMt] Persistent Includes? In-Reply-To: References: <78F8DF83-ADB2-4EB0-9E95-9A75FA541D7A@possibilityengine.com> Message-ID: <10401239-CFC0-439F-A900-5932A0288FE6@possibilityengine.com> On Mar 3, 2006, at 4:37 PM, Domenico Carbotta wrote: >> (By the way, "Persistent Includes" is a BBEdit thing. They're >> documented in the BBEdit manual in Appendix C: "Placeholders and >> Include Files.") > > BBEdit stems from a period where you had to do everything from > scratch (let's say, like under windoze). > TextMate, on the other end, was developed with the clear intent of > leveraging the UNIX text-processing infrastructure. > Persistent includes have no reason to be in TM: we're all set with > the bundling of a script like allan's Just my thought! ;) > (erb instead of php? php is... ugly!). And "erb" is ... some Ruby thing, right? Not "The Educational Records Bureau" or "ERB Equipment Company -- An authorized John Deere Dealer." :) > > My .02?. > > Domenico -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredb7 at starflam.com Sat Mar 4 02:07:43 2006 From: fredb7 at starflam.com (Fred B.) Date: Sat, 4 Mar 2006 03:07:43 +0100 Subject: [TxMt] Persistent Includes? In-Reply-To: <10401239-CFC0-439F-A900-5932A0288FE6@possibilityengine.com> References: <78F8DF83-ADB2-4EB0-9E95-9A75FA541D7A@possibilityengine.com> <10401239-CFC0-439F-A900-5932A0288FE6@possibilityengine.com> Message-ID: On 04 Mar 2006, at 02:43, Eric O'Brien wrote: > And "erb" is ... some Ruby thing, right? Not "The Educational > Records Bureau" or "ERB Equipment Company -- An authorized John > Deere Dealer." :) ;) Yes ERb is an implementation of "Embedded Ruby"', it's a way to embed Ruby code in html (.rhtml) or text pages., like PHP. It is what Ruby on Rails uses to build the views. -- FredB http://geekthang.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at aplosmedia.com Sat Mar 4 06:16:30 2006 From: eric at aplosmedia.com (Eric Coleman) Date: Sat, 4 Mar 2006 01:16:30 -0500 Subject: [TxMt] How to: Change command / format Message-ID: <5A3EC9FF-66C0-411F-8936-BDC9B6C62041@aplosmedia.com> I didn't know about command + / till the other day, however i've run into a minor issue. If I have source like the following: function do_me() { /* this was some old shit */ /* $var = blah */ echo 'hello'; } the command + / shortcut will turn it into: /*function do_me() { /* this was some old shit */ /* $var = blah */ echo 'hello'; }*/ which is deffinitly a no go. how could I change it so that it would result in: // function do_me() // { // /* this was some old shit */ // /* // $var = blah // */ // // echo 'hello'; // } Thanks, Eric Coleman -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3696 bytes Desc: not available URL: From eric at aplosmedia.com Sat Mar 4 06:23:41 2006 From: eric at aplosmedia.com (Eric Coleman) Date: Sat, 4 Mar 2006 01:23:41 -0500 Subject: [TxMt] How to: Change command / format In-Reply-To: <5A3EC9FF-66C0-411F-8936-BDC9B6C62041@aplosmedia.com> References: <5A3EC9FF-66C0-411F-8936-BDC9B6C62041@aplosmedia.com> Message-ID: I added this to the PHP bundle "Misc" preferences: shellVariables = ( { name = 'TM_COMMENT_START'; value = '// '; }, { name = 'TM_COMMENT_END'; value = ''; }, { name = 'TM_COMMENT_MODE'; value = 'line'; }, ); However, now I end up with: // function test() // { // // // echo 'blah'; // // $foo = 'bar'; // } Any way to fix that? Eric Coleman On Mar 4, 2006, at 1:16 AM, Eric Coleman wrote: > I didn't know about command + / till the other day, however i've > run into a minor issue. > > If I have source like the following: > > function do_me() > { > /* this was some old shit */ > /* > $var = blah > */ > > echo 'hello'; > } > > the command + / shortcut will turn it into: > > /*function do_me() > { > /* this was some old shit */ > /* > $var = blah > */ > > echo 'hello'; > }*/ > > which is deffinitly a no go. how could I change it so that it > would result in: > > > // function do_me() > // { > // /* this was some old shit */ > // /* > // $var = blah > // */ > // > // echo 'hello'; > // } > > > > Thanks, > Eric Coleman > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3696 bytes Desc: not available URL: From whrose at gmail.com Sat Mar 4 09:11:37 2006 From: whrose at gmail.com (Wolter Rose) Date: Sat, 4 Mar 2006 10:11:37 +0100 Subject: [TxMt] Spotlight and UTF8 encoded TextMate files In-Reply-To: References: <47c365910602281354q7bbd11f6xb405e4ee958702cc@mail.gmail.com> <4E4AC17F-4180-4AAD-A3E7-40595FDF7B74@ucl.ac.uk> Message-ID: <47c365910603040111r46f37542nca328e4013e9f979@mail.gmail.com> Thanks for your suggestions. I found the TeX mdimporter ( http://www.spookyhill.net/~gall/latex/#mdimporter) -- which is now part of the TeXShop bundle -- installed it and ran mdimport /PathToFiles/ToImport in Terminal (replaced /PathToFiles/ToImport with the actual path, of course) to import my LaTeX files. Spotlight now sees them! Thanks for your help! Wolter -------------- next part -------------- An HTML attachment was scrubbed... URL: From throw-away-1 at macromates.com Sat Mar 4 14:06:24 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Sat, 4 Mar 2006 15:06:24 +0100 Subject: [TxMt] How to: Change command / format In-Reply-To: References: <5A3EC9FF-66C0-411F-8936-BDC9B6C62041@aplosmedia.com> Message-ID: <2F098501-C31E-47E6-8B04-2B273007A3FF@macromates.com> On 4/3/2006, at 7:23, Eric Coleman wrote: > I added this to the PHP bundle "Misc" preferences: [...] > > However, now I end up with: [...] Was that with the code from your first letter? I cannot reproduce that, and I don?t see how the Toggle Comment function should be able to both remove comments and insert them, during one toggle. From gerti-textmate at bitart.com Sat Mar 4 16:48:40 2006 From: gerti-textmate at bitart.com (Gerd Knops) Date: Sat, 4 Mar 2006 10:48:40 -0600 Subject: [TxMt] Crash when aborting svn commit Message-ID: <8EA40485-D2E9-462C-A7A1-F7DCBD407BA5@bitart.com> I have TM set to be the editor for the svn commit messages. I run 'svn commit' from a terminal window, but then changed my mind and aborted with 'Ctrl-C'. The tab in TM containing the log entry file disappeared, leaving an empty spot in its place (TM window background). TM crashed a couple of clicks later... Relevant part of the crash log below. Seems reproducible, though looks different on screen depending on the window history. Gerd Host Name: Atlantis Date/Time: 2006-03-03 17:24:59.706 -0600 OS Version: 10.4.5 (Build 8H14) Report Version: 4 Command: TextMate Path: /Network/Applications/Devel/TextMate.app/Contents/MacOS/ TextMate Parent: WindowServer [72] Version: 1.5 (906) PID: 2886 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000006 Thread 0 Crashed: 0 com.apple.CoreFoundation 0x9073fba4 CFRetain + 60 1 com.apple.Foundation 0x9296d958 _NSKeyValueObservationInfoCreateByRemoving + 440 2 com.apple.Foundation 0x9296d730 -[NSObject (NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 56 3 com.apple.Foundation 0x9296d620 -[NSObject (NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 436 4 com.macromates.textmate 0x00076118 -[OakTextView setDocument:] + 436 (crt.c:355) 5 com.macromates.textmate 0x00048fdc -[OakProjectController setCurrentDocument:] + 440 (crt.c:355) 6 com.apple.Foundation 0x92970bfc _NSSetObjectValueAndNotify + 136 7 com.apple.AppKit 0x936e8f20 -[NSWindow sendEvent:] + 4728 8 com.apple.AppKit 0x93691ef4 -[NSApplication sendEvent:] + 4172 9 CocoaSuite 0x0179918c -[NSApplication (CocoaSuite) cocoaSuiteSendEvent:] + 1628 (bundle1.s:283) 10 com.macromates.textmate 0x000041e0 -[OakApplication sendEvent:] + 168 (crt.c:355) 11 com.apple.AppKit 0x93689330 -[NSApplication run] + 508 12 com.apple.AppKit 0x93779e68 NSApplicationMain + 452 13 com.macromates.textmate 0x00003180 _start + 344 (crt.c:272) 14 com.macromates.textmate 0x00003024 start + 60 From ericob at possibilityengine.com Sat Mar 4 23:57:31 2006 From: ericob at possibilityengine.com (Eric O'Brien) Date: Sat, 4 Mar 2006 15:57:31 -0800 Subject: [TxMt] Persistent Includes? In-Reply-To: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> References: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> Message-ID: <697BA44A-B8FC-49AA-93AC-B9005A9088A7@possibilityengine.com> This is a neat approach but I see some limitations in it if I were to try to use it in the way I envision working. That is, I have a wish list! :) As near as I can understand this code, it starts in the current TextMate project directory, creating a new directory there named "html." It then goes through the project directory looking for files that end in ".php," hands those files to the php command line interpreter and puts the output into the previously created "html" directory, changing the file extension from ".php" to ".html." I assume it does this recursively both when searching for php files and when outputting the files as html. I think the -p switch will cause that to happen on the output side, but I'm not clear where it happens in the for...do part. I don't see that this will create a complete site, though. That is, there are many other kinds of files (css files, image, movie and sound files, etc.) in my working site (my TM project). Naturally, those would need to get moved into their correct locations in the new (static) "html" folder also. Next challenge: this process (ejecting a static version of my dynamic working site) is not something that I would do once, at the "end" of a project, but quite often... whenever I wanted to publish the site to a test or staging server. In that situation, I certainly don't want to have to process every file for the entire site each time I want to update my test server. I only want to process the files that have *changed* since the last time I ran the process. Conceptually, I sorta would like to work rsync into the process here, but I don't quite see how to do it (as none of the html files in the static site are going to match with their "source" php files). Thanks for any ideas! eo On Mar 3, 2006, at 8:29 AM, Allan Odgaard wrote: > On 2/3/2006, at 15:30, csilver_junk at mac.com wrote: > >> [...] If nothing resembling Persistent Includes is available in >> TextMate, another viable option would be to auto-generate the >> output of an entire project but save it to a new directory on my >> system using the same hierarchy of the original project [...] > > I have no real idea about what the Persistent Includes can do, but > it would be easy to create a TM command which e.g. pipes each *.php > file in your project through PHP and wrote the result to an ?html? > sub-directory (as an HTML file): > > cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}" > mkdir -p html > for f in *.php; do > php <"$f" >"html/${f%.*}.html" > done > > This would allow you to use all the power of PHP and create static > files from that. You could add a master.inc which got sourced when > generating each of the files, e.g. like this: > > cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}" > mkdir -p html > for f in *.php; do > cat master.inc "$f"|php >"html/${f%.*}.html" > done > > That way you could place shared variables and such in your master.inc. > > FYI the TextMate manual is generated in a slightly similar fashion, > see http://lists.macromates.com/pipermail/textmate/2006-February/ > 008160.html for more. From domenico.carbotta at fastwebnet.it Sun Mar 5 00:27:37 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Sun, 5 Mar 2006 01:27:37 +0100 Subject: [TxMt] Persistent Includes? In-Reply-To: <697BA44A-B8FC-49AA-93AC-B9005A9088A7@possibilityengine.com> References: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> <697BA44A-B8FC-49AA-93AC-B9005A9088A7@possibilityengine.com> Message-ID: <444F21B6-E537-459C-9C7F-09C162F3BF3C@fastwebnet.it> what you're trying to achieve is called make :) or, at least, a friendly frontend to it. From textmate at minimaldesign.net Sun Mar 5 01:49:46 2006 From: textmate at minimaldesign.net (minimal.design) Date: Sat, 4 Mar 2006 20:49:46 -0500 Subject: [TxMt] find in project text field In-Reply-To: <20060303184212.B2F17612E@comox.textdrive.com> References: <20060303184212.B2F17612E@comox.textdrive.com> Message-ID: <607559B1-48E7-4582-B1A3-2AAF4113DE8D@minimaldesign.net> >> In the regular find window, there's that arrow button you can click >> to get a multi line text field where to enter your search query, >> but I don't see it when I do a search in whole project, which is >> kind of a pain when looking for lengthy pieces of code... > > Do you know command-E? It places the selection on the find clipboard. > 99% of the time, I want to find something which is already in my > source, and never actually type it in the find dialog text fields Thanks for the tip. But the situation I'm often confronted to in my job is editing whole sites coded by others that have the same exact HTML on millions of pages and I really need to use the project wide search and replace feature in order to be anywhere close to productive... If there's is any chance to implement the same collapse window thinggy from the regular search in the future, it would be great. Thanks again for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From newsgr at tobiasjung.net Sun Mar 5 15:01:41 2006 From: newsgr at tobiasjung.net (Tobias Jung) Date: Sun, 5 Mar 2006 16:01:41 +0100 Subject: [TxMt] find in project text field In-Reply-To: <607559B1-48E7-4582-B1A3-2AAF4113DE8D@minimaldesign.net> References: <20060303184212.B2F17612E@comox.textdrive.com> <607559B1-48E7-4582-B1A3-2AAF4113DE8D@minimaldesign.net> Message-ID: Hi, I'm new on this list and a new TextMate User. Because development seems to have stopped on my favourite text editor (or what was my favourite text editor until now :-)), I tried every MacOS text editor that I could find... and decided that TextMate has the potential to become my new favourite. Now, on topic: At 20:49 Uhr -0500 04.03.2006, minimal.design wrote: > But the situation I'm often confronted to in my job is editing whole >sites coded by others that have the same exact HTML on millions of pages >and I really need to use the project wide search and replace feature in >order to be anywhere close to productive... Use the regular find window with the multi line text field to enter your search/replace phrase and use it on a single file. Then, open the "Find in project" window. You'll see that your search/replace phrase is already entered in the single line text field. > If there's is any chance to >implement the same collapse window thinggy from the regular search in the >future, it would be great. I agree, that'd be even better than the "workaround" mentioned above. Kind regards, Tobias Jung From owen at backspaces.net Sun Mar 5 20:39:25 2006 From: owen at backspaces.net (Owen Densmore) Date: Sun, 5 Mar 2006 13:39:25 -0700 Subject: [TxMt] Latest Python Bundle? Message-ID: <58E5AE45-96E4-43DF-AED9-7058C3BE868A@backspaces.net> I'm using TextMate 1.5 (906), and just starting to get involved with a couple of Python projects. I watched the Python screencast by Domenico Carbotta .. quite nice! But there are a few snippets missing, I think. I'd like to use for to build a for-loop template. Ditto for all the controls like if, ifelse, while, and possibly a few others. Are these in the Subversion repository? I tried to download the entire bundle set from svn using the instructions on: http://macromates.com/wiki/Main/SubversionCheckout but it had an error. So basically I'm looking for a bit more python help in TM but not sure how to proceed. Thanks! -- Owen Owen Densmore http://backspaces.net - http://redfish.com - http://friam.org From domenico.carbotta at fastwebnet.it Sun Mar 5 21:39:50 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Sun, 5 Mar 2006 22:39:50 +0100 Subject: [TxMt] Latest Python Bundle? In-Reply-To: <58E5AE45-96E4-43DF-AED9-7058C3BE868A@backspaces.net> References: <58E5AE45-96E4-43DF-AED9-7058C3BE868A@backspaces.net> Message-ID: <9F41E3AB-A655-4045-BB75-AB760C6FB8DE@fastwebnet.it> Il giorno 05/mar/06, alle ore 21:39, Owen Densmore ha scritto: > Are these in the Subversion repository? I tried to download the > entire bundle set from svn using the instructions on: > http://macromates.com/wiki/Main/SubversionCheckout > but it had an error. probably you should've set UTF-8 as the text encoding. if you've already done it, paste the error message so that we can help you :) the rationale for not providing "for", "if" and such snippets is that they're not _that_ useful in speeding code writing. I don't use the "def" snippet either... :) the "class" snippet is useful mainly because of the smart-constructor feature. ciao, Domenico From lists at arachnedesign.net Sun Mar 5 22:07:29 2006 From: lists at arachnedesign.net (Steve Lianoglou) Date: Sun, 5 Mar 2006 17:07:29 -0500 Subject: [TxMt] Latest Python Bundle? In-Reply-To: <9F41E3AB-A655-4045-BB75-AB760C6FB8DE@fastwebnet.it> References: <58E5AE45-96E4-43DF-AED9-7058C3BE868A@backspaces.net> <9F41E3AB-A655-4045-BB75-AB760C6FB8DE@fastwebnet.it> Message-ID: <550DF013-BA86-434B-9692-4C94E0B36B26@arachnedesign.net> > the rationale for not providing "for", "if" and such snippets is > that they're not _that_ useful in speeding code writing. I don't > use the "def" snippet either... :) > the "class" snippet is useful mainly because of the smart- > constructor feature. Somehow off topic, but first of all .. that class smart-constructor feature is sweet. I took one wild and uneducated stab at doing something like that for a java snippet ... specifically for a javadoc snippet ... like as you put the @param varName ..blah ... it'll drop the var into the method signature ... or the other way around. ... I was editing some code in TextMate cuz the eclipse text handling is kind of weak (though, the IDE itself is pretty handy) ... I thought it'd be pretty cool to do that, but it was wasting enough of my time that I myself actually realized I was trying to procrastinate and not do *real* work so I had to stop. Anyway ... I'm just saying that'd be a pretty nifty snippet. :-) -steve From domenico.carbotta at fastwebnet.it Sun Mar 5 22:19:49 2006 From: domenico.carbotta at fastwebnet.it (Domenico Carbotta) Date: Sun, 5 Mar 2006 23:19:49 +0100 Subject: [TxMt] Latest Python Bundle? In-Reply-To: <550DF013-BA86-434B-9692-4C94E0B36B26@arachnedesign.net> References: <58E5AE45-96E4-43DF-AED9-7058C3BE868A@backspaces.net> <9F41E3AB-A655-4045-BB75-AB760C6FB8DE@fastwebnet.it> <550DF013-BA86-434B-9692-4C94E0B36B26@arachnedesign.net> Message-ID: <989AAB31-384A-4FB6-89CE-64C651380EF1@fastwebnet.it> > like as you put the @param varName ..blah ... it'll drop the var > into the method signature ... or the other way around. I think the other way around should be much easier... but the regex gets fairly huge soon. I'm letting other regex gurus step in and have a stab at the problem, my attempt has become a huge mess after like 30 seconds :) From andrew at andrewdupont.net Sun Mar 5 22:21:42 2006 From: andrew at andrewdupont.net (Andrew Dupont) Date: Sun, 5 Mar 2006 16:21:42 -0600 Subject: [TxMt] MediaWiki bundle + Ruby library for interfacing w/ wiki pages Message-ID: I've made a bit of progress in writing a MediaWiki bundle, the goal of which would be to allow one to use TextMate as an external editor on Wikipedia and other sites using the MediaWiki software. I've written an alpha version of a Ruby library to machine-read/screen- scrape wiki pages -- for example: page = new MediaWiki::Page('TextMate') page.contents.gsub!(/Textmate/, 'TextMate') page.save('Corrected capitalization') I've also built a few proof-of-concept TextMate commands -- fetch selection from Wikipedia, etc., and have done a very small amount of work on a MediaWiki syntax grammar (though the one described here might be further along). In short, I'm trying to replicate as much as possible of the functionality of mwjed , a jEdit plugin with the same purpose. This would include being able to configure multiple wikis independently, log in, etc., so the bundle will have to keep track of a bit of configuration info. If anyone is interested in contributing to this project in any way, or has any ideas on how I can more elegantly keep track of a wiki "instance" across individual pages, please let me know. I'm decent enough in Ruby to get by (though my code could definitely benefit from another pair of eyes), but if you've got specific expertise in Objective-C I'd love your assistance in writing some dialogs like the ones in the Subversion bundle. The bundle is in no way ready for inclusion in the bundle repository, but I can share what I've got with anyone who's interested. I invite questions, comments, and general ridicule. Cheers, Andrew Dupont http://andrewdupont.net From mummer at whitefalls.org Mon Mar 6 01:54:03 2006 From: mummer at whitefalls.org (Michael Sheets) Date: Sun, 5 Mar 2006 19:54:03 -0600 Subject: [TxMt] MediaWiki bundle + Ruby library for interfacing w/ wiki pages In-Reply-To: References: Message-ID: <974F9559-1581-4BE2-96DA-329863C1EF29@whitefalls.org> Well I'm actually interested for another reason, I was trying to figure out how to have a text box sent to TextMate from a browser and Allan pointed out the MediaWiki external editor spec page. Would be interested to see how you tackled the issue. From andrew at andrewdupont.net Mon Mar 6 03:40:02 2006 From: andrew at andrewdupont.net (Andrew Dupont) Date: Sun, 5 Mar 2006 21:40:02 -0600 Subject: [TxMt] MediaWiki bundle + Ruby library for interfacing w/ wiki pages In-Reply-To: <974F9559-1581-4BE2-96DA-329863C1EF29@whitefalls.org> References: <974F9559-1581-4BE2-96DA-329863C1EF29@whitefalls.org> Message-ID: <8D6E935C-6B5D-403F-B42D-6990C934FFFD@andrewdupont.net> Haven't tackled it yet. Explicit communication between the browser and TextMate isn't the crucial part, at least for me, plus I know at the very least it'd be pretty easy to set up an AppleScript (invoked via a Quicksilver trigger or something) to do the legwork. TextMate would still have to do a bunch of work, including logging in, so most of the communication would have to be done with the server directly rather than through the browser. I've read the external editor spec and the sample Perl implementation ; the part I don't get about it is that the external editor still has to do all the work of screen-scraping the damned page. You can fetch the raw wikitext of a page with ?action=raw, eliminating the need for screen-scraping, in theory. But to me it seems like the point of grabbing the wikitext is to edit it -- and if you want to submit an edit you *have* to grab the ? action=edit version of the page anyway. Why? Because there are POST values you must submit that you can't get without scraping that page -- two timestamps and an edit token. Even their own Perl implementation resorts to regexes to grab these values from the HTML. Hopefully the preceding paragraphs convey what it took me hours to conclude: MediaWiki's efforts to facilitate external editors are somewhat promising, but ultimately half-baked. There's a great spec for a protocol called WTTP which would solve all these problems quite elegantly, in my opinion, but it doesn't seem to have much momentum, from what I can tell. At any rate, I think MediaWiki's idea of delivering a custom MIME type (so that the browser can associate the content with a specific application) is excellent. (When you request a page with ? action=raw, in fact, it's served with a Content-Type of text/x-wiki.) And the best part about the external editor spec is that it's a really quick, terse way to grab some configuration values that the user would otherwise have to enter. But when it comes to MIME types, Safari is hardly an A-student (it ignores the MIME type if it thinks it knows better ), so frankly I'm glad there's more than one way to do it. (This is what happens when you spend your weekend reading about wiki software instead of going outside.) Andrew On Mar 5, 2006, at 7:54 PM, Michael Sheets wrote: > Well I'm actually interested for another reason, I was trying to > figure out how to have a text box sent to TextMate from a browser > and Allan pointed out the MediaWiki external editor spec page. > Would be interested to see how you tackled the issue. > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From quinn at strangecode.com Mon Mar 6 07:55:26 2006 From: quinn at strangecode.com (Quinn Comendant) Date: Sun, 5 Mar 2006 23:55:26 -0800 Subject: [TxMt] excluding match from language pattern Message-ID: <20060306075526.7334@one.strangecode.com> Anybody wish to help me with a pattern for the PHP language bundle? I have embedded SQL under a variable such as below. I'm having trouble excluding the addslashes part from the scope. $sql = "WHERE category = '" . addslashes($category) . "'"; ...or... $qid = DB::query(" WHERE category = '" . addslashes($category) . "' "); The pattern I've come up with so far: { name = 'meta.scope.sql'; begin = '(dbQuery|DB::query)\("|\$\w*(sql|where)\w*\s*=\s*"'; end = '"\)|";'; patterns = ( { include = 'source.sql'; }, ); contentName = 'source.sql.embedded'; }, I'm new at this so any help would be appreciated. Thanks, Quinn From Soryu at serenity.de Mon Mar 6 11:12:40 2006 From: Soryu at serenity.de (Soryu) Date: Mon, 6 Mar 2006 12:12:40 +0100 Subject: [TxMt] excluding match from language pattern In-Reply-To: <20060306075526.7334@one.strangecode.com> References: <20060306075526.7334@one.strangecode.com> Message-ID: Some time ago I introduced a SQL heredoc in PHP. Why not use this: ? $query = << Anybody wish to help me with a pattern for the PHP language bundle? I > have embedded SQL under a variable such as below. I'm having trouble > excluding the addslashes part from the scope. From roberto+textmate at keltia.freenix.fr Mon Mar 6 11:40:09 2006 From: roberto+textmate at keltia.freenix.fr (Ollivier Robert) Date: Mon, 6 Mar 2006 12:40:09 +0100 Subject: [TxMt] Persistent Includes? In-Reply-To: <697BA44A-B8FC-49AA-93AC-B9005A9088A7@possibilityengine.com> References: <12C02A4A-D244-4500-BA42-B55AF55CD253@macromates.com> <697BA44A-B8FC-49AA-93AC-B9005A9088A7@possibilityengine.com> Message-ID: <20060306114009.GA21736@tara.freenix.org> According to Eric O'Brien: > time I want to update my test server. I only want to process the > files that have *changed* since the last time I ran the process. > Conceptually, I sorta would like to work rsync into the process here, > but I don't quite see how to do it (as none of the html files in the > static site are going to match with their "source" php files). Use make, that's exactly its "reason d'?tre". .php.html: php ${.OODATE} > html/${.TARGET} (in BSD make, GNU has a somewhat different syntax) -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005 From bbs at fatslice.com Mon Mar 6 17:02:30 2006 From: bbs at fatslice.com (David Eriksson) Date: Mon, 6 Mar 2006 18:02:30 +0100 Subject: [TxMt] plain text syntax coloring syntax In-Reply-To: <02513CDC-5700-4545-9C09-1335C3EA3CAC@cjack.com> References: <14F0BF53-1383-4BC2-A1E9-E3D54DE249A0@vocaro.com> <92865AC9-F6B3-4E9D-A12E-6D33DECEB8FB@mac.com> <6C8927C0-98F7-4D62-AF18-582B405537F8@vocaro.com> <02513CDC-5700-4545-9C09-1335C3EA3CAC@cjack.com> Message-ID: hi, been looking around at the site but can't find any info how the plain text coloring is working. Just noticed in the release notes that [NEW] and [REVISION x] etc does some quite nice coloring. As I always write my TODO's, WORKPLAN's etc in plain text it would be nice if I knew how to adapt to get stuff like TODO ---- turn into what you get when typing [REVISION 2] etc. /d From ben at incomumdesign.com Mon Mar 6 17:09:09 2006 From: ben at incomumdesign.com (Benjamin Jackson) Date: Mon, 6 Mar 2006 14:09:09 -0300 Subject: [TxMt] "New Folder" shortcut broken? Message-ID: It seems that the CMD-CTL-G "New Folder" shortcut isn't working. Is anyone else having this problem, or is it just me? Cheers, Ben ___________________ Ben Jackson Diretor de Desenvolvimento ben at incomumdesign.com http://www.incomumdesign.com From owen at backspaces.net Mon Mar 6 17:13:56 2006 From: owen at backspaces.net (Owen Densmore) Date: Mon, 6 Mar 2006 10:13:56 -0700 Subject: [TxMt] Re: Latest Python Bundle? In-Reply-To: <20060306114310.ED1BC618A@comox.textdrive.com> References: <20060306114310.ED1BC618A@comox.textdrive.com> Message-ID: <6124DF65-344D-43A4-90ED-FED2D988D385@backspaces.net> On Mar 6, 2006, at 4:43 AM, textmate-request at lists.macromates.com wrote: > From: Domenico Carbotta > Date: March 5, 2006 2:39:50 PM MST > Subject: Re: [TxMt] Latest Python Bundle? > > Il giorno 05/mar/06, alle ore 21:39, Owen Densmore ha scritto: > >> Are these in the Subversion repository? I tried to download the >> entire bundle set from svn using the instructions on: >> http://macromates.com/wiki/Main/SubversionCheckout >> but it had an error. > > probably you should've set UTF-8 as the text encoding. if you've > already done it, paste the error message so that we can help you :) Domenico: Grazie mille per la aiuto! Vorrei tanto essere in Italia adesso. Well, naturally as soon as I try to re-create the error I got, everything worked fine! I just checked out all of revision 2825 with no error so likely everything is fine. > the rationale for not providing "for", "if" and such snippets is > that they're not _that_ useful in speeding code writing. I don't > use the "def" snippet either... :) > the "class" snippet is useful mainly because of the smart- > constructor feature. Thanks for the clarification .. I do agree python is so brief and clear that it doesn't need a lot of extra help. > ciao, > > Domenico -- Owen Owen Densmore http://backspaces.net - http://redfish.com - http://friam.org From throw-away-1 at macromates.com Mon Mar 6 17:22:26 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 6 Mar 2006 18:22:26 +0100 Subject: [TxMt] "New Folder" shortcut broken? In-Reply-To: References: Message-ID: On 6/3/2006, at 18:09, Benjamin Jackson wrote: > It seems that the CMD-CTL-G "New Folder" shortcut isn't working. Is > anyone else having this problem, or is it just me? Cheers, It will work if you first open the menu in the drawer once, of course this is not very useful. This is a problem with the f? key handling of Cocoa / OS X -- I can add my own handling of the menu keys, but that handling won?t be able to correctly support the Dvorak/Qwerty keymap hybrid, which is why I removed this handling. The only solution is to have the items in the top menu and let the Carbon Menu Manager do all the magic keyboard handling that Cocoa applications can?t do -- I will do this in the 2.0 relayout of things. For now I just left the current stuff as-is, hoping it wouldn?t be too big a frustration for keyboard users. The reason the New File? shortcut works is that I hide that item behind New Project in the File menu -- item hiding like this though only works when the actual key is the same, so there was no obvious place for the other items. From throw-away-1 at macromates.com Mon Mar 6 17:25:01 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 6 Mar 2006 18:25:01 +0100 Subject: [TxMt] plain text syntax coloring syntax In-Reply-To: References: <14F0BF53-1383-4BC2-A1E9-E3D54DE249A0@vocaro.com> <92865AC9-F6B3-4E9D-A12E-6D33DECEB8FB@mac.com> <6C8927C0-98F7-4D62-AF18-582B405537F8@vocaro.com> <02513CDC-5700-4545-9C09-1335C3EA3CAC@cjack.com> Message-ID: <5D0C364D-E908-4BDC-94CB-8C48C628BF15@macromates.com> On 6/3/2006, at 18:02, David Eriksson wrote: > been looking around at the site but can't find any info how the > plain text coloring is working. It?s documented here: The Plain Text language grammar is in the Text bundle. You probably want to duplicate it, and make your changes to the duplicate, or likely create a new which include the text.plain language -- that way, should the plain text grammar be updated, your augmented grammar will still see these updates. From dan at solidether.net Mon Mar 6 18:32:40 2006 From: dan at solidether.net (Daniel Jewett) Date: Mon, 06 Mar 2006 13:32:40 -0500 Subject: [TxMt] interpreter failed: No such file or directory (add Comment error) Message-ID: <20060306133240.119154.447474fd@solidether.net> Greetings all, I'm getting this: interpreter failed: No such file or directory When using cmd-/ to add comments. It's happening in various language formats. I've tried some of the ruby path type solutions, but I'm not having any luck. Could someone point in the right direction to investigate this. Dan J. ======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan at solidether.net http://www.solidether.net From quinn at strangecode.com Mon Mar 6 19:23:53 2006 From: quinn at strangecode.com (Quinn Comendant) Date: Mon, 6 Mar 2006 11:23:53 -0800 Subject: Re(2): [TxMt] excluding match from language pattern In-Reply-To: References: <20060306075526.7334@one.strangecode.com> Message-ID: <20060306192353.31791@one.strangecode.com> On Mon, 6 Mar 2006 12:12:40 +0100, Soryu wrote: >Some time ago I introduced a SQL heredoc in PHP. Why not use this: > > ... > $query = <<SELECT * FROM `users` WHERE `foo` = {$bar}; >SQL; > ... > >It will color the SQL according to the SQL syntax and let PHP >substitute the variables as specified ... Thanks Soryu, I saw that HEREDOC code. But I have my own reasons for doing the code the way I did (one reason being supporting 100000 lines of legacy code). Any ideas? Q From michael at stroeck.com Mon Mar 6 23:14:49 2006 From: michael at stroeck.com (=?ISO-8859-1?Q?Michael_Str=F6ck?=) Date: Tue, 7 Mar 2006 00:14:49 +0100 Subject: [TxMt] Extremely slow pasting of text Message-ID: Hi all, I'm having problems with big files. TextMate, for me, is practically unuseable for many applications, and I'm not sure wether something is wrong, or I'm just witnessing limitations of the app itself. TextMate takes upwards of 3 minutes to paste moderately long pieces of text (30-70 KB) without line breaks. I use TextMate to edit Wikipedia entries, which are sometimes badly formated. Thirty thousand characters and not a newline in sight. When I copy texts like that and try to paste them into TextMate, it practically dies. Three times out of five, it won't recover. If it comes back, it's unbearably slow and practically unuseable. Am I doing something wrong, or is this a known issue? I am on a G4 1,25GHz with 1 GB of RAM. Firefox's textfields can handle pasting and editing of 1MB snippets (I tried) without a hitch, EVEN in those JavaScript rich editor abominations, which probably aren't the most optimized pieces of code ever to parse text. And that's with all the other crap going on, like 10 tabs open and several exensions installed. What's going on? Michael Str?ck From drdrang at gmail.com Tue Mar 7 04:59:06 2006 From: drdrang at gmail.com (Dr. Drang) Date: Mon, 6 Mar 2006 22:59:06 -0600 Subject: [TxMt] Combining snippets and commands? In-Reply-To: <341D3DB6-3848-4890-A725-495DD80EF779@starflam.com> References: <341D3DB6-3848-4890-A725-495DD80EF779@starflam.com> Message-ID: On 2/28/06, Fred B. wrote: > > > Following your questions on the list and the answers to it, I did the same > yesterday, but with Ruby. > > The only difference is that it increments the last id number and insert it > instead of "id". That may interest you. > As I mentioned in a previous message, it did interest me, and I have now implemented Fred B's clever reference incrementing in my (Perl) command. It works the same as Mr. B's except that it finds the highest-numbered reference and increments that, rather than assuming that the last reference has the highest number. For organized people, there won't be any difference; for inveterate rewriters and rearrangers like me, it prevents some duplicate numbering. I've given a full description on my blog: http://www.leancrew.com/all-this/2006/03/new_and_improved_textmate_and.html -- Dr. Drang From quinn at strangecode.com Tue Mar 7 06:03:34 2006 From: quinn at strangecode.com (Quinn Comendant) Date: Mon, 6 Mar 2006 22:03:34 -0800 Subject: [TxMt] setting more-than-one name to a language pattern Message-ID: <20060307060334.16138@one.strangecode.com> All my troubles with TextMate seem to do with language grammars. Here's another issue I can't work out on my own... I'm trying to add " case 'something': " to the Symbol List in the PHP language grammer. I've added the following pattern: { name = 'meta.symbol-list.php'; match = "\bcase\s+[^:]+:"; }, And after also adding a showInSymbolList preference item it does place all case items into the symbol list. But the unfortunate side effect is that the text is now not in the keyword.control.php scope, so has no syntax highlighting. How to give more than one scope name to a pattern? I don't want to include ALL the matches for keyword.control.php in my symbol list. Thanks, Quinn From throw-away-1 at macromates.com Tue Mar 7 09:47:14 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 7 Mar 2006 10:47:14 +0100 Subject: [TxMt] setting more-than-one name to a language pattern In-Reply-To: <20060307060334.16138@one.strangecode.com> References: <20060307060334.16138@one.strangecode.com> Message-ID: <3F406886-76AF-4B5A-BD95-68E68D20146D@macromates.com> On 7/3/2006, at 7:03, Quinn Comendant wrote: > How to give more than one scope name to a pattern? I don't want to > include ALL the matches for keyword.control.php in my symbol list. You can name captures [1], so you want to capture the case part, and likely the label part, and assign an (additional) name to that. [1] http://macromates.com/textmate/manual/language_grammars#rule_keys From throw-away-1 at macromates.com Tue Mar 7 09:52:23 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 7 Mar 2006 10:52:23 +0100 Subject: [TxMt] Extremely slow pasting of text In-Reply-To: References: Message-ID: <720B36DF-F8C8-4F7D-8B30-DFF834446280@macromates.com> On 7/3/2006, at 0:14, Michael Str?ck wrote: > [...] What's going on? The problem is with the lack of newlines. It is a know issue and primarily has to do with handing over the entire line to ATSUI for rendering and text metrics, but there are also other issues, like using line endings as safe points for parsing of text for syntax highlight, meaning each change require the entire line (70-80KB) to be reparsed, and while that happens, edits to the line will stall the main thread. Enabling soft wrap (View menu) solves the ATSUI issue. From geejar at gmail.com Tue Mar 7 10:35:31 2006 From: geejar at gmail.com (Sing) Date: Tue, 7 Mar 2006 18:35:31 +0800 Subject: [TxMt] Unable to create files from templates Message-ID: <65BDDD13-FF3E-4D7A-A354-2B1BEEA32418@gmail.com> Hey all, I just started tasting TextMate today, great app. I was wondering is there any trick to get "creating files from templates" functional? I mean nothing happen when I click the "create" button. Here's some error from my console.log that I guess which is related to the problem I'm facing: 2006-03-07 18:26:01.742 TextMate[2305] Error laoding '/Applications/ TextMate.app/Contents/SharedSupport/Bundles/Java.tmbundle/Templates/ addrbook.awk/info.plist' as Templates 2006-03-07 18:26:01.742 TextMate[2305] Error laoding '/Applications/ TextMate.app/Contents/SharedSupport/Bundles/Java.tmbundle/Templates/ templatize.sh/info.plist' as Templates Tank you for your help. S From quinn at strangecode.com Tue Mar 7 12:27:18 2006 From: quinn at strangecode.com (Quinn Comendant) Date: Tue, 7 Mar 2006 04:27:18 -0800 Subject: [TxMt] change size of paste from history popup? Message-ID: <20060307122718.23586@one.strangecode.com> Is it possible to change the size of the little menu that displays from the 'Paste from History' command? I find it way too small for my taste. Quinn From andreaswahlin at bredband.net Tue Mar 7 14:21:36 2006 From: andreaswahlin at bredband.net (Andreas Wahlin) Date: Tue, 7 Mar 2006 15:21:36 +0100 Subject: [TxMt] change size of paste from history popup? In-Reply-To: <20060307122718.23586@one.strangecode.com> References: <20060307122718.23586@one.strangecode.com> Message-ID: <0FD2E0F6-A4FE-45EC-B1D3-66AC13193B58@bredband.net> Not exactly the same, but related. Butler [0] has quite a nicy clipboard history that I use myself. Systemwide and persistent over reboots. [0] http://www.petermaurer.de/nasi.php?thema=butler&sprache=english Andreas On Mar 7, 2006, at 13:27 , Quinn Comendant wrote: > Is it possible to change the size of the little menu that displays > from > the 'Paste from History' command? I find it way too small for my > taste. > > Quinn > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From throw-away-1 at macromates.com Tue Mar 7 15:33:45 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 7 Mar 2006 16:33:45 +0100 Subject: [TxMt] interpreter failed: No such file or directory (add Comment error) In-Reply-To: <20060306133240.119154.447474fd@solidether.net> References: <20060306133240.119154.447474fd@solidether.net> Message-ID: <4FC8251A-6FEB-4231-8E0B-98406C40C4DB@macromates.com> On 6/3/2006, at 19:32, Daniel Jewett wrote: > I'm getting this: interpreter failed: No such file or directory > When using cmd-/ to add comments. That would indicate that there was a problem loading /usr/bin/env. Could you try to select these two lines in TextMate and press ctrl-R, and quote the result: #!/usr/bin/env sh echo test And these two: #!/bin/sh echo test If you do get a failure for the first, please also try (from either Terminal or TextMate): ls -l /usr/bin/env From throw-away-1 at macromates.com Tue Mar 7 15:35:50 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 7 Mar 2006 16:35:50 +0100 Subject: [TxMt] Unable to create files from templates In-Reply-To: <65BDDD13-FF3E-4D7A-A354-2B1BEEA32418@gmail.com> References: <65BDDD13-FF3E-4D7A-A354-2B1BEEA32418@gmail.com> Message-ID: On 7/3/2006, at 11:35, Sing wrote: > I was wondering is there any trick to get "creating files from > templates" functional? I mean nothing happen when I click the > "create" button. No -- but it does use a shell script to do the work, so this might be the heart of the problem. To verify that TM can use your shell, create a new document and write the following, and press ctrl-R after the line (to execute it as a shell command): date Please also try the File -> New From Template to see if this one is also faulty. From throw-away-1 at macromates.com Tue Mar 7 15:36:52 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 7 Mar 2006 16:36:52 +0100 Subject: [TxMt] change size of paste from history popup? In-Reply-To: <20060307122718.23586@one.strangecode.com> References: <20060307122718.23586@one.strangecode.com> Message-ID: On 7/3/2006, at 13:27, Quinn Comendant wrote: > Is it possible to change the size of the little menu that displays > from > the 'Paste from History' command? I find it way too small for my > taste. No -- is it the width or height you find to small (or both)? From throw-away-1 at macromates.com Tue Mar 7 15:47:55 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 7 Mar 2006 16:47:55 +0100 Subject: [TxMt] excluding match from language pattern In-Reply-To: <20060306075526.7334@one.strangecode.com> References: <20060306075526.7334@one.strangecode.com> Message-ID: <5723152D-6B9F-4560-92E3-288C74E562AD@macromates.com> On 6/3/2006, at 8:55, Quinn Comendant wrote: > [...] > > $sql = "WHERE category = '" . addslashes($category) . "'"; > > ...or... > > $qid = DB::query(" > WHERE category = '" . addslashes($category) . "' > "); To match the SQL part I think you will need two different rules (one for each construct). I have written an example of matching the first construct below, let me know if you have further questions. { begin = '(\$sql) = '; end = ';'; # assign a scope name to the ?$sql? part captures = { 1 = { name = 'variable.other.php'; } }; patterns = ( # start a new context for ? in ?$sql = ?;? # match strings in this context { name = 'string.quoted.double.php'; begin = '"'; end = '"'; patterns = ( { match = '\\.'; }. # escaped characters { include = 'source.sql'; } # treat content of string as SQL ); }. # for that which is not matched as a string in this # context use the normal (root level) PHP rules { include = '$self'; } ); } From throw-away-1 at macromates.com Tue Mar 7 16:07:41 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 7 Mar 2006 17:07:41 +0100 Subject: [TxMt] excluding match from language pattern In-Reply-To: <5723152D-6B9F-4560-92E3-288C74E562AD@macromates.com> References: <20060306075526.7334@one.strangecode.com> <5723152D-6B9F-4560-92E3-288C74E562AD@macromates.com> Message-ID: <59F9DB4F-DAA3-4C1A-BC21-ADAFAF103403@macromates.com> On 7/3/2006, at 16:47, Allan Odgaard wrote: > # assign a scope name to the ?$sql? part > captures = { 1 = { name = 'variable.other.php'; } }; Let that be: beginCaptures = ? From jfieber at slis.indiana.edu Tue Mar 7 16:19:43 2006 From: jfieber at slis.indiana.edu (John Fieber) Date: Tue, 7 Mar 2006 08:19:43 -0800 Subject: [TxMt] Extremely slow pasting of text In-Reply-To: <720B36DF-F8C8-4F7D-8B30-DFF834446280@macromates.com> References: <720B36DF-F8C8-4F7D-8B30-DFF834446280@macromates.com> Message-ID: <964FE39D-5FA7-4AA7-80ED-580470C0A9E8@slis.indiana.edu> On Mar 7, 2006, at 1:52 AM, Allan Odgaard wrote: > The problem is with the lack of newlines. It is a know issue and > primarily has to do with handing over the entire line to ATSUI for > rendering and text metrics, but there are also other issues, like > using line endings as safe points for parsing of text for syntax > highlight, meaning each change require the entire line (70-80KB) to > be reparsed, and while that happens, edits to the line will stall > the main thread. Open a file with a long enough line and TextMate will reliably crash. I haven't determined if there is any particular boundary under which it is safe, but a one-line file on the far side of 2MB will certainly cause a crash for me. -john From quinn at strangecode.com Tue Mar 7 20:52:05 2006 From: quinn at strangecode.com (Quinn Comendant) Date: Tue, 7 Mar 2006 12:52:05 -0800 Subject: Re(2): [TxMt] change size of paste from history popup? In-Reply-To: References: <20060307122718.23586@one.strangecode.com> Message-ID: <20060307205205.28469@one.strangecode.com> >> Is it possible to change the size of the little menu that displays >> from >> the 'Paste from History' command? I find it way too small for my >> taste. On Tue, 7 Mar 2006 16:36:52 +0100, Allan Odgaard wrote: >No -- is it the width or height you find to small (or both)? Both! Yesterday I remembered I had a tricky slice of code (a big sql query) that had cut but wanted to use again...and thank goodness for the paste history as I didn't want to type it again. But it was somewhere between the 30th and the 100th item in the list and most of the items on the list were "select something something..." and they all looked the same. I ended up doing "Paste Previous" again and again until the right one came out. If possible, the ideal would be to make it _resizable_ because the little size does work most of the time. If not resizable 550x200 would be enough. Why not make it a seperate window like "Go to Symbol..."? Quinn From drdrang at gmail.com Tue Mar 7 23:17:41 2006 From: drdrang at gmail.com (Dr. Drang) Date: Tue, 7 Mar 2006 17:17:41 -0600 Subject: [TxMt] Arrow behavior with selected text--bug? Message-ID: When I select a word by double-clicking on it and then hit either the left or right arrow key, I expect the word to be deselected and the caret to end up at the start or end of the word. This isn't what TM [Version 1.5 (906)] is doing for me now, and its breaking a macro I'm trying to create. It appears that hitting an arrow key with text selected by double- clicking puts the caret one character to the left or right of where the double-click happened. No other current Mac program that I use does this, nor can I remember any other Mac program ever behaving this way (going back to 1985). So, unless I've inadvertently changed some setting to start this behavior, I would call this a bug. FYI, the arrow keys work as expected when the selection is made by swiping or shift-clicking. -- Dr. Drang From dan at solidether.net Tue Mar 7 23:21:11 2006 From: dan at solidether.net (Daniel Jewett) Date: Tue, 07 Mar 2006 18:21:11 -0500 Subject: [TxMt] interpreter failed: No such file or directory (add Comment error) In-Reply-To: <4FC8251A-6FEB-4231-8E0B-98406C40C4DB@macromates.com> References: <20060306133240.119154.447474fd@solidether.net> <4FC8251A-6FEB-4231-8E0B-98406C40C4DB@macromates.com> Message-ID: <20060307182111.616769.a91a1f10@solidether.net> On Tue, 7 Mar 2006 16:33:45 +0100, Allan Odgaard wrote this well considered message: > That would indicate that there was a problem loading /usr/bin/env. > > Could you try to select these two lines in TextMate and press ctrl-R, > and quote the result: > > #!/usr/bin/env sh > echo test Result: echo testtest > And these two: > > #!/bin/sh > echo test Result: echo test test > > > If you do get a failure for the first, please also try (from either > Terminal or TextMate): > > ls -l /usr/bin/env Result: -r-xr-xr-x 1 root wheel 13892 Mar 20 2005 /usr/bin/env This looks correct to me, no? Dan J. ======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan at solidether.net http://www.solidether.net From ericob at possibilityengine.com Wed Mar 8 02:26:18 2006 From: ericob at possibilityengine.com (Eric O'Brien) Date: Tue, 7 Mar 2006 18:26:18 -0800 Subject: [TxMt] Tracking and resolving dependencies Message-ID: <887236BF-73EB-45A8-9AF0-6725781CF973@possibilityengine.com> I'm interested if there is a way or technique (or even "trick") that will allow me to track and resolve naming dependencies in a TextMate project. Specifically, I'm thinking of the situation where, as I develop a web site, I decide that I need to move or rename an existing file. In order to prevent the website from breaking, I must then locate and change any and all references to that file in ALL of the files in the project. I can use Find and Replace in Project to accomplish that, but this is hardly proactive on the part of TextMate. I have to stop to do it, or *remember* to do it later. If I were using GoLive or Dreamweaver I assume that if I changed the name of a file in a project, I'd get a message that that file was referenced in "X" number of files and would I like to update all those files to reflect the new name? Is there any way now (or might there be any way in the future) to handle this situation? I'm not programming in C or the like, but it seems to me that a similar situation could occur there: Say that for some reason you change the name of an include or header file... you'll be into a real mess if you don't detect all the locations in the code where that file is referenced and change it! OR... if you change a variable name for some reason, references to that name will need to be changed (even though we aren't changing a FILE name in that case). Thanks, eo From throw-away-1 at macromates.com Wed Mar 8 03:45:25 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 04:45:25 +0100 Subject: [TxMt] Arrow behavior with selected text--bug? In-Reply-To: References: Message-ID: <2C8FA1BD-A2A7-4BAE-A7F9-94BFF01982DF@macromates.com> On 8/3/2006, at 0:17, Dr. Drang wrote: > So, unless I've inadvertently changed some setting to start this > behavior, I would call this a bug. It?s by design, I may change it -- there should be lots of mentions of this in the archive. From ollieman at gmail.com Wed Mar 8 03:46:22 2006 From: ollieman at gmail.com (Oliver Taylor) Date: Tue, 7 Mar 2006 19:46:22 -0800 Subject: [TxMt] select paragraph and line Message-ID: Just a quick question this time. Is there any practical difference between 'edit?select?paragraph' & 'edit?select?line'? I expected that 'select?paragraph' would not select the newline at the end of the string, leaving me free to delete a block of text and not remove the line itself from the document. This (expected) behavior would really be nice for some macros I'm working on. ? oliver From throw-away-1 at macromates.com Wed Mar 8 03:59:57 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 04:59:57 +0100 Subject: [TxMt] select paragraph and line In-Reply-To: References: Message-ID: On 8/3/2006, at 4:46, Oliver Taylor wrote: > Is there any practical difference between 'edit?select?paragraph' & > 'edit?select?line'? When not using soft wrap, Select Paragraph will select up/down to blank lines. With soft wrap enabled, it is the same as Select Line. > I expected that 'select?paragraph' would not select the newline at > the end of the string, leaving me free to delete a block of text > and not remove the line itself from the document. This (expected) > behavior would really be nice for some macros I'm working on. There actually is a ?moveToEndOfParagraphAndModifySelection:? action, but it is not bound to any key, so unless you either edit your key bindings file (to give it a key) or edit the macro after having recorded it [1], it is unreachable. Neither of this is of course ideal, but it?s an option :) [1] e.g. record: ctrl-A, shift-ctrl-right, delete, and afterwards save it, and locate the file on disk, edit that by changing the moveToEndOfLineAndModifySelection: to use Paragraph instead. Relaunch TextMate after that, to have it read the new macro. From throw-away-1 at macromates.com Wed Mar 8 04:16:40 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 05:16:40 +0100 Subject: [TxMt] interpreter failed: No such file or directory (add Comment error) In-Reply-To: <20060307182111.616769.a91a1f10@solidether.net> References: <20060306133240.119154.447474fd@solidether.net> <4FC8251A-6FEB-4231-8E0B-98406C40C4DB@macromates.com> <20060307182111.616769.a91a1f10@solidether.net> Message-ID: <00301548-8FEF-4F67-9C59-69C1BEF2241D@macromates.com> On 8/3/2006, at 0:21, Daniel Jewett wrote: > [...] This looks correct to me, no? Yes -- could you try e.g. HTML -> Convert Selection to Entities? This is also a Ruby script started similiar to the Toggle Comment. From throw-away-1 at macromates.com Wed Mar 8 04:24:14 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 05:24:14 +0100 Subject: Re(2): [TxMt] change size of paste from history popup? In-Reply-To: <20060307205205.28469@one.strangecode.com> References: <20060307122718.23586@one.strangecode.com> <20060307205205.28469@one.strangecode.com> Message-ID: <8D9751A0-9026-41C2-B0CC-C029D09A4891@macromates.com> On 7/3/2006, at 21:52, Quinn Comendant wrote: > [...] If possible, the ideal would be to make it _resizable_ > because the > little size does work most of the time. If not resizable 550x200 would > be enough. > > Why not make it a seperate window like "Go to Symbol..."? Initially it was a separate window -- I considered adding filtering, but instead did the ?integrated? (borderless) version, since it felt more light-weight, and thus seems (subjectively that is) cheaper to call up, which at least for me gave it increased usage. I?ll make a note about the size problem. From jamie at methnen.com Wed Mar 8 04:22:55 2006 From: jamie at methnen.com (Methnen (AKA Jamie)) Date: Tue, 7 Mar 2006 20:22:55 -0800 Subject: [TxMt] Screenwriting bundle 2.0 In-Reply-To: <6048FB69-6C64-4D4C-8D0D-A0212B84A27D@gmail.com> References: <6048FB69-6C64-4D4C-8D0D-A0212B84A27D@gmail.com> Message-ID: <389361D8-884C-48DA-ABB6-2E644F384E9B@methnen.com> On Mar 3, 2006, at 2:42 AM, Oliver Taylor wrote: > I've released version 2 of my screenwriting bundle. Wanted to let you know I think this is great and have a few friends who this would be very helpful for. Jamie _______________________________________________________________________ Email: jamie at methnen.com Homepage: http://www.methnen.com "And I always go to pieces. And I have it in my mind, that the sky is tall and heavy, when I could be brave." -Karen Peris (Brave) "I want to find where the maid in the street is pouring her wine, I heard she takes you in and gives you the words you need said. If you'll be her brother, she'll kiss you like a sister. She'll even be your mother, for now." -Matt Slocum (Sister, Mother) "And we are drowned." -Annie Dillard (Tickets For a Prayer Wheel) _______________________________________________________________________ From quinn at strangecode.com Wed Mar 8 04:48:36 2006 From: quinn at strangecode.com (Quinn Comendant) Date: Tue, 7 Mar 2006 20:48:36 -0800 Subject: Re(2): [TxMt] setting more-than-one name to a language pattern In-Reply-To: <3F406886-76AF-4B5A-BD95-68E68D20146D@macromates.com> References: <20060307060334.16138@one.strangecode.com> <3F406886-76AF-4B5A-BD95-68E68D20146D@macromates.com> Message-ID: <20060308044836.9704@one.strangecode.com> >> How to give more than one scope name to a pattern? I don't want to >> include ALL the matches for keyword.control.php in my symbol list. > >On Tue, 7 Mar 2006 10:47:14 +0100, Allan Odgaard wrote: >You can name captures [1], so you want to capture the case part, and >likely the label part, and assign an (additional) name to that. > >[1] http://macromates.com/textmate/manual/language_grammars#rule_keys That works. I'm not sure if I did exactly as you suggested, but here is what I came up with: { /* Q: Capture for symbol list: case 'xxx' : */ match = "\b((case)\s+('.*?')\s*(:))"; captures = { 1 = { name = 'meta.symbol-list.php'; }; 2 = { name = 'keyword.control.php'; }; 3 = { name = 'string.quoted.single.php'; }; 4 = { name = 'keyword.operator.string.php'; }; }; }, Oh, and a big question just occurred to me in my rampant editing of all my bundles: How will we ever manage merging upgraded bundles into our changes? I've followed the instructions on the website to "svn co" the bundles I want from macromates.com into /Library/Appl...TM/Bundles. But once I make one modification to, say, the language bundle for PHP, isn't the old copy moved to ~/Libarary/... and thus the svn updates ignored? Perhaps "svn co" into my ~/Libarary/... folder would have been smarter since then I could merge changes...but, uh, that's sounds like a lot of work. What is the "best practice" here? Q From throw-away-1 at macromates.com Wed Mar 8 05:01:48 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 06:01:48 +0100 Subject: Re(2): [TxMt] setting more-than-one name to a language pattern In-Reply-To: <20060308044836.9704@one.strangecode.com> References: <20060307060334.16138@one.strangecode.com> <3F406886-76AF-4B5A-BD95-68E68D20146D@macromates.com> <20060308044836.9704@one.strangecode.com> Message-ID: <24E74003-3B75-4088-9A42-82B403D55D6B@macromates.com> On 8/3/2006, at 5:48, Quinn Comendant wrote: > That works. I'm not sure if I did exactly as you suggested, but > here is > what I came up with: [...] It looks correct :) > Oh, and a big question just occurred to me in my rampant editing of > all > my bundles: How will we ever manage merging upgraded bundles into our > changes? I've followed the instructions on the website to "svn co" the > bundles I want from macromates.com into /Library/Appl...TM/Bundles. > But > once I make one modification to, say, the language bundle for PHP, > isn't > the old copy moved to ~/Libarary/... and thus the svn updates ignored? Yes (copied) -- so after a change, you no longer will see updates to that file. > Perhaps "svn co" into my ~/Libarary/... folder would have been smarter > since then I could merge changes...but, uh, that's sounds like a > lot of work. If you are semi-skilled with svn, it shouldn?t be that big a problem. svn will generally handle the merging. Only when major changes happen, would merge conflicts arise, which you would then have to resolve by hand. > What is the "best practice" here? Normally for language grammars, the best practice is to create a new grammar which include the old one. I should write up a section about this in the manual. However, PHP is problematic because it is included by HTML -- so creating a new PHP grammar would not have that be the one used by HTML files, which makes the above ?best practice? useless. So currently there is none for included grammars (like PHP). I do hope to soon come up with a neat solution for this problem though? From drdrang at gmail.com Wed Mar 8 05:56:51 2006 From: drdrang at gmail.com (Dr. Drang) Date: Tue, 7 Mar 2006 23:56:51 -0600 Subject: [TxMt] Arrow behavior with selected text--bug? In-Reply-To: <2C8FA1BD-A2A7-4BAE-A7F9-94BFF01982DF@macromates.com> References: <2C8FA1BD-A2A7-4BAE-A7F9-94BFF01982DF@macromates.com> Message-ID: On 3/7/06, Allan Odgaard wrote: > On 8/3/2006, at 0:17, Dr. Drang wrote: > > > So, unless I've inadvertently changed some setting to start this > > behavior, I would call this a bug. > > It's by design, I may change it -- there should be lots of mentions > of this in the archive. Well, I hope the acrimonious discussion of this issue last November has not turned you deaf to my pleas. There are, I think, three very good reasons to change the current behavior: 1. History/conformity. Mr. Van Ittersum (the user whose complaint started the thread in November) was right when he said that TM's behavior with regard to double-clicking and arrowing is unlike every other Mac program currently or in the past. As I said in my first message, I started using Macs in 1985, and I have never run into this behavior before. I'm pretty sure Windows editors don't behave this way, and I know that the wonderful Motif editor NEdit (which you admire, too) doesn't. And while "everyone else does it" is not an argument that should trump all other concerns, it does mean that your user base has certain expectations, and confounding those expectations should be done only if there is a significant gain. The one advantage you mentioned in the November thread--the ability to use an arrow key as an "undo" for a mistaken Command-A--has really no bearing on what the arrow keys do after a double-click word selection. 2. Double-clicking on a word has nothing to do with any individual character in that word. This, I think, is the main problem I have with the current behavior. When I double-click on a word to select it, the character that I happen to double-click on is of no consequence to me; it doesn't even enter my mind. I'm thinking of that word as a single entity. I may delete it, I may overwrite it, I may--and this is where I ran afoul of the current behavior--call a command or macro to act on it. But I am certainly not thinking about, or even aware of, the point within the word where I first clicked. The user interface encourages this way of thinking by eliminating the blinking cursor while the selection is active. This is a visual indication that the caret is to be thought of as smeared over the entire selection. 3. The behavior is not consistent with the way arrow keys work when a selection has been made another way. When a selection is made by dragging through text a right arrowkey press puts the caret at the end of the selection and a left arrowkey press puts the caret at the beginning of the selection--regardless of whether the drag was done from left to right or right to left. The same is true when a selection is made by shift-clicking. As far as I know, the arrow key behavior is the only behavior that cares how a selection was made. -- Dr. Drang From quinn at strangecode.com Wed Mar 8 08:10:06 2006 From: quinn at strangecode.com (Quinn Comendant) Date: Wed, 8 Mar 2006 00:10:06 -0800 Subject: Re(2): [TxMt] excluding match from language pattern In-Reply-To: <5723152D-6B9F-4560-92E3-288C74E562AD@macromates.com> References: <20060306075526.7334@one.strangecode.com> <5723152D-6B9F-4560-92E3-288C74E562AD@macromates.com> Message-ID: <20060308081006.11212@one.strangecode.com> On Tue, 7 Mar 2006 16:47:55 +0100, Allan Odgaard wrote: [...] >I have written an example of matching the first construct below, let >me know if you have further questions. > > { begin = '(\$sql) = '; end = ';'; [...] Thanks Allan But it doesn't work correctly yet. It _does_ apply source.sql to the contents of the double-quoted string, but most everything else breaks. Here is a more specific example to describe what is wrong... $sql = "SELECT * FROM some_tbl WHERE foo = '$foo' AND bar = '" . $this- >bar() . "'"; Problem 1: The SQL is treated as a double quoted string, which it is, but I want source.sql.embedded to override string.quoted.double.php. I added contentName = 'source.sql.embedded'; and now it works. Problem 2: $foo should be variable.other.php. Ok, I think I know how to do this, using captures, right? Or maybe even better would be to use { include = '#var_basic'; }? Nope, none of those work. Problem 3: '" . $this->bar() . "' should be source.php but instead it considers it a string.quoted.single.php I solved the last two problems by adding { match = "'"; }, but I have no more than an intuitive sense why this works. What does it mean to use a pattern with only a "match" statement? What is "\\."? But there is a problem with this solution: it doesn't allow for single-quoted strings here, for example if '$foo' needs to be 'foo'. In the end here is what I came up with: { begin = '(\$\w*(?:sql|where)\w*)\s*=\s*'; end = ';'; beginCaptures = { 1 = { name = 'variable.other.php'; }; }; patterns = ( { name = 'string.quoted.double.php'; begin = '"'; end = '"'; patterns = ( { match = '\\.'; }, { match = "'"; }, { include = 'source.sql'; }, { include = '#var_global'; }, ); contentName = 'source.sql.embedded'; }, { include = '$self'; }, ); }, Unrelated question: what is "swallow"? It seems to be undocumented. And how far is it to the moon? In miles - how far? And what is the principle element in the composition of moon rock? And what is the electric bill of the white house? And how do you make vegan bread pudding? Q From lindsve at bluezone.no Wed Mar 8 08:16:22 2006 From: lindsve at bluezone.no (Geir-Tore Lindsve) Date: Wed, 8 Mar 2006 09:16:22 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf Message-ID: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> Hello, Yesterday I decided to give TeXniscope a try after watching the screencasts from Haris (btw, great screencasts!) I have a problem making TextMate using TeXniscope though. I have set the TM_LATEX_VIEWER variable to TeXniscope, and in TeXniscope I have set the editor command path to /usr/local/bin/mate and the editor arguments to %file -l %line. When I typeset the document, TeXniscope doesn't open at all and the log window shows this message: ****************************************** Compiling LaTeX... This is pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2C 7.5.3) Typesetting: ./test.tex Document Class: article 2004/02/16 v1.4f Standard LaTeX document class Typesetting: ./test.aux) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/supp-pdf.tex Output written on test.pdf (1 page, 20593 bytes). test.log Success 2006-03-08 08:59:20.072 open[11309] LSOpenFromURLSpec() returned -10827 for application TeXniscope path /Users/geir/Desktop/test.pdf. 2006-03-08 08:59:20.074 open[11309] Couldn't open file: /Users/geir/Desktop/test.pdf ****************************************** The document I'm trying here is a fresh document from the article template. Any idea of a solution for this? (TeXniscope version 0.3.4, and TextMate version 1.5(906)) -- Mvh/Regards Geir-Tore Lindsve lindsve at bluezone.no http://privat.bluezone.no/lindsve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2367 bytes Desc: not available URL: From cskiadas at uchicago.edu Wed Mar 8 08:34:17 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Wed, 8 Mar 2006 02:34:17 -0600 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> Message-ID: <0FD543C2-2FC5-4B4B-BAB1-8AE9DF829C40@uchicago.edu> On Mar 8, 2006, at 2:16 AM, Geir-Tore Lindsve wrote: > Hello, > Hi Geir-Tore, > Yesterday I decided to give TeXniscope a try after watching the > screencasts from Haris (btw, great screencasts!) thanks! They were very fun to make. > > Success > 2006-03-08 08:59:20.072 open[11309] LSOpenFromURLSpec() returned > -10827 > for application TeXniscope path /Users/geir/Desktop/test.pdf. > 2006-03-08 08:59:20.074 open[11309] Couldn't open file: > /Users/geir/Desktop/test.pdf > ****************************************** > > (TeXniscope version 0.3.4, and TextMate version 1.5(906)) Your setup seems alright. A couple of things to try: 1) Have you actually run TeXniscope directly first? If so, do it now and then try again. 2) Have you spelt the variable with correct capitalization? (i.e. TeXniscope) 3) Where does TeXniscope.app reside? If it is not in ~/Applications/ or /Applications/ then move it there and try again. In any case, tell us what the path is. 4) Can you open the pdf by ctrl-clicking on it and choosing to open it with the application Texniscope.app? 5) Open the application Console.app and see if there are any relevant messages there. > -- > Mvh/Regards > Geir-Tore Lindsve > lindsve at bluezone.no > http://privat.bluezone.no/lindsve Good luck, Haris From lindsve at bluezone.no Wed Mar 8 09:06:19 2006 From: lindsve at bluezone.no (Geir-Tore Lindsve) Date: Wed, 8 Mar 2006 10:06:19 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <0FD543C2-2FC5-4B4B-BAB1-8AE9DF829C40@uchicago.edu> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <0FD543C2-2FC5-4B4B-BAB1-8AE9DF829C40@uchicago.edu> Message-ID: <190C8870-6149-41BA-A63A-62725B33967A@bluezone.no> Den 8. mar. 2006 kl. 09.34 skrev Charilaos Skiadas: > Your setup seems alright. A couple of things to try: > 1) Have you actually run TeXniscope directly first? If so, do it > now and then try again. Running (TeXniscope is, not I ;-) ) > 2) Have you spelt the variable with correct capitalization? (i.e. > TeXniscope) Copied directly from the preference pane: Variable: TM_LATEX_VIEWER Value: TeXniscope > 3) Where does TeXniscope.app reside? If it is not in ~/ > Applications/ or /Applications/ then move it there and try again. > In any case, tell us what the path is. /Applications/TeXniscope.app > 4) Can you open the pdf by ctrl-clicking on it and choosing to open > it with the application Texniscope.app? Yes, that works fine > 5) Open the application Console.app and see if there are any > relevant messages there. No messages in Console.app during these operations, and not in console.log either. I even downloaded the two apps and ran fresh copies of them too, without better results. -- Mvh/Regards Geir-Tore Lindsve lindsve at bluezone.no http://privat.bluezone.no/lindsve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2367 bytes Desc: not available URL: From throw-away-1 at macromates.com Wed Mar 8 11:52:04 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 12:52:04 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> Message-ID: <838C5E65-214E-4673-A48D-A6E5D65DFFF6@macromates.com> On 8/3/2006, at 9:16, Geir-Tore Lindsve wrote: > Success > 2006-03-08 08:59:20.072 open[11309] LSOpenFromURLSpec() returned > -10827 > for application TeXniscope path /Users/geir/Desktop/test.pdf. > 2006-03-08 08:59:20.074 open[11309] Couldn't open file: > /Users/geir/Desktop/test.pdf > ****************************************** Try open a terminal and then run: open -a TeXniscope /Users/geir/Desktop/test.pdf That should effectively be what TM ends doing, and what seems to produce the error above. From lindsve at bluezone.no Wed Mar 8 12:26:25 2006 From: lindsve at bluezone.no (Geir-Tore Lindsve) Date: Wed, 8 Mar 2006 13:26:25 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <838C5E65-214E-4673-A48D-A6E5D65DFFF6@macromates.com> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <838C5E65-214E-4673-A48D-A6E5D65DFFF6@macromates.com> Message-ID: Den 8. mar. 2006 kl. 12.52 skrev Allan Odgaard: > On 8/3/2006, at 9:16, Geir-Tore Lindsve wrote: > >> Success >> 2006-03-08 08:59:20.072 open[11309] LSOpenFromURLSpec() returned >> -10827 >> for application TeXniscope path /Users/geir/Desktop/test.pdf. >> 2006-03-08 08:59:20.074 open[11309] Couldn't open file: >> /Users/geir/Desktop/test.pdf >> ****************************************** > > Try open a terminal and then run: > > open -a TeXniscope /Users/geir/Desktop/test.pdf > > That should effectively be what TM ends doing, and what seems to > produce the error above. Came a bit closer to the issue here now. Running the above command in Terminal produced the same result, so I tried to run: open -a TeXniscope which also produced the error (with path=(null), most likely because I didn't add more parameters). Running this: open -a /Applications/TeXniscope.app works fine though. Running the same command as above (without / Applications/) works on other applications. Any idea what is wrong here? -- Mvh/Regards Geir-Tore Lindsve lindsve at bluezone.no http://privat.bluezone.no/lindsve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2367 bytes Desc: not available URL: From throw-away-1 at macromates.com Wed Mar 8 12:44:29 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 13:44:29 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <838C5E65-214E-4673-A48D-A6E5D65DFFF6@macromates.com> Message-ID: <90355A69-E2A2-4594-BF77-1C1358BF62C3@macromates.com> On 8/3/2006, at 13:26, Geir-Tore Lindsve wrote: > Running this: > open -a /Applications/TeXniscope.app > works fine though. Running the same command as above (without / > Applications/) works on other applications. In that case, you could set the variable to the full path. > Any idea what is wrong here? Your launch services database likely has two entries for TeXniscope, the first one being bogus. You can reset the database by running: /System/Library/Frameworks/ApplicationServices.framework/ Frameworks/LaunchServices.framework/Support/lsregister -kill -r / System/Library/CoreServices /Applications /Developer/Applications The last path is only if you have the dev-tools installed. After having reset it, you will get a warning the first time you open an application indirectly by opening the document (if it hasn?t been started before). This is no bigie, just so you now? From Soryu at serenity.de Wed Mar 8 12:57:36 2006 From: Soryu at serenity.de (Soryu) Date: Wed, 8 Mar 2006 13:57:36 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <838C5E65-214E-4673-A48D-A6E5D65DFFF6@macromates.com> Message-ID: <77FE84AF-575B-4B2F-B757-614BDF6F08B2@serenity.de> Maybe you have an old version moved to the trash. Emptying the trash would help. Stan. From lists at interdisco.net Wed Mar 8 16:33:44 2006 From: lists at interdisco.net (Oliver Hagmann) Date: Wed, 8 Mar 2006 17:33:44 +0100 Subject: [TxMt] LaTeX section snippets: special chars don't get escaped in label Message-ID: <45B0CB45-C2A3-45EB-ADA5-1EC58A7457E8@interdisco.net> Hi Here's a question for the latex pro's: Do you know if special characters like german umlauts are allowed in labels? e.g.: \section{Mein gr?nes Apfelb?umchen} \label{mein_gr?nes_apfelb?umchen} It works when typesetting the document. I just wanted to know if this is valid code. Because if _not_ then it would be nice, if these would be escaped automagically when using the section, subsection and subsubsection snippets. E.g.: \section{Mein gr?nes Apfelb?umchen} \label{mein_gruenes_apfelbaeumchen} If it's easier to accomplish, you could also just escape a for ?, u for ?, and o for ?, etc. Another nice enhancement would be if the \section and \label commands would each be on a seperate line. I just asked about the oppinions on this in the irc channel and I got at least one more vote for this ;-) Cheers. Oliver From dan at solidether.net Wed Mar 8 18:52:59 2006 From: dan at solidether.net (Daniel Jewett) Date: Wed, 08 Mar 2006 13:52:59 -0500 Subject: [TxMt] interpreter failed: No such file or directory (add Comment error) In-Reply-To: <00301548-8FEF-4F67-9C59-69C1BEF2241D@macromates.com> References: <20060306133240.119154.447474fd@solidether.net> <4FC8251A-6FEB-4231-8E0B-98406C40C4DB@macromates.com> <20060307182111.616769.a91a1f10@solidether.net> <00301548-8FEF-4F67-9C59-69C1BEF2241D@macromates.com> Message-ID: <20060308135259.716390.48001a6f@solidether.net> On Wed, 8 Mar 2006 05:16:40 +0100, Allan Odgaard wrote this well considered message: > Yes -- could you try e.g. HTML -> Convert Selection to Entities? This > is also a Ruby script started similiar to the Toggle Comment. That command works like a charm. Maybe I'm looking at "time to clean out preferences and reinstall?" ======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan at solidether.net http://www.solidether.net From cskiadas at uchicago.edu Wed Mar 8 19:26:26 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Wed, 8 Mar 2006 13:26:26 -0600 Subject: [TxMt] LaTeX section snippets: special chars don't get escaped in label In-Reply-To: <45B0CB45-C2A3-45EB-ADA5-1EC58A7457E8@interdisco.net> References: <45B0CB45-C2A3-45EB-ADA5-1EC58A7457E8@interdisco.net> Message-ID: <034FDC84-66F7-4C23-B045-DF200650E1ED@uchicago.edu> On Mar 8, 2006, at 10:33 AM, Oliver Hagmann wrote: > Hi > > Here's a question for the latex pro's: Do you know if special > characters like german umlauts are allowed in labels? e.g.: > > \section{Mein gr?nes Apfelb?umchen} > \label{mein_gr?nes_apfelb?umchen} > > It works when typesetting the document. I just wanted to know if > this is valid code. Because if My opinion in this is: If it works, then it is valid. > _not_ then it would be nice, if these would be escaped > automagically when using the section, subsection and subsubsection > snippets. E.g.: > \section{Mein gr?nes Apfelb?umchen} > \label{mein_gruenes_apfelbaeumchen} > So, if I understand correctly, you want to change the snippet so that what you type in the section part is automatically written in the label part as well with characters escaped. It is probably possible, but I wouldn't want it to be part of the general snippet. It is not too easy to make many transformations on the fly like that, and the question is which characters to escape. I would be more in favor of creating a command that escapes the current word or selection. That should be a lot easier to do, once provided with a dictionary of the substitutions desired, and again it could be easily customized. > If it's easier to accomplish, you could also just escape a for ?, u > for ?, and o for ?, etc. > > Another nice enhancement would be if the \section and \label > commands would each be on a seperate line. I just asked about the > oppinions on this in the irc channel and I got at least one more > vote for this ;-) You can certainly change the snippet in your personal copy, and add the new line. These snippets are supposed to be there just for guidance, and they can certainly be customized to suit your personal preferences. They were made based on my personal preferences, and I like the labels at the same line as what they are describing, but if the majority prefers them on a separate line, we can change the "official" snippets as well. In any case, these snippets are sort of deprecated in favor of the "insert command based on current word" command, which is pretty customizable in that respect. > > Cheers. Oliver Haris -------------- next part -------------- An HTML attachment was scrubbed... URL: From lindsve at bluezone.no Wed Mar 8 19:22:07 2006 From: lindsve at bluezone.no (Geir-Tore Lindsve) Date: Wed, 8 Mar 2006 20:22:07 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> Message-ID: <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> > 2006-03-08 08:59:20.072 open[11309] LSOpenFromURLSpec() returned > -10827 > for application TeXniscope path /Users/geir/Desktop/test.pdf. > 2006-03-08 08:59:20.074 open[11309] Couldn't open file: > /Users/geir/Desktop/test.pdf Finally find a solution. It seems that my Launch Services cache was corrupt, and it works after reseting it by using this tip: http://www.macosxhints.com/article.php?story=20031215144430486 It doesn't seem to by fully optimal though. It varies a lot whether pdfsync information are included (tried \usepackage{pdfsync} on several documents with no results, but using it on the article template works. Some documents doesn't open at all when using command- b, but works from other manual ways. Weird, but these are other issues which I'm going to investigate further. Thanks for all your tips. -- Mvh/Regards Geir-Tore Lindsve lindsve at bluezone.no http://privat.bluezone.no/lindsve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2367 bytes Desc: not available URL: From jon.kellyst at mac.com Wed Mar 8 21:22:18 2006 From: jon.kellyst at mac.com (Jonathan Prettyman) Date: Wed, 8 Mar 2006 13:22:18 -0800 Subject: [TxMt] Problem with 1.5 and require_cmd/CocoaDialog Message-ID: Whenever I run an external command, I'm getting errors about missing require_cmd or CocoaDialog. I've followed some of the tips about looking in $TM_SUPPORT_BUNDLE/bin and such but can't seem to find those commands/scripts. Is there something broken with my install I can fix? -jon From robert_ullrey at mac.com Wed Mar 8 21:36:59 2006 From: robert_ullrey at mac.com (Robert Ullrey) Date: Wed, 8 Mar 2006 13:36:59 -0800 Subject: [TxMt] TODO Bundle Message-ID: Love the TODO bundle and use it everyday to keep track of several projects. What I would like to do though is print out the HTML output the bundle produces. In otherwards, use COMMAND-Ndto print the window. Any suggestions? Thanks Robert From ke.han at redstarling.com Wed Mar 8 21:42:40 2006 From: ke.han at redstarling.com (ke han) Date: Thu, 9 Mar 2006 05:42:40 +0800 Subject: [TxMt] bracket matching feature?? Message-ID: <93C40B54-58A2-40B2-BF31-E29C2D507214@redstarling.com> I have playing with TextMate for about a week and don't seem to find a "bracket" matching feature. Example, when I double click on a { or [ or (, the match closure is found and all code in between is highlighted. Or something to that effect. I have seen other editors simply highlight both the begin and end characters when the cursor is on one of them. Am I missing something obvious or does this not exist? thanks, ke han From throw-away-1 at macromates.com Wed Mar 8 21:51:18 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 22:51:18 +0100 Subject: [TxMt] Problem with 1.5 and require_cmd/CocoaDialog In-Reply-To: References: Message-ID: On 8/3/2006, at 22:22, Jonathan Prettyman wrote: > Is there something broken with my install I can fix? Check Preferences -> Advanced -> Shell Variables. If you have a BASH_ENV here, then it must go! If not, try to type ?env? in a new document and follow that by ctrl- R, this will dump the environment, which should help debug the issue. Before pasting the result of this, be sure to check it for potential ?secret? information (e.g. if you?ve setup MYSQL_PASSWD or similar). From throw-away-1 at macromates.com Wed Mar 8 21:52:23 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 22:52:23 +0100 Subject: [TxMt] bracket matching feature?? In-Reply-To: <93C40B54-58A2-40B2-BF31-E29C2D507214@redstarling.com> References: <93C40B54-58A2-40B2-BF31-E29C2D507214@redstarling.com> Message-ID: <2CDBAC43-0692-496E-B523-D41E88DB33BF@macromates.com> On 8/3/2006, at 22:42, ke han wrote: > I have playing with TextMate for about a week and don't seem to > find a "bracket" matching feature. Currently the only thing is Edit -> Select -> Enclosing Brackets (shift-cmd B) From throw-away-1 at macromates.com Wed Mar 8 22:09:06 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 23:09:06 +0100 Subject: [TxMt] interpreter failed: No such file or directory (add Comment error) In-Reply-To: <20060308135259.716390.48001a6f@solidether.net> References: <20060306133240.119154.447474fd@solidether.net> <4FC8251A-6FEB-4231-8E0B-98406C40C4DB@macromates.com> <20060307182111.616769.a91a1f10@solidether.net> <00301548-8FEF-4F67-9C59-69C1BEF2241D@macromates.com> <20060308135259.716390.48001a6f@solidether.net> Message-ID: On 8/3/2006, at 19:52, Daniel Jewett wrote: >> Yes -- could you try e.g. HTML -> Convert Selection to Entities? This >> is also a Ruby script started similiar to the Toggle Comment. > That command works like a charm. Maybe I'm looking at "time to clean > out preferences and reinstall?" I don?t see this as preferences related. Basically TM just calls execve() with the interpreter specified in the script, and it is this function which fails. No preferences should affect it. However, could you verify that the first line of the script actually has: #!/usr/bin/env ruby The script can be found via Window -> Show Bundle Editor, and then opening the Source bundle and clicking the Comment Line / Selection item. You may want to try and change it, to see if this also gives an (interpreter) error: #!/usr/bin/ruby From jon.kellyst at mac.com Wed Mar 8 22:21:11 2006 From: jon.kellyst at mac.com (jon.kellyst at mac.com) Date: Wed, 8 Mar 2006 14:21:11 -0800 Subject: [TxMt] Problem with 1.5 and require_cmd/CocoaDialog In-Reply-To: References: Message-ID: <13A7E528-B454-428D-90C9-D85DCE0A9CE5@mac.com> On Mar 8, 2006, at 1:51 PM, Allan Odgaard wrote: > On 8/3/2006, at 22:22, Jonathan Prettyman wrote: > >> Is there something broken with my install I can fix? > > Check Preferences -> Advanced -> Shell Variables. > > If you have a BASH_ENV here, then it must go! > So I had that set up to point to my bash_profile. Taking that away makes it so I don't get my PATH set up right (/opt/local/bin...) It also seems to not make a difference, I still get /bin/bash: line 1: require_cmd: command not found > If not, try to type ?env? in a new document and follow that by ctrl- > R, this will dump the environment, which should help debug the issue. > > Before pasting the result of this, be sure to check it for > potential ?secret? information (e.g. if you?ve setup MYSQL_PASSWD > or similar). > TM_ORGANIZATION_NAME=Socialtext SHELL=/bin/bash TM_LINE_INDEX=3 TM_MODE=Plain Text TM_SCOPE=text.plain USER=jjp TM_COLUMNS=107 TM_SELECTED_TEXT=env __CF_USER_TEXT_ENCODING=0x1F5:0:0 TM_CURRENT_LINE=env PATH=/usr/bin:/bin:/usr/sbin:/sbin TM_COLUMN_NUMBER=4 PWD=/private/var/tmp/folders.501/TemporaryItems TM_SUPPORT_PATH=/Applications/TextMate.app/Contents/SharedSupport/ Support SHLVL=2 HOME=/Users/jjp LC_CTYPE=en_US.UTF-8 TM_CURRENT_WORD=env TM_SOFT_TABS=NO TM_LINE_NUMBER=1 TM_TAB_SIZE=4 _=/usr/bin/env -jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon.kellyst at mac.com Wed Mar 8 22:31:20 2006 From: jon.kellyst at mac.com (jon.kellyst at mac.com) Date: Wed, 8 Mar 2006 14:31:20 -0800 Subject: [TxMt] Problem with 1.5 and require_cmd/CocoaDialog In-Reply-To: <13A7E528-B454-428D-90C9-D85DCE0A9CE5@mac.com> References: <13A7E528-B454-428D-90C9-D85DCE0A9CE5@mac.com> Message-ID: On Mar 8, 2006, at 2:21 PM, jon.kellyst at mac.com wrote: > > On Mar 8, 2006, at 1:51 PM, Allan Odgaard wrote: > >> On 8/3/2006, at 22:22, Jonathan Prettyman wrote: >> >>> Is there something broken with my install I can fix? >> >> Check Preferences -> Advanced -> Shell Variables. >> >> If you have a BASH_ENV here, then it must go! > It turns out I was was unchecking the BASH_ENV item in the Shell Variables list. Actually DELETING made everything work much better. Thanks for the help! -jon From throw-away-1 at macromates.com Wed Mar 8 22:31:29 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 23:31:29 +0100 Subject: [TxMt] Problem with 1.5 and require_cmd/CocoaDialog In-Reply-To: <13A7E528-B454-428D-90C9-D85DCE0A9CE5@mac.com> References: <13A7E528-B454-428D-90C9-D85DCE0A9CE5@mac.com> Message-ID: On 8/3/2006, at 23:21, jon.kellyst at mac.com wrote: >> Check Preferences -> Advanced -> Shell Variables. >> >> If you have a BASH_ENV here, then it must go! > So I had that set up to point to my bash_profile. Taking that away > makes it so I don't get my PATH set up right (/opt/local/bin...) See http://macromates.com/textmate/manual/shell_commands#search_path From the environment dump, it is clear that bash_init.sh is still not being executed. TextMate would set BASH_ENV to this file, unless the user has his own setting for BASH_ENV. Could you verify that the file is on your system, e.g.: ls -l "$TM_SUPPORT_PATH/lib/bash_init.sh" Though interestingly the BASH_ENV variable is _NOT_ present in the environment dump you pasted. Could there be something funky going on with your shell? From throw-away-1 at macromates.com Wed Mar 8 22:49:53 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 8 Mar 2006 23:49:53 +0100 Subject: Re(2): [TxMt] excluding match from language pattern In-Reply-To: <20060308081006.11212@one.strangecode.com> References: <20060306075526.7334@one.strangecode.com> <5723152D-6B9F-4560-92E3-288C74E562AD@macromates.com> <20060308081006.11212@one.strangecode.com> Message-ID: <8093AA9A-4EA7-4ED8-AFD7-03E71B89D59C@macromates.com> On 8/3/2006, at 9:10, Quinn Comendant wrote: > Problem 1: The SQL is treated as a double quoted string, which it is, > but I want source.sql.embedded to override string.quoted.double.php. I > added contentName = 'source.sql.embedded'; and now it works. So no problem, I presume? > Problem 2: $foo should be variable.other.php. Ok, I think I know > how to > do this, using captures, right? Or maybe even better would be to > use { > include = '#var_basic'; }? Nope, none of those work. Yes, I believe my example did use a capture to name it. > Problem 3: '" . $this->bar() . "' should be source.php but instead it > considers it a string.quoted.single.php I would think it is: string.quoted.single.sql This is because the ' starts a single quoted string in SQL. You will need a rule to override that, likely only when next character is a ". > What does it mean to use a pattern with only a "match" statement? That this pattern is matched against the text, and if it does match, the name of the rule is assigned to that portion of the text (and the text is not matched by other rules afterwards). > What is "\\."? That?s the regular expression to match a backslash followed by any character. This is for things like: "this \"is\" a string" Here \\. will match the two \", so that the " there won?t end the string. > But there is a problem with this solution: it doesn't allow for > single-quoted strings > here, for example if '$foo' needs to be 'foo'. Not sure what this refers to, but if it lack a match, add it ;) > [...] Unrelated question: what is "swallow"? It seems to be > undocumented. http://lists.macromates.com/pipermail/textmate/2006-February/008692.html From dan at solidether.net Thu Mar 9 01:42:21 2006 From: dan at solidether.net (Daniel Jewett) Date: Wed, 08 Mar 2006 20:42:21 -0500 Subject: [TxMt] interpreter failed: No such file or directory (add Comment error) In-Reply-To: References: <20060306133240.119154.447474fd@solidether.net> <4FC8251A-6FEB-4231-8E0B-98406C40C4DB@macromates.com> <20060307182111.616769.a91a1f10@solidether.net> <00301548-8FEF-4F67-9C59-69C1BEF2241D@macromates.com> <20060308135259.716390.48001a6f@solidether.net> Message-ID: <20060308204221.786482.60e0645e@solidether.net> On Wed, 8 Mar 2006 23:09:06 +0100, Allan Odgaard wrote this well considered message: > I don?t see this as preferences related. Basically TM just calls > execve() with the interpreter specified in the script, and it is this > function which fails. No preferences should affect it. > > However, could you verify that the first line of the script actually has: > > #!/usr/bin/env ruby > > The script can be found via Window -> Show Bundle Editor, and then > opening the Source bundle and clicking the Comment Line / Selection > item. > > You may want to try and change it, to see if this also gives an > (interpreter) error: > > #!/usr/bin/ruby Allan, I just want to say thanks for following through on this for me. I am somewhat chagrined to report that the shebang line was in fact, #!/opt/local/bin/ruby which must have been left from when I was using Darwin Ports. And which I must have changed my very own self. Ouch. I apologize for taking so much of your time, but again, I really appreciate your help. Regards, Dan J. ======================= Daniel Jewett Solid Ether 22 Church St. Tarrytown, NY 10591 ph: (914) 332-7513 dan at solidether.net http://www.solidether.net From yvon_thoraval at mac.com Thu Mar 9 07:51:21 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Thu, 9 Mar 2006 08:51:21 +0100 Subject: [TxMt] TextMate Ruby and dependancies Message-ID: <97357CC6-DAB6-415D-AC22-872AF6000DC8@mac.com> Hey all, i'd like using, from TextMate, ruby scripts making use of : require 'xml/libxml' for the time being i get an error : LoadError: no such file to load -- xml/libxml i think i could be coming from $LOAD_PATH (for ruby) not set-up correctly. i did a ~/.MacOSX/environment.plist with only the PATH assigned. does i need to add something equivalent to : export RUBYOPT=-rrubygems export GEM_HOME=/opt/local/lib/ruby/gems/1.8 being in my zsh init. or all of those kind of setup could be done thru TextMate setup, but how ? obviously my script making use of libxml binder is working from terminal. best, Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From jh398 at doc.ic.ac.uk Thu Mar 9 14:38:34 2006 From: jh398 at doc.ic.ac.uk (Jeffrey Hau) Date: Thu, 9 Mar 2006 14:38:34 +0000 Subject: [TxMt] problem with generic complete in latex bundle Message-ID: Hi, when i tried to run generic complete in a latex file (to complete a \ref) I get the following inserted, \ref{/bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or directory } can anyone help? many thanks Jeff From throw-away-1 at macromates.com Thu Mar 9 14:43:33 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 9 Mar 2006 15:43:33 +0100 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: References: Message-ID: <090F9F96-3794-484B-9A1E-1C7FDE700EB6@macromates.com> On 9/3/2006, at 15:38, Jeffrey Hau wrote: > \ref{/bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or > directory http://lists.macromates.com/pipermail/textmate/2006-January/007942.html From throw-away-1 at macromates.com Thu Mar 9 14:45:30 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 9 Mar 2006 15:45:30 +0100 Subject: [TxMt] TextMate Ruby and dependancies In-Reply-To: <97357CC6-DAB6-415D-AC22-872AF6000DC8@mac.com> References: <97357CC6-DAB6-415D-AC22-872AF6000DC8@mac.com> Message-ID: <3E5BD0FC-3BC9-4009-A67F-08020EDAFD38@macromates.com> On 9/3/2006, at 8:51, Yvon Thoraval wrote: > [...] does i need to add something equivalent to : > > export RUBYOPT=-rrubygems > export GEM_HOME=/opt/local/lib/ruby/gems/1.8 > > being in my zsh init. Yes, but add it to your ~/.bash_profile or similar (see [1] for what TM sources when running commands). > or all of those kind of setup could be done thru TextMate setup, > but how ? You could also add them to Preferences -> Advanced -> Shell Variables. [1] http://macromates.com/textmate/manual/shell_commands#search_path From cskiadas at uchicago.edu Thu Mar 9 14:48:25 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Thu, 9 Mar 2006 08:48:25 -0600 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: References: Message-ID: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> The generic complete is not supported anymore, and has been removed from the recent version of the bundle. I would recommend checking out the latest version from the subversion repository (http:// www.macromates.com/textmate/manual/bundles#getting_more_bundles), and using the "Enhanced Insert Label..." command instead, for the ref completing. You can also simply press esc inside the \ref{ if you already have typed the first couple of letters from the citekey, it works just like regular word completion. Let us know if there is some completion functionality that you feel is missing from the bundle. On Mar 9, 2006, at 8:38 AM, Jeffrey Hau wrote: > Hi, > when i tried to run generic complete in a latex file (to complete a > \ref) I get the following inserted, > > \ref{/bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or > directory > } > > can anyone help? > > many thanks > > Jeff Haris From throw-away-1 at macromates.com Thu Mar 9 15:00:38 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 9 Mar 2006 16:00:38 +0100 Subject: [TxMt] Tracking and resolving dependencies In-Reply-To: <887236BF-73EB-45A8-9AF0-6725781CF973@possibilityengine.com> References: <887236BF-73EB-45A8-9AF0-6725781CF973@possibilityengine.com> Message-ID: <9E1EAECC-98D3-45CA-BC78-B097F53B494B@macromates.com> On 8/3/2006, at 3:26, Eric O'Brien wrote: > I'm interested if there is a way or technique (or even "trick") > that will allow me to track and resolve naming dependencies in a > TextMate project. I don?t think this has come up yet. So no public tricks for that. > [...] I'm not programming in C or the like, but it seems to me that > a similar situation could occur there: Say that for some reason > you change the name of an include or header file... you'll be into > a real mess if you don't detect all the locations in the code where > that file is referenced and change it! OR... if you change a > variable name for some reason, references to that name will need to > be changed (even though we aren't changing a FILE name in that case). Changing the name of an include happens close to never for me. When it does, a find in project is just as fast (if not faster) as invocating some custom UI for this (having it auto do it would trigger a lot of false positives). As for renaming variables and stuff, that?s called refactoring, and various Java IDEs are known for their good refactoring support. But this requires a language parser, and I have never heard of refactoring tools for e.g. C++, likely because it is anything but trivial. I think Ruby developers comming from Java initially ask for refactoring tools, and then they later realize that they do not need them, now that they have escaped the boilerplate and manifest typing of Java ;) Without knowing what and how you develop, but renaming files often and linking to them from many places, sounds like a bad idea, especially if this is for the web (and you are not using some URL- rewriting scheme). I have written lots of things in the past which link to articles and documentation at developer.apple.com, today majority of these links are broken (and so I would assume is a lot of bookmarks) because Apple apparently didn?t read ?Cool URIs don?t change? [1]. [1] http://www.w3.org/Provider/Style/URI From dsmiley at mitre.org Tue Mar 7 22:51:25 2006 From: dsmiley at mitre.org (David Smiley) Date: Tue, 07 Mar 2006 17:51:25 -0500 Subject: [TxMt] hint: documentation popup with ruby on rails development Message-ID: I've been using TextMate for Ruby on Rails development for over a month now. One thing I missed from some Java IDEs was documentation popup. With TextMate, you can hit control-H on a symbol and the Ruby bundle will use `ri` to try to find it. Sometimes it works, sometimes not. However, Ruby gems (such as Rails) are not processed for use by ri. To do that, you have to do it manually. I performed the following this task with just one command on the terminal: rdoc --ri-site /usr/local/lib/ruby/gems/1.8/gems/act*/lib The '*' will expand to all of the active... action... stuff that is for rails. Once this completes (which will take a few minutes), you can finally use control-H for rails related classes and methods and get quick access to documentation. Sweet! Oh, for some caveats on this technique, check out this URL: http://www.codecomments.com/archive327-2005-5-510886.html So basically this technique isn't perfect but it's better than before. ~ Dave Smiley From jh398 at doc.ic.ac.uk Thu Mar 9 15:03:48 2006 From: jh398 at doc.ic.ac.uk (Jeffrey Hau) Date: Thu, 9 Mar 2006 15:03:48 +0000 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> References: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> Message-ID: <26158A35-BA29-48FE-A691-6434E5E31198@doc.ic.ac.uk> Hi, I have just installed the latest version, my test file is \lable{test-lable \ref{} when i tried the "enhanced insert label.." (option esc) nothing happens, if i tried pressing just esc (with \ref{te} ), then i get the following error inserted \ref{tein/bash: line 1: /Applications/TextMate.app/Contents/ SharedSupport/Support/bin/LatexLabelCompletions.rb: No such file or directory} when i tried the enhanced insert label for \cite, 2 options come up: BibDeskCompletion and Bibliography Completion, but when i click on them, neither works (nothing happens, like for \ref), and I have set the TM_LATEX_BIB variable. many thanks for your help Jeff On 9 Mar 2006, at 14:48, Charilaos Skiadas wrote: > The generic complete is not supported anymore, and has been removed > from the recent version of the bundle. I would recommend checking > out the latest version from the subversion repository (http:// > www.macromates.com/textmate/manual/bundles#getting_more_bundles), > and using the "Enhanced Insert Label..." command instead, for the > ref completing. You can also simply press esc inside the \ref{ if > you already have typed the first couple of letters from the > citekey, it works just like regular word completion. > Let us know if there is some completion functionality that you feel > is missing from the bundle. > On Mar 9, 2006, at 8:38 AM, Jeffrey Hau wrote: > >> Hi, >> when i tried to run generic complete in a latex file (to complete >> a \ref) I get the following inserted, >> >> \ref{/bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or >> directory >> } >> >> can anyone help? >> >> many thanks >> >> Jeff > Haris > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From cskiadas at uchicago.edu Thu Mar 9 15:08:40 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Thu, 9 Mar 2006 09:08:40 -0600 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: <26158A35-BA29-48FE-A691-6434E5E31198@doc.ic.ac.uk> References: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> <26158A35-BA29-48FE-A691-6434E5E31198@doc.ic.ac.uk> Message-ID: On Mar 9, 2006, at 9:03 AM, Jeffrey Hau wrote: > Hi, > I have just installed the latest version, > > my test file is > > \lable{test-lable > \ref{} > > when i tried the "enhanced insert label.." (option esc) nothing > happens, if i tried pressing just esc (with \ref{te} ), then i get > the following error inserted > > \ref{tein/bash: line 1: /Applications/TextMate.app/Contents/ > SharedSupport/Support/bin/LatexLabelCompletions.rb: No such file or > directory} I'm terribly sorry, I forgot to mention: You need to also update from the repository the directory TextMate/Support This is the global support directory, and inside its bin subdirectory contains the LatexLabelCompletions.rb script, along with a couple more scripts necessary for these completions. For some technical reasons, these files could not have been put inside the LaTeX bundle. > when i tried the enhanced insert label for \cite, 2 options come > up: BibDeskCompletion and Bibliography Completion, but when i click > on them, neither works (nothing happens, like for \ref), and I have > set the TM_LATEX_BIB variable. These should work once you update the support directory. Let me know if they still don't. > many thanks for your help > > Jeff Haris From jh398 at doc.ic.ac.uk Thu Mar 9 15:20:11 2006 From: jh398 at doc.ic.ac.uk (Jeffrey Hau) Date: Thu, 9 Mar 2006 15:20:11 +0000 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: References: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> <26158A35-BA29-48FE-A691-6434E5E31198@doc.ic.ac.uk> Message-ID: <9B53D5D6-8FA7-4365-90AF-1F19C3FA078F@doc.ic.ac.uk> Hi Haris, Thanks for you quick reply. I am not sure how to update the TextMate/Support directory, do i just run "svn update http://macromates.com/svn/Bundles/trunk/Support/" in the directory "/Applications/TextMate.app/Contents/SharedSupport/Support"? or do I need to run ""svn co http://macromates.com/svn/Bundles/trunk/ Support/" many thanks Jeff On 9 Mar 2006, at 15:08, Charilaos Skiadas wrote: > On Mar 9, 2006, at 9:03 AM, Jeffrey Hau wrote: > >> Hi, >> I have just installed the latest version, >> >> my test file is >> >> \lable{test-lable >> \ref{} >> >> when i tried the "enhanced insert label.." (option esc) nothing >> happens, if i tried pressing just esc (with \ref{te} ), then i get >> the following error inserted >> >> \ref{tein/bash: line 1: /Applications/TextMate.app/Contents/ >> SharedSupport/Support/bin/LatexLabelCompletions.rb: No such file >> or directory} > > I'm terribly sorry, I forgot to mention: You need to also update > from the repository the directory TextMate/Support > This is the global support directory, and inside its bin > subdirectory contains the LatexLabelCompletions.rb script, along > with a couple more scripts necessary for these completions. For > some technical reasons, these files could not have been put inside > the LaTeX bundle. > >> when i tried the enhanced insert label for \cite, 2 options come >> up: BibDeskCompletion and Bibliography Completion, but when i >> click on them, neither works (nothing happens, like for \ref), and >> I have set the TM_LATEX_BIB variable. > > These should work once you update the support directory. Let me > know if they still don't. > >> many thanks for your help >> >> Jeff > > Haris > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From cskiadas at uchicago.edu Thu Mar 9 15:30:52 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Thu, 9 Mar 2006 09:30:52 -0600 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: <9B53D5D6-8FA7-4365-90AF-1F19C3FA078F@doc.ic.ac.uk> References: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> <26158A35-BA29-48FE-A691-6434E5E31198@doc.ic.ac.uk> <9B53D5D6-8FA7-4365-90AF-1F19C3FA078F@doc.ic.ac.uk> Message-ID: Hey Jeff, On Mar 9, 2006, at 9:20 AM, Jeffrey Hau wrote: > Hi Haris, > Thanks for you quick reply. > I am not sure how to update the TextMate/Support directory, do i > just run > > "svn update http://macromates.com/svn/Bundles/trunk/Support/" in > the directory "/Applications/TextMate.app/Contents/SharedSupport/ > Support"? > depending on where you have checked out your bundles, this support directory should be on a similar level. For instance, in my case the bundles are in: ~/Library/Application Support/TextMate/Bundles more typically, they are supposed to be in /Library... if you have admin access. The global support directory should then be ~/Library/Application Support/TextMate/Support I'm guessing you should either do svn up from within that directory, if you already have checked it out in the past, or else do "svn co http://macromates.com/svn/Bundles/trunk/Support/" from either this directory if you create it, or its parent. I'm afraid I can't remember if this svn co will create a Support folder for you at your current location or not. Probably Allan or someone else can confirm that. > or do I need to run ""svn co http://macromates.com/svn/Bundles/ > trunk/Support/" > > many thanks > > Jeff Haris From jh398 at doc.ic.ac.uk Thu Mar 9 15:39:40 2006 From: jh398 at doc.ic.ac.uk (Jeffrey Hau) Date: Thu, 9 Mar 2006 15:39:40 +0000 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: References: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> <26158A35-BA29-48FE-A691-6434E5E31198@doc.ic.ac.uk> <9B53D5D6-8FA7-4365-90AF-1F19C3FA078F@doc.ic.ac.uk> Message-ID: <827E7CF4-1D51-417E-8E8D-B4978B150F2D@doc.ic.ac.uk> Thanks so much, it all works now! I checked out the Support directory into /Library/Application Support/ TextMate, where my bundles were checked out. Only been playing around with TextMate since this morning and I am already a convert :) Jeff On 9 Mar 2006, at 15:30, Charilaos Skiadas wrote: > Hey Jeff, > On Mar 9, 2006, at 9:20 AM, Jeffrey Hau wrote: > >> Hi Haris, >> Thanks for you quick reply. >> I am not sure how to update the TextMate/Support directory, do i >> just run >> >> "svn update http://macromates.com/svn/Bundles/trunk/Support/" in >> the directory "/Applications/TextMate.app/Contents/SharedSupport/ >> Support"? >> > depending on where you have checked out your bundles, this support > directory should be on a similar level. For instance, in my case > the bundles are in: > ~/Library/Application Support/TextMate/Bundles > more typically, they are supposed to be in /Library... if you have > admin access. > The global support directory should then be ~/Library/Application > Support/TextMate/Support > I'm guessing you should either do svn up from within that > directory, if you already have checked it out in the past, or else do > "svn co http://macromates.com/svn/Bundles/trunk/Support/" from > either this directory if you create it, or its parent. I'm afraid I > can't remember if this svn co will create a Support folder for you > at your current location or not. Probably Allan or someone else can > confirm that. >> or do I need to run ""svn co http://macromates.com/svn/Bundles/ >> trunk/Support/" >> >> many thanks >> >> Jeff > > Haris > > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From cskiadas at uchicago.edu Thu Mar 9 15:45:24 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Thu, 9 Mar 2006 09:45:24 -0600 Subject: [TxMt] problem with generic complete in latex bundle In-Reply-To: <827E7CF4-1D51-417E-8E8D-B4978B150F2D@doc.ic.ac.uk> References: <5742FA60-CC30-445D-9694-41C7235B5C67@uchicago.edu> <26158A35-BA29-48FE-A691-6434E5E31198@doc.ic.ac.uk> <9B53D5D6-8FA7-4365-90AF-1F19C3FA078F@doc.ic.ac.uk> <827E7CF4-1D51-417E-8E8D-B4978B150F2D@doc.ic.ac.uk> Message-ID: <814305D4-B83A-40D4-8F59-5FEFC79BEDAA@uchicago.edu> On Mar 9, 2006, at 9:39 AM, Jeffrey Hau wrote: > Only been playing around with TextMate since this morning and I am > already a convert :) > heh, that's about how much it took me too :) Soon enough you'll be creating your own bundles :) Glad everything works out now. Let me know in which ways the LaTeX bundle could be improved. > Jeff > Haris -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvon_thoraval at mac.com Thu Mar 9 15:52:59 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Thu, 9 Mar 2006 16:52:59 +0100 Subject: [TxMt] TextMate Ruby and dependancies In-Reply-To: <3E5BD0FC-3BC9-4009-A67F-08020EDAFD38@macromates.com> References: <97357CC6-DAB6-415D-AC22-872AF6000DC8@mac.com> <3E5BD0FC-3BC9-4009-A67F-08020EDAFD38@macromates.com> Message-ID: <35033013-13FD-4054-9152-DCC4AA1EA85F@mac.com> Le 9 mars 06 ? 15:45, Allan Odgaard a ?crit : > Yes, but add it to your ~/.bash_profile or similar (see [1] for > what TM sources when running commands). > >> or all of those kind of setup could be done thru TextMate setup, >> but how ? > > You could also add them to Preferences -> Advanced -> Shell Variables. > > > [1] http://macromates.com/textmate/manual/shell_commands#search_path > ok, thanks, i had read that page and, because i'm using a shebang : #!/usr/bin/env ruby i've augmented the ~/.MacOSX/environment.plist having the content : ~%> cat ~/.MacOSX/environment.plist GEM_HOME /opt/local/lib/ruby/gems/1.8 GROOVY_HOME /Users/yvon/bin/groovy HTML_TIDY /Users/yvon/.tidy.rc LC_CTYPE en_US.UTF-8 OSXANT_HOME /Users/yvon/bin/OSXAnt PATH /opt/local/bin:/usr/local/bin:/usr/local/mysql/bin:/ bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/Users/yvon/bin:/ Developer/qt/bin:/usr/local/pgsql/bin:/Users/yvon/bin/groovy/bin RUBYOPT -rrubygems i've also added a ~/.bash_profile having : [ -f /etc/profile ] && . /etc/profile [ -f ~/.bashrc ] && . ~/.bashrc export PATH="/opt/local/bin:/usr/local/bin:/usr/local/mysql/bin:/bin:/ usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/Users/yvon/bin:/usr/local/ pgsql/bin:/Users/yvon/bin/groovy/bin:$PATH" export RUBYOPT="-rrubygems" export GEM_HOME="/opt/local/lib/ruby/gems/1.8" and finally set the TextMate preferences : TM_RUBY /opt/local/bin/ruby RUBYOPT -rrubygems GEM_HOME /opt/local/lib/ruby/gems/1.8 i've tested with a simple script ("try.rb") : #!/usr/bin/env ruby p "#{GEM_HOME}" i get : NameError: uninitialized constant GEM_HOME at top level in try.rb at line 3 the same arroses with the constant TM_RUBY however, changing the above script content to : which_ruby=`which ruby`.chomp p "#{which_ruby}" p $LOAD_PATH i get the correct ruby (dp install) and the correct LOAD_PATH best, Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglist at pornel.net Thu Mar 9 17:07:53 2006 From: mailinglist at pornel.net (porneL) Date: Thu, 09 Mar 2006 17:07:53 -0000 Subject: [TxMt] Key shortcut to jump between matching pairs? Message-ID: On various Windows editrors I can use Cltr+[ to jump beetween mathching pairs of braces and parens. Is there such function in TM? I haven't found it in menu and built-in help. BTW: is it possible to re-assign Cmd+[ to tab? (only if some text is selected, ofcourse) -- regards, porneL From throw-away-1 at macromates.com Thu Mar 9 17:26:54 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 9 Mar 2006 18:26:54 +0100 Subject: [TxMt] TextMate Ruby and dependancies In-Reply-To: <35033013-13FD-4054-9152-DCC4AA1EA85F@mac.com> References: <97357CC6-DAB6-415D-AC22-872AF6000DC8@mac.com> <3E5BD0FC-3BC9-4009-A67F-08020EDAFD38@macromates.com> <35033013-13FD-4054-9152-DCC4AA1EA85F@mac.com> Message-ID: On 9/3/2006, at 16:52, Yvon Thoraval wrote: > i've tested with a simple script ("try.rb") : > #!/usr/bin/env ruby > > p "#{GEM_HOME}" This should be: p ENV['GEM_HOME'] From throw-away-1 at macromates.com Thu Mar 9 17:28:49 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 9 Mar 2006 18:28:49 +0100 Subject: [TxMt] Key shortcut to jump between matching pairs? In-Reply-To: References: Message-ID: On 9/3/2006, at 18:07, porneL wrote: > Is there such function in TM? I haven't found it in menu and built- > in help. http://lists.macromates.com/pipermail/textmate/2006-March/008929.html > BTW: is it possible to re-assign Cmd+[ to tab? (only if some text > is selected, ofcourse) http://lists.macromates.com/pipermail/textmate/2005-October/006391.html From yvon_thoraval at mac.com Thu Mar 9 17:43:21 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Thu, 9 Mar 2006 18:43:21 +0100 Subject: [TxMt] TextMate Ruby and dependancies In-Reply-To: References: <97357CC6-DAB6-415D-AC22-872AF6000DC8@mac.com> <3E5BD0FC-3BC9-4009-A67F-08020EDAFD38@macromates.com> <35033013-13FD-4054-9152-DCC4AA1EA85F@mac.com> Message-ID: <3D16F0F7-6D84-41FA-A0A1-66AD1A7ABAF9@mac.com> Le 9 mars 06 ? 18:26, Allan Odgaard a ?crit : > This should be: > > p ENV['GEM_HOME'] ok fine ! sorry for the noise ;-) Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglist at pornel.net Thu Mar 9 18:08:16 2006 From: mailinglist at pornel.net (porneL) Date: Thu, 09 Mar 2006 18:08:16 -0000 Subject: [TxMt] Key shortcut to jump between matching pairs? In-Reply-To: References: Message-ID: On Thu, 09 Mar 2006 17:28:49 -0000, Allan Odgaard wrote: >> Is there such function in TM? I haven't found it in menu and built-in >> help. > > http://lists.macromates.com/pipermail/textmate/2006-March/008929.html Oh, that's too bad, because cmd+shift+B is not good for navigation around document. Any plans on implementing simple jump? >> BTW: is it possible to re-assign Cmd+[ to tab? (only if some text is >> selected, ofcourse) > > http://lists.macromates.com/pipermail/textmate/2005-October/006391.html I've never had need for overtyping selection with tab. Can you add option to use simple shortcut? -- regards, porneL From cryo at cyanite.org Thu Mar 9 21:55:58 2006 From: cryo at cyanite.org (Sune Foldager) Date: Thu, 9 Mar 2006 22:55:58 +0100 Subject: [TxMt] Key shortcut to jump between matching pairs? In-Reply-To: References: Message-ID: On 09/03/2006, at 19:08, porneL wrote: > I've never had need for overtyping selection with tab. Can you add > option to use simple shortcut? It's actually pretty easy to get used to, especially opt-tab and opt- shift-tab, IMO. Now it's actually annoying for me when I use other editors that have the 'standard' behaviour :/. -- Sune. From drdrang at gmail.com Thu Mar 9 23:20:09 2006 From: drdrang at gmail.com (Dr. Drang) Date: Thu, 9 Mar 2006 17:20:09 -0600 Subject: [TxMt] Getting to end of selection in macro Message-ID: <5D618915-409B-483B-A636-57545140043C@gmail.com> I am working on an macro in which the selected text will be filtered through one command and then all the text after the selection will be filtered through another command. After the first command is finished, the transformed text is selected, and I need to deselect it and put the caret immediately after it. I had thought that hitting the right arrow key would do the trick, but found out [that doesn't always work][1]. Is there a foolproof way of getting the caret to land right after the selection? And while I'm asking questions, two more: 1. Is there a way for a command to call a macro? 2. Can a macro be made to behave differently depending on whether text is selected or not? [1]: http://lists.macromates.com/pipermail/textmate/2006-March/ 008901.html -- Dr. Drang From tsigo at tsigo.org Fri Mar 10 09:18:55 2006 From: tsigo at tsigo.org (Robert Speicher) Date: Fri, 10 Mar 2006 04:18:55 -0500 (EST) Subject: [TxMt] Key shortcut to jump between matching pairs? In-Reply-To: References: Message-ID: <4036.192.168.0.2.1141982335.squirrel@tsigo> On Thu, March 9, 2006 12:28 pm, Allan Odgaard wrote: > On 9/3/2006, at 18:07, porneL wrote: > >> BTW: is it possible to re-assign Cmd+[ to tab? (only if some text >> is selected, ofcourse) > > http://lists.macromates.com/pipermail/textmate/2005-October/006391.html > This may be slightly off-topic, but why is it that when I un-indent something, it drops to the next line automatically? Often I want to unindent but continue typing on the same line. Is there a way to disable this behavior? It's one of the few quirks that really frustrate me. Rob From throw-away-1 at macromates.com Fri Mar 10 15:27:01 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 10 Mar 2006 16:27:01 +0100 Subject: [TxMt] Key shortcut to jump between matching pairs? In-Reply-To: <4036.192.168.0.2.1141982335.squirrel@tsigo> References: <4036.192.168.0.2.1141982335.squirrel@tsigo> Message-ID: <9363C025-A79A-41E8-BCB9-4CC1BBE0161B@macromates.com> On 10/3/2006, at 10:18, Robert Speicher wrote: > This may be slightly off-topic, but why is it that when I un-indent > something, it drops to the next line automatically? http://lists.macromates.com/pipermail/textmate/2005-November/006454.html From ray at needmoredesigns.com Fri Mar 10 18:41:37 2006 From: ray at needmoredesigns.com (Raymond Brigleb) Date: Fri, 10 Mar 2006 10:41:37 -0800 Subject: [TxMt] Using TM to View Source in Safari Message-ID: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> My apologies if this has been asked before but I hadn't seen it... Is there a way to use TextMate to View Source in Safari (or any browser for that matter)? Gosh would this be handy, I have a safari plugin that at least shows the source in color, but of course, anything I can do in TextMate is better! Thanks, Ray -- Raymond Brigleb, Needmore Designs http://needmoredesigns.com/ From fredb7 at starflam.com Fri Mar 10 19:26:34 2006 From: fredb7 at starflam.com (Fred B.) Date: Fri, 10 Mar 2006 20:26:34 +0100 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> Message-ID: <642D2288-80EF-4295-8987-76AD6EB89BD0@starflam.com> On 10 Mar 2006, at 19:41, Raymond Brigleb wrote: > My apologies if this has been asked before but I hadn't seen it... > > Is there a way to use TextMate to View Source in Safari (or any > browser for that matter)? Gosh would this be handy, I have a safari > plugin that at least shows the source in color, but of course, > anything I can do in TextMate is better! > > Thanks, > Ray > -- Here is mine for Safari. Put it in "~/Library/Scripts/Applications/Safari" to use it from script menu. (Btw, Fastscript[1] is a replacement for the Script menu that add keyboard shortcuts, there's a free lite version.) Or you can launch it with Quickeys, QuickSilver, LaunchBar, etc. Camino and Firefox are totally different when it comes to applescript... [1]http://www.red-sweater.com/fastscripts/index.html -- Fred -------------- next part -------------- A non-text attachment was scrubbed... Name: Source2TM.scpt Type: application/octet-stream Size: 16874 bytes Desc: not available URL: From m.kalderon at ucl.ac.uk Fri Mar 10 19:43:12 2006 From: m.kalderon at ucl.ac.uk (Mark Eli Kalderon) Date: Fri, 10 Mar 2006 19:43:12 +0000 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> Message-ID: <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> On 10 Mar 2006, at 18:41, Raymond Brigleb wrote: > My apologies if this has been asked before but I hadn't seen it... > > Is there a way to use TextMate to View Source in Safari (or any > browser for that matter)? Gosh would this be handy, I have a safari > plugin that at least shows the source in color, but of course, > anything I can do in TextMate is better! > > Thanks, > Ray > -- > > Raymond Brigleb, Needmore Designs > http://needmoredesigns.com/ > > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate You can view source in Safari and then use the edit in TextMate command (ctrl-cmd-e). Best, Mark _________________ Mark Eli Kalderon Department of Philosophy University College London Gower Street London WC1E 6BT Dept webpage: http://www.ucl.ac.uk/philosophy Personal wepage: http://www.kalderon.demon.co.uk From thomas.42 at gmail.com Fri Mar 10 22:41:38 2006 From: thomas.42 at gmail.com (thomas Aylott) Date: Fri, 10 Mar 2006 17:41:38 -0500 Subject: [TxMt] Key shortcut to jump between matching pairs? In-Reply-To: References: Message-ID: <37F84686-318A-4BF0-9585-5CCBDCDD411A@gmail.com> There's always the balance jr command ;) http://subtlegradient.com/articles/2006/02/05/my_textmate_bundles_etc That's handle for jumping around you document, kinda' You could always just record a macro to search for anything in between whatever brackets you want. And then map it to a keystroke. On Mar 9, 2006, at 12:07 PM, porneL wrote: > On various Windows editrors I can use Cltr+[ to jump beetween > mathching pairs of braces and parens. > Is there such function in TM? I haven't found it in menu and built- > in help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arav2132 at biz.tiscali.be Fri Mar 10 23:38:05 2006 From: arav2132 at biz.tiscali.be (Alain Ravet) Date: Sat, 11 Mar 2006 00:38:05 +0100 Subject: [TxMt] /bin/bash: ... command not found Message-ID: Hi all, I get this error message with some commands launched by plugins : - the TDDMATE commands - the external syncPEOPLE on Rail commands (ex: rake migrate) - .. AFAIK, my config is standard (PowerBook, Locomotive, EdgeRails, rake 0.7.0) Any idea? Alain From duane.johnson at gmail.com Fri Mar 10 23:57:42 2006 From: duane.johnson at gmail.com (Duane Johnson) Date: Fri, 10 Mar 2006 16:57:42 -0700 Subject: [TxMt] /bin/bash: ... command not found In-Reply-To: References: Message-ID: <62E56B07-8A5F-47C6-90FD-D388BAE908F5@gmail.com> I've had trouble getting Locomotive to work from inside TextMate... mainly because it does some really hairy configuration stuff to the environment in order to accomplish what it does in a "sandbox". I'm working with Ryan Raaum to find a better solution. As for the error, I wonder if 'rake' is not available in the path or on the command line due to the dependence on Locomotive? Duane Johnson (canadaduane) http://blog.inquirylabs.com/ On Mar 10, 2006, at 4:38 PM, Alain Ravet wrote: > Hi all, > > I get this error message with some commands launched by plugins : > - the TDDMATE commands > - the external syncPEOPLE on Rail commands > (ex: rake migrate) > - .. > > AFAIK, my config is standard (PowerBook, Locomotive, EdgeRails, > rake 0.7.0) > Any idea? > > Alain > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From egil at egil.net Sat Mar 11 00:06:10 2006 From: egil at egil.net (Egil Helland) Date: Sat, 11 Mar 2006 01:06:10 +0100 Subject: [TxMt] Restore Function Pop-up while retaining other settings Message-ID: <1B7EC656-BBEB-4E81-80AE-737856E35661@egil.net> I am a recent convert to TextMate, but for some reason (probably me fooling around in the app) I no longer get any content to show up in the Function/Symbol field down to the right in the editor for my PHP and HTML files. Now I just want to restore the default settings for such files - is this possible while still retaining my other settings? If so, could someone point me in the right direction? Cheers, Egil -- egil helland / it consultant (mcse, web technology) web: ikon.as / egil.net mob: +47-91315555 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2355 bytes Desc: not available URL: From arav2132 at biz.tiscali.be Sat Mar 11 09:23:06 2006 From: arav2132 at biz.tiscali.be (Alain Ravet) Date: Sat, 11 Mar 2006 10:23:06 +0100 Subject: [TxMt] Thanks In-Reply-To: <62E56B07-8A5F-47C6-90FD-D388BAE908F5@gmail.com> References: <62E56B07-8A5F-47C6-90FD-D388BAE908F5@gmail.com> Message-ID: Thanks Duane. I'll move this question to the Locomotive thread. Alain Duane Johnson wrote: > I've had trouble getting Locomotive to work from inside TextMate... > mainly because it does some really hairy configuration stuff to the > environment in order to accomplish what it does in a "sandbox". I'm > working with Ryan Raaum to find a better solution. > > As for the error, I wonder if 'rake' is not available in the path or on > the command line due to the dependence on Locomotive? From christian.bogen at fastmail.fm Sat Mar 11 16:01:03 2006 From: christian.bogen at fastmail.fm (Christian Bogen) Date: Sat, 11 Mar 2006 17:01:03 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> Message-ID: <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> Am 08.03.2006 um 20:22 schrieb Geir-Tore Lindsve: > It doesn't seem to by fully optimal though. It varies a lot whether > pdfsync information are included (tried \usepackage{pdfsync} on > several documents with no results, but using it on the article > template works. Some documents doesn't open at all when using > command-b, but works from other manual ways. Weird, but these are > other issues which I'm going to investigate further. I had some issues with TeXniscope and pdfsync, too. TeXniscope seems to have problems if the pdf file name and/or the path to the pdf contains spaces. At least the pdfsync-ability from TeXniscope to TextMate seems to be broken if the path contains spaces. (It still works the other way round in that case, though.) HTH! Christian From cskiadas at uchicago.edu Sat Mar 11 16:16:00 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Sat, 11 Mar 2006 10:16:00 -0600 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> Message-ID: <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> On Mar 11, 2006, at 10:01 AM, Christian Bogen wrote: > I had some issues with TeXniscope and pdfsync, too. TeXniscope > seems to have problems if the pdf file name and/or the path to the > pdf contains spaces. At least the pdfsync-ability from TeXniscope > to TextMate seems to be broken if the path contains spaces. (It > still works the other way round in that case, though.) I thought we had resolved all these issues by using: ~/bin/mate or in general the path to mate as the editor command, and %file -l %line as the editor arguments. Are you having problems with files with spaces under these conditions? > HTH! > > Christian Haris From christian.bogen at fastmail.fm Sat Mar 11 16:28:18 2006 From: christian.bogen at fastmail.fm (Christian Bogen) Date: Sat, 11 Mar 2006 17:28:18 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> Message-ID: <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> Am 11.03.2006 um 17:16 schrieb Charilaos Skiadas: > I thought we had resolved all these issues by using: ~/bin/mate or > in general the path to mate as the editor command, and > %file -l %line > as the editor arguments. Are you having problems with files with > spaces under these conditions? Well, I'm using ?open? as editor command and ?"txmt://open?url=file:// %file&line=%line"? as argument in TeXniscope but I also had tried the mate command (which resides in /usr/local/bin on my system, but surely can't make a difference -- yes, it is included in $PATH in .profile ?) and it made no difference for me. Nothing happened when I command-clicked in TeXniscope if the path and/or file name contains spaces. I suspected that TeXniscope simply doesn't correctly escape the spaces ? Christian From christian.bogen at fastmail.fm Sat Mar 11 16:41:02 2006 From: christian.bogen at fastmail.fm (Christian Bogen) Date: Sat, 11 Mar 2006 17:41:02 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> Message-ID: <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> Am 11.03.2006 um 17:28 schrieb Christian Bogen: > Am 11.03.2006 um 17:16 schrieb Charilaos Skiadas: > >> I thought we had resolved all these issues by using: ~/bin/mate or >> in general the path to mate as the editor command, and >> %file -l %line >> as the editor arguments. Are you having problems with files with >> spaces under these conditions? > > Well, I'm using ?open? as editor command and ?"txmt://open? > url=file://%file&line=%line"? as argument in TeXniscope but I also > had tried the mate command (which resides in /usr/local/bin on my > system, but surely can't make a difference -- yes, it is included > in $PATH in .profile ?) and it made no difference for me. Nothing > happened when I command-clicked in TeXniscope if the path and/or > file name contains spaces. > > I suspected that TeXniscope simply doesn't correctly escape the > spaces ? Addendum: I've just tried it again to be sure (with the /usr/local/ bin/mate and %file -l %line in TeXniscope and it even seems to be broken both ways with a path/file name containing spaces. When I hit ctrl-select-command-o in TextMate focus shifts to TeXniscope but that's about it -- not green marker appears and it doesn't jump to the page. Command-clicking in TeXniscope on the other hand actually produces the error messages ?Warning This document do not have syncronization info.? (Which is a lie! ;) Once I remove the spaces from the directory and file name again, everything works as expected! Chris From cskiadas at uchicago.edu Sat Mar 11 17:16:53 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Sat, 11 Mar 2006 11:16:53 -0600 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> Message-ID: <17E572F4-8EE3-4C94-A540-03648497B33C@uchicago.edu> On Mar 11, 2006, at 10:41 AM, Christian Bogen wrote: >> I suspected that TeXniscope simply doesn't correctly escape the >> spaces ? > > Addendum: I've just tried it again to be sure (with the /usr/local/ > bin/mate and %file -l %line in TeXniscope and it even seems to be > broken both ways with a path/file name containing spaces. When I > hit ctrl-select-command-o in TextMate focus shifts to TeXniscope > but that's about it -- not green marker appears and it doesn't jump > to the page. Command-clicking in TeXniscope on the other hand > actually produces the error messages ?Warning This document do not > have syncronization info.? (Which is a lie! ;) > huh, you are right it is still broken. Not much we can do though I think, other than avoid spaces in the path name of the file. It seems to be in TeXniscope's hands. I emailed the developer, and if we are lucky he might have a workaround to suggest. > > Chris Haris From lindsve at bluezone.no Sat Mar 11 19:53:52 2006 From: lindsve at bluezone.no (Geir-Tore Lindsve) Date: Sat, 11 Mar 2006 20:53:52 +0100 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> Message-ID: <5D905EA4-FD31-4B5F-AE43-8B2FBF8D7BEC@bluezone.no> Den 11. mar. 2006 kl. 17.41 skrev Christian Bogen: > > Addendum: I've just tried it again to be sure (with the /usr/local/ > bin/mate and %file -l %line in TeXniscope and it even seems to be > broken both ways with a path/file name containing spaces. When I > hit ctrl-select-command-o in TextMate focus shifts to TeXniscope > but that's about it -- not green marker appears and it doesn't jump > to the page. Command-clicking in TeXniscope on the other hand > actually produces the error messages ?Warning This document do not > have syncronization info.? (Which is a lie! ;) > > Once I remove the spaces from the directory and file name again, > everything works as expected! > > Chris That is the same experience here. I have spaces in almost all of my document folders so the paths will end up with spaces in them. I guess that is why it worked when I tried it with the test document which where located in ~\Desktop. -- Mvh/Regards Geir-Tore Lindsve lindsve at bluezone.no http://privat.bluezone.no/lindsve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2367 bytes Desc: not available URL: From yvon_thoraval at mac.com Sun Mar 12 09:29:13 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Sun, 12 Mar 2006 10:29:13 +0100 Subject: [TxMt] TextMate wants my password in order to save a file Message-ID: Hey all, from time to time TextMate wants my password in order to save a file having the following perms : -rwxr-xr-x 1 yvon yvon 591 Mar 12 10:19 run.rb even after entering the correct pwd, i'm unable to save the file thought i've found a workaround : copy the content into the clipboard ; close the file without saving ; re-open the file ; paste the clipboard within this file. have you heard of such a behaviour ? best, Yvon From chris at octopod.info Sun Mar 12 21:46:49 2006 From: chris at octopod.info (Chris McGrath) Date: Sun, 12 Mar 2006 21:46:49 +0000 Subject: [TxMt] ANN: Keyref - A TextMate shortcut key reference PDF generator Message-ID: Hi all, I'd like to announce Keyref, a little app for turning TextMate's keyboard shortcut list into a PDF reference card. Go to http:// keyref.octopod.info and follow the instructions to generate your own. You can choose up to eight of the bundles you have installed to add to the card and generate as many as you want. I built this because I switched to TextMate just over a month ago and found myself very lost initially. Several people found the first card I generated useful so I decided other people might and ended up with the web app. It takes the shortcut list TextMate generates, so will include all your own shortcuts as well as the standard ones. If you find this useful, or have any problems, please let me know. Cheers, Chris http://keyref.octopod.info From lists at arachnedesign.net Sun Mar 12 23:43:51 2006 From: lists at arachnedesign.net (Steve Lianoglou) Date: Sun, 12 Mar 2006 18:43:51 -0500 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <17E572F4-8EE3-4C94-A540-03648497B33C@uchicago.edu> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> <17E572F4-8EE3-4C94-A540-03648497B33C@uchicago.edu> Message-ID: > huh, you are right it is still broken. Not much we can do though I > think, other than avoid spaces in the path name of the file. It > seems to be in TeXniscope's hands. I emailed the developer, and if > we are lucky he might have a workaround to suggest. Howdy. First off, Charis: Thanks for those LaTeX screen casts ... gave me the gumption to finally stop being lazy and give LaTeX a try over the weekend ... was able to use it to actually submit a project -- even though I burned like an hour trying to figure out why it wouldn't compile a few times .. sometimes the error messages aren't so handy ;-) Second .. maybe more on topic .. is there any way we could use TeXShop as the LaTeX previewer ... since I'm pretty sure it deals w/ pdfsync, might be something to look into. I did a quick search in the archive and found someone talking about just using the Tiger pdfsearch instead of pdfsync -- not sure exactly if that superscedes pdfsync in that I like the ctrl-cmd-shift-o shortcut to jump to the current place from your textmate doc to the TeXniscope pdf .. maybe it does, I have no idea. Otherwise, the no-space-document-path + TeXniscope is working for me in the meanwhile, though I like the fact that TeXShop is universal. cheers, -steve From cskiadas at uchicago.edu Mon Mar 13 00:43:33 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Sun, 12 Mar 2006 18:43:33 -0600 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> <17E572F4-8EE3-4C94-A540-03648497B33C@uchicago.edu> Message-ID: <0AA20961-7A88-404C-8154-5733E86B21C6@uchicago.edu> On Mar 12, 2006, at 5:43 PM, Steve Lianoglou wrote: > figure out why it wouldn't compile a few times .. sometimes the > error messages aren't so handy ;-) > I know what you mean :) Well, the error messages are a bit better on the command line actually. Textmate seems to chop off some of the key lines. > Second .. maybe more on topic .. is there any way we could use > TeXShop as the LaTeX previewer ... since I'm pretty sure it deals > w/ pdfsync, might be something to look into. You can easily use TeXShop as the previewer, it's as easy as setting the TM_LATEX_VIEWER variable to it. On the other hand, though TeXShop does an admirable job with syncing among its own windows, it doesn't seem to have the infrastructure to support an outside editor in that manner. It has no interface that I can see for specifying to it what command to execute and how to pass the parameters of file and line etc. Maybe someone with more knowledge of TeXShop can help us here. > I did a quick search in the archive and found someone talking about > just using the Tiger pdfsearch instead of pdfsync -- not sure > exactly if that superscedes pdfsync in that I like the ctrl-cmd- > shift-o shortcut to jump to the current place from your textmate > doc to the TeXniscope pdf .. maybe it does, I have no idea. > I personally don't see much reason in using Tiger pdfsearch when we have a platform independent solution, and I don't see what more it would get us, or how we would go about using it. The problem here how to tell TeXShop what editor to call back. > Otherwise, the no-space-document-path + TeXniscope is working for > me in the meanwhile, though I like the fact that TeXShop is universal. > > cheers, > -steve Haris From bonelake at mac.com Mon Mar 13 00:53:43 2006 From: bonelake at mac.com (Brad Miller) Date: Sun, 12 Mar 2006 18:53:43 -0600 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: <0AA20961-7A88-404C-8154-5733E86B21C6@uchicago.edu> References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> <17E572F4-8EE3-4C94-A540-03648497B33C@uchicago.edu> <0AA20961-7A88-404C-8154-5733E86B21C6@uchicago.edu> Message-ID: On Mar 12, 2006, at 6:43 PM, Charilaos Skiadas wrote: > On Mar 12, 2006, at 5:43 PM, Steve Lianoglou wrote: > >> figure out why it wouldn't compile a few times .. sometimes the >> error messages aren't so handy ;-) >> > I know what you mean :) > Well, the error messages are a bit better on the command line > actually. Textmate seems to chop off some of the key lines. > If you would send me examples of those errors that TextMate chops off, I will be glad to fix the bugs in my script that produces the html output from latex. Brad > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From throw-away-1 at macromates.com Mon Mar 13 02:09:32 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 13 Mar 2006 03:09:32 +0100 Subject: [TxMt] Restore Function Pop-up while retaining other settings In-Reply-To: <1B7EC656-BBEB-4E81-80AE-737856E35661@egil.net> References: <1B7EC656-BBEB-4E81-80AE-737856E35661@egil.net> Message-ID: <4B74740D-A833-4DE0-BE5C-41FCEF1BA529@macromates.com> On 11/3/2006, at 1:06, Egil Helland wrote: > I am a recent convert to TextMate, but for some reason (probably me > fooling around in the app) I no longer get any content to show up > in the Function/Symbol field down to the right in the editor for my > PHP and HTML files Did you maybe disable the Source bundle in Window -> Show Bundle Editor -> Filter List?? > Now I just want to restore the default settings for such files - is > this possible while still retaining my other settings? Everything you do in the bundle editor is saved in ~/Library/ Application Support/TextMate/Bundles and you can get back to the defaults by deleting the folder (and relaunching TextMate). From throw-away-1 at macromates.com Mon Mar 13 02:13:18 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 13 Mar 2006 03:13:18 +0100 Subject: [TxMt] TextMate wants my password in order to save a file In-Reply-To: References: Message-ID: On 12/3/2006, at 10:29, Yvon Thoraval wrote: > from time to time TextMate wants my password in order to save a > file having the following perms : That it wants password is not always a sign of lack of premissions. Currently it asks for password when it can?t save the file, but think it should be able to (i.e. retrying as root). > copy the content into the clipboard ; > close the file without saving ; > > re-open the file ; > > paste the clipboard within this file. > > have you heard of such a behaviour ? That?s very strange. TextMate keeps no locks on the file, or keeps it ?open?. So closing the window should make absolutely no change to the disk or the state of the file on disk (i.e. open count, or advisory lock state). Is this on a normal HFS+ formatted local disk? Could you check Console to see if there should be a problem with the file reported there? From throw-away-1 at macromates.com Mon Mar 13 02:14:43 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 13 Mar 2006 03:14:43 +0100 Subject: [TxMt] TODO Bundle In-Reply-To: References: Message-ID: On 8/3/2006, at 22:36, Robert Ullrey wrote: > Love the TODO bundle and use it everyday to keep track of several > projects. What I would like to do though is print out the HTML output > the bundle produces. In otherwards, use COMMAND-Ndto print the window. > Any suggestions? Currently you would have to modify the command, e.g. make it save the output to disk and open in Safari for printing or similar. But I will add printing from the HTML output window to the list (no ETA though). From throw-away-1 at macromates.com Mon Mar 13 02:22:21 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 13 Mar 2006 03:22:21 +0100 Subject: [TxMt] Getting to end of selection in macro In-Reply-To: <5D618915-409B-483B-A636-57545140043C@gmail.com> References: <5D618915-409B-483B-A636-57545140043C@gmail.com> Message-ID: On 10/3/2006, at 0:20, Dr. Drang wrote: > [...] Is there a foolproof way of getting the caret to land right > after the selection? What you can do is let the command insert as snippet. You will need to escape $, \, and ` in the result, but then you have full control over where the caret should go (or what should be selected), after having the text piped through the command. > 1. Is there a way for a command to call a macro? > 2. Can a macro be made to behave differently depending on whether > text is selected or not? Afraid the answer is no to both. From cskiadas at uchicago.edu Mon Mar 13 04:25:51 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Sun, 12 Mar 2006 22:25:51 -0600 Subject: [TxMt] TextMate and TeXniscope - Fails opening pdf In-Reply-To: References: <2AE4CE34-669B-4213-A91D-E9EFBE45D488@bluezone.no> <22DD1C0B-AAC9-4ED3-8406-09F0DFD7E60A@bluezone.no> <35D135F5-8830-44CA-968D-28B925485782@fastmail.fm> <56DF007D-AD35-403C-BACE-66D853A2501F@uchicago.edu> <4D426D69-2570-4C0E-B9D8-AF73B86979F0@fastmail.fm> <42818CE4-E8FD-421C-B250-2CD6E06A7B16@fastmail.fm> <17E572F4-8EE3-4C94-A540-03648497B33C@uchicago.edu> <0AA20961-7A88-404C-8154-5733E86B21C6@uchicago.edu> Message-ID: <397D9CD1-2FA8-430D-A729-5BE0636C9D35@uchicago.edu> On Mar 12, 2006, at 6:53 PM, Brad Miller wrote: > If you would send me examples of those errors that TextMate chops > off, I will be glad to fix the bugs in my script that produces the > html output from latex. > I don't have any in mind at the moment, but I will send you when I encounter them. One example is for instance, that if I misspell a LaTeX command, it will silently ignore it and compile, with no messages, while if I was compiling from the command line it would have waited for my input, with something like: ! Undefined control sequence. l.6 ...deserunt mollit anim id est laborum. \singf {2} That {2} is supposed to be vertically positioned right below and to the right of \singf, the actual sentence in the document being: deserunt mollit anim id est laborum. \singf{2} In this case no error is reported (at least in my system). In other situations where it is reported, one doesn't usually get to see all three lines. I'll send you a more specific example when I have one. > Brad Haris From drdrang at gmail.com Mon Mar 13 04:26:55 2006 From: drdrang at gmail.com (Dr. Drang) Date: Sun, 12 Mar 2006 22:26:55 -0600 Subject: [TxMt] Getting to end of selection in macro In-Reply-To: References: <5D618915-409B-483B-A636-57545140043C@gmail.com> Message-ID: On 3/12/06, Allan Odgaard wrote: > On 10/3/2006, at 0:20, Dr. Drang wrote: > > > [...] Is there a foolproof way of getting the caret to land right > > after the selection? > > What you can do is let the command insert as snippet. You will need > to escape $, \, and ` in the result, but then you have full control > over where the caret should go (or what should be selected), after > having the text piped through the command. Cute trick. Thank you. > > 1. Is there a way for a command to call a macro? > > 2. Can a macro be made to behave differently depending on whether > > text is selected or not? > > Afraid the answer is no to both. Thought so. -- Dr. Drang (master of the two-word sentence) From gavin at refinery.com Mon Mar 13 04:51:55 2006 From: gavin at refinery.com (Gavin Kistner) Date: Sun, 12 Mar 2006 21:51:55 -0700 Subject: [TxMt] TextMate wants my password in order to save a file In-Reply-To: References: Message-ID: <1AE238BD-D714-4E4F-BC86-CD03E6C683D9@refinery.com> On Mar 12, 2006, at 7:13 PM, Allan Odgaard wrote: > On 12/3/2006, at 10:29, Yvon Thoraval wrote: > >> from time to time TextMate wants my password in order to save a >> file having the following perms : > > That it wants password is not always a sign of lack of premissions. > Currently it asks for password when it can?t save the file, but > think it should be able to (i.e. retrying as root). > >> copy the content into the clipboard ; >> close the file without saving ; >> >> re-open the file ; >> >> paste the clipboard within this file. >> >> have you heard of such a behaviour ? > > That?s very strange. TextMate keeps no locks on the file, or keeps > it ?open?. So closing the window should make absolutely no change > to the disk or the state of the file on disk (i.e. open count, or > advisory lock state). FWIW, sometimes when I edit root-owned files, I have to authenticate twice in a row before the file saves. But then it saves just fine. Perhaps the first authentication is one layer, and the second (after close/new document) is a second layer? From cskiadas at uchicago.edu Mon Mar 13 05:01:45 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Sun, 12 Mar 2006 23:01:45 -0600 Subject: [TxMt] TextMate wants my password in order to save a file In-Reply-To: <1AE238BD-D714-4E4F-BC86-CD03E6C683D9@refinery.com> References: <1AE238BD-D714-4E4F-BC86-CD03E6C683D9@refinery.com> Message-ID: <496EACF0-86F3-433F-A0B9-0F5555135A9B@uchicago.edu> On Mar 12, 2006, at 10:51 PM, Gavin Kistner wrote: > FWIW, sometimes when I edit root-owned files, I have to > authenticate twice in a row before the file saves. But then it > saves just fine. That happens to me too. The first time I save a root-owned file it authenticates twice, but in any subsequent saves of the file it authenticates only once. Haris From throw-away-1 at macromates.com Mon Mar 13 05:20:00 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 13 Mar 2006 06:20:00 +0100 Subject: [TxMt] TextMate wants my password in order to save a file In-Reply-To: <496EACF0-86F3-433F-A0B9-0F5555135A9B@uchicago.edu> References: <1AE238BD-D714-4E4F-BC86-CD03E6C683D9@refinery.com> <496EACF0-86F3-433F-A0B9-0F5555135A9B@uchicago.edu> Message-ID: <8A85A21F-CF29-4913-8F2B-9764D8DDD280@macromates.com> On 13/3/2006, at 6:01, Charilaos Skiadas wrote: > On Mar 12, 2006, at 10:51 PM, Gavin Kistner wrote: >> FWIW, sometimes when I edit root-owned files, I have to >> authenticate twice in a row before the file saves. But then it >> saves just fine. > That happens to me too. The first time I save a root-owned file it > authenticates twice, but in any subsequent saves of the file it > authenticates only once. The reason is that TM uses a bundled helper tool to do the actual saving. This tool has setuid and is owned by root, meaning that everything it does, is done as root. To operate, this tool needs a com.macromates.textmate.openfile.readwrite.* right. So normally when you save a file, and a password is requested, TextMate does not ask for the right to execute a program as root, instead it asks to obtain the right which is named above (for which things like who should be able to obtain it, for how long the right should be granted w/o password before asking for a new (timeout) etc. can be adjusted in the /etc/authorization file (for this right specifically, or for rights matching a pattern)). However, since I cannot ship TextMate with the helper tool owned by roor and with the setuid bit set, I need to have TextMate setup the helper tool correct, and this can only be done as root. So the first password requester asks for the right to execute code as root (basically sudo), and the second password requester then asks for the lesser right of simply operating the helper tool (enforced by the helper tool itself). After having setup the helper tool correctly, there should no longer be asked permission to run code as root, and only one password requester should appear (but when/if you upgrade TM, the state of the helper tool is reset, and afterwards you will again get two password requesters). I don?t know how easy this was to follow, but put shortly: it should ask for password twice, because it wants to do two different things, for which the rights are different. From drdrang at gmail.com Mon Mar 13 06:00:02 2006 From: drdrang at gmail.com (Dr. Drang) Date: Mon, 13 Mar 2006 00:00:02 -0600 Subject: [TxMt] Automated links for Markdown Message-ID: I now have two macros that automate the creation of [reference-style links][1] for Markdown documents. The first is used while you're typing and you come to a spot where you want to add a link. It's documented [here][2] and [here][3]. The second is used when you want to select some text already in the document and turn it into a link. It's documented [here][4]. Thanks to the members of the list who gave me pointers. [1]: they look like this, but with a URL here [2]: http://www.leancrew.com/all-this/2006/02/textmate_and_links_again.html [3]: http://www.leancrew.com/all-this/2006/03/new_and_improved_textmate_and.html [4]: http://www.leancrew.com/all-this/2006/03/markdown_links_in_textmate_the.html -- Dr. Drang From egil at egil.net Mon Mar 13 07:08:22 2006 From: egil at egil.net (Egil Helland) Date: Mon, 13 Mar 2006 08:08:22 +0100 Subject: [TxMt] Restore Function Pop-up while retaining other settings In-Reply-To: <4B74740D-A833-4DE0-BE5C-41FCEF1BA529@macromates.com> References: <1B7EC656-BBEB-4E81-80AE-737856E35661@egil.net> <4B74740D-A833-4DE0-BE5C-41FCEF1BA529@macromates.com> Message-ID: On 13. mar. 2006, at 03:09, Allan Odgaard wrote: > On 11/3/2006, at 1:06, Egil Helland wrote: > >> I am a recent convert to TextMate, but for some reason (probably >> me fooling around in the app) I no longer get any content to show >> up in the Function/Symbol field down to the right in the editor >> for my PHP and HTML files > > Did you maybe disable the Source bundle in Window -> Show Bundle > Editor -> Filter List?? > Aha! Yup, I did. I thought the function/symbol list was just for various languages and support thereof, but now I know better. Would be nice, for newbies like me, with a short one-liner about each bundle and what it actually does (at least by default). >> Now I just want to restore the default settings for such files - >> is this possible while still retaining my other settings? > > Everything you do in the bundle editor is saved in ~/Library/ > Application Support/TextMate/Bundles and you can get back to the > defaults by deleting the folder (and relaunching TextMate). Thanks, good to know! -e -- egil helland / it consultant (mcse, web technology) web: ikon.as / egil.net mob: +47-91315555 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2355 bytes Desc: not available URL: From geraint at transitive.com Mon Mar 13 07:48:11 2006 From: geraint at transitive.com (Geraint North) Date: Mon, 13 Mar 2006 07:48:11 +0000 Subject: [TxMt] TextMate and network filesystem performance Message-ID: <528F746E-F128-4AB5-8FA8-06A918ECED6B@transitive.com> Hi, I saw some old posts on the mailing list regarding the pause (several seconds) that the user experiences when switching back to TextMate from some other application when a project contains files mounted over NFS. An fs_usage confirms that it probably is the 1000's of fstat() calls that TextMate does when activated that is causing the pause. Is this due to be fixed anytime soon, and in the meantime, has anyone found any workarounds for it? Thanks, Geraint. From yvon_thoraval at mac.com Mon Mar 13 10:02:30 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Mon, 13 Mar 2006 11:02:30 +0100 Subject: [TxMt] TextMate wants my password in order to save a file In-Reply-To: References: Message-ID: Le 13 mars 06 ? 03:13, Allan Odgaard a ?crit : > Is this on a normal HFS+ formatted local disk? > yes, absolutely ;-) > Could you check Console to see if there should be a problem with > the file reported there? i'll do that newt time it arroses, because i'm not sure about the console message i get yesterday, here it is : 2006-03-12 10:09:21.875 TextMate[393] *** run.rb updated w/o changes 2006-03-12 10:09:21.876 TextMate[393] *** last date 2006-03-12 10:07:44 +0100, new date 2006-03-12 10:08:14 +0100 2006-03-12 10:14:00.169 Finder[85] CFLog (0): CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary. 2006-03-12 10:14:00.173 Finder[85] CFLog (0): CFPropertyListCreateFromXMLData(): The file name for this data might be (or it might not): /System/Library/Frameworks/Foundation.framework/ Resources/Languages/fr 2006-03-12 10:14:00.181 Finder[85] CFLog (0): CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary. 2006-03-12 10:14:00.186 Finder[85] CFLog (0): CFPropertyListCreateFromXMLData(): The file name for this data might be (or it might not): /System/Library/Frameworks/Foundation.framework/ Resources/Languages/fr perms and owner being : -rwxr-xr-x 1 yvon yvon run.rb this kind of prob arroses only after getting back to TextMate. best Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From infoarts at gmail.com Mon Mar 13 10:19:16 2006 From: infoarts at gmail.com (Richard Sandilands) Date: Mon, 13 Mar 2006 21:19:16 +1100 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> Message-ID: <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> On 3/11/06, Mark Eli Kalderon wrote: > You can view source in Safari and then use the edit in TextMate > command (ctrl-cmd-e). Best, Mark That does not work for me unfortunately. I just get a system alert when I attempt to edt Safari source in TextMate. Richard From m.kalderon at ucl.ac.uk Mon Mar 13 10:30:24 2006 From: m.kalderon at ucl.ac.uk (Mark Eli Kalderon) Date: Mon, 13 Mar 2006 10:30:24 +0000 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> Message-ID: <7CEC24BA-483D-4EBF-9439-E1B26173A24D@ucl.ac.uk> Did you pull up the source in Safari first with option-command-U before sending it to TextMate? Best, Mark On 13 Mar 2006, at 10:19, Richard Sandilands wrote: > On 3/11/06, Mark Eli Kalderon wrote: > >> You can view source in Safari and then use the edit in TextMate >> command (ctrl-cmd-e). Best, Mark > > That does not work for me unfortunately. I just get a system alert > when I attempt to edt Safari source in TextMate. > > Richard > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From smithav at cshl.edu Mon Mar 13 13:19:46 2006 From: smithav at cshl.edu (Albert Vernon Smith) Date: Mon, 13 Mar 2006 13:19:46 +0000 Subject: [TxMt] little-endian, ruby, and run script Message-ID: <8AFCC108-6394-412C-A6B6-D4D837E69339@cshl.edu> I am writing a script to parse a binary file in ruby. According to the documentation on the file format, the integers are in little- endian format. When I take the script, read the appropriate part of the file, then 'unpack' with 'V' (little-endian), I don't get the right answer from the internal "Run script" command. I do get the right answer if I change to unpack with 'N'. However, if run from the command line against Apple Ruby (/usr/bin/ruby 1.8.2) or against Ruby compiled with DarwinPorts (/opt/local/bin/ruby 1.8.4), I get the appropriate result with 'V' (as I should). This seems to be a bug to me, though I'm not sure I'm missing something here. Can someone either confirm this is a bug, or alternatively explain to me why things are behaving in this way. -albert From dave.baldwin at 3dlabs.com Mon Mar 13 13:49:56 2006 From: dave.baldwin at 3dlabs.com (Dave Baldwin) Date: Mon, 13 Mar 2006 13:49:56 +0000 Subject: [TxMt] little-endian, ruby, and run script In-Reply-To: <8AFCC108-6394-412C-A6B6-D4D837E69339@cshl.edu> References: <8AFCC108-6394-412C-A6B6-D4D837E69339@cshl.edu> Message-ID: This is a documented problem with the version of Ruby Apple supplied with Tiger. The other main problem with Apple's version of Ruby is its inability to support user extensions. Dave. On 13 Mar 2006, at 13:19, Albert Vernon Smith wrote: > I am writing a script to parse a binary file in ruby. According to > the documentation on the file format, the integers are in little- > endian format. When I take the script, read the appropriate part > of the file, then 'unpack' with 'V' (little-endian), I don't get > the right answer from the internal "Run script" command. I do get > the right answer if I change to unpack with 'N'. However, if run > from the command line against Apple Ruby (/usr/bin/ruby 1.8.2) or > against Ruby compiled with DarwinPorts (/opt/local/bin/ruby 1.8.4), > I get the appropriate result with 'V' (as I should). > > This seems to be a bug to me, though I'm not sure I'm missing > something here. Can someone either confirm this is a bug, or > alternatively explain to me why things are behaving in this way. > > -albert > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From smithav at cshl.edu Mon Mar 13 13:59:31 2006 From: smithav at cshl.edu (Albert Vernon Smith) Date: Mon, 13 Mar 2006 13:59:31 +0000 Subject: [TxMt] little-endian, ruby, and run script In-Reply-To: References: <8AFCC108-6394-412C-A6B6-D4D837E69339@cshl.edu> Message-ID: <9128FB69-C526-45ED-A899-BEBEBF4E2F4D@cshl.edu> Thanks for the info. Is there a way to configure Textmate to point to another version of Ruby, such as the version I compiled from DarwinPorts? -albert On 13.3.2006, at 13:49, Dave Baldwin wrote: > This is a documented problem with the version of Ruby Apple > supplied with Tiger. The other main problem with Apple's version > of Ruby is its inability to support user extensions. > > > Dave. > > On 13 Mar 2006, at 13:19, Albert Vernon Smith wrote: > >> I am writing a script to parse a binary file in ruby. According >> to the documentation on the file format, the integers are in >> little-endian format. When I take the script, read the >> appropriate part of the file, then 'unpack' with 'V' (little- >> endian), I don't get the right answer from the internal "Run >> script" command. I do get the right answer if I change to unpack >> with 'N'. However, if run from the command line against Apple >> Ruby (/usr/bin/ruby 1.8.2) or against Ruby compiled with >> DarwinPorts (/opt/local/bin/ruby 1.8.4), I get the appropriate >> result with 'V' (as I should). >> >> This seems to be a bug to me, though I'm not sure I'm missing >> something here. Can someone either confirm this is a bug, or >> alternatively explain to me why things are behaving in this way. >> >> -albert From dave.baldwin at 3dlabs.com Mon Mar 13 14:25:38 2006 From: dave.baldwin at 3dlabs.com (Dave Baldwin) Date: Mon, 13 Mar 2006 14:25:38 +0000 Subject: [TxMt] little-endian, ruby, and run script In-Reply-To: <9128FB69-C526-45ED-A899-BEBEBF4E2F4D@cshl.edu> References: <8AFCC108-6394-412C-A6B6-D4D837E69339@cshl.edu> <9128FB69-C526-45ED-A899-BEBEBF4E2F4D@cshl.edu> Message-ID: <5F0B5F76-30B8-410D-AA5B-BF54A6117EFB@3dlabs.com> On 13 Mar 2006, at 13:59, Albert Vernon Smith wrote: > Thanks for the info. > > Is there a way to configure Textmate to point to another version of > Ruby, such as the version I compiled from DarwinPorts? > Set up an environmental variable TM_RUBY to point to the version you want to use. See TextMate manual for details on this. Alternatively include the directory holding the new ruby in your PATH before the /usr/bin where the Apple Ruby lives. How you do this depends on which shell you are using. For tcsh add something similar to your .cshrc file in your home directory: set path = (/opt/local/bin $path) where opt/local/bin is where DarwinPorts has put Ruby (not sure if this is the correct place - do ls to check). You may need to restart TextMate for it to see this change. Dave. > -albert > > On 13.3.2006, at 13:49, Dave Baldwin wrote: > >> This is a documented problem with the version of Ruby Apple >> supplied with Tiger. The other main problem with Apple's version >> of Ruby is its inability to support user extensions. >> >> >> Dave. >> >> On 13 Mar 2006, at 13:19, Albert Vernon Smith wrote: >> >>> I am writing a script to parse a binary file in ruby. According >>> to the documentation on the file format, the integers are in >>> little-endian format. When I take the script, read the >>> appropriate part of the file, then 'unpack' with 'V' (little- >>> endian), I don't get the right answer from the internal "Run >>> script" command. I do get the right answer if I change to unpack >>> with 'N'. However, if run from the command line against Apple >>> Ruby (/usr/bin/ruby 1.8.2) or against Ruby compiled with >>> DarwinPorts (/opt/local/bin/ruby 1.8.4), I get the appropriate >>> result with 'V' (as I should). >>> >>> This seems to be a bug to me, though I'm not sure I'm missing >>> something here. Can someone either confirm this is a bug, or >>> alternatively explain to me why things are behaving in this way. >>> >>> -albert > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From smithav at cshl.edu Mon Mar 13 14:52:43 2006 From: smithav at cshl.edu (Albert Vernon Smith) Date: Mon, 13 Mar 2006 14:52:43 +0000 Subject: [TxMt] little-endian, ruby, and run script In-Reply-To: <5F0B5F76-30B8-410D-AA5B-BF54A6117EFB@3dlabs.com> References: <8AFCC108-6394-412C-A6B6-D4D837E69339@cshl.edu> <9128FB69-C526-45ED-A899-BEBEBF4E2F4D@cshl.edu> <5F0B5F76-30B8-410D-AA5B-BF54A6117EFB@3dlabs.com> Message-ID: <2A9BDCC6-19E3-4C25-B1B4-55748BD8132E@cshl.edu> Thanks. My $PATH already had /opt/local/bin on it, before the Apple path. I got the right behavior by setting TM_RUBY. Ty, -albert On 13.3.2006, at 14:25, Dave Baldwin wrote: > > On 13 Mar 2006, at 13:59, Albert Vernon Smith wrote: > >> Thanks for the info. >> >> Is there a way to configure Textmate to point to another version >> of Ruby, such as the version I compiled from DarwinPorts? >> > > > Set up an environmental variable TM_RUBY to point to the version > you want to use. See TextMate manual for details on this. > > Alternatively include the directory holding the new ruby in your > PATH before the /usr/bin where the Apple Ruby lives. > > How you do this depends on which shell you are using. For tcsh add > something similar to your .cshrc file in your home directory: > > set path = (/opt/local/bin $path) > > where opt/local/bin is where DarwinPorts has put Ruby (not sure if > this is the correct place - do ls to check). You may need to > restart TextMate for it to see this change. From robert_ullrey at mac.com Mon Mar 13 16:41:09 2006 From: robert_ullrey at mac.com (Robert Ullrey) Date: Mon, 13 Mar 2006 08:41:09 -0800 Subject: [TxMt] TODO Bundle In-Reply-To: Message-ID: Allan, Thanks for the suggestion. I also found a great work around for this and simular Web Preview printing using the Print Selection Service by PDF Browser programer Manfred Schubert . It has worked great on capturing the TODO output in color and sending it to my printer. Cheers Robert ------------------------- On Monday, March 13, 2006 Allan Odgaard wrote this observation: > On 8/3/2006, at 22:36, Robert Ullrey wrote: > > > Love the TODO bundle and use it everyday to keep track of several > > projects. What I would like to do though is print out the HTML output > > the bundle produces. In otherwards, use COMMAND-Ndto print the window. > > Any suggestions? > > Currently you would have to modify the command, e.g. make it save the > output to disk and open in Safari for printing or similar. > > But I will add printing from the HTML output window to the list (no > ETA though). > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From throw-away-1 at macromates.com Mon Mar 13 22:22:59 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 13 Mar 2006 23:22:59 +0100 Subject: [TxMt] TextMate and network filesystem performance In-Reply-To: <528F746E-F128-4AB5-8FA8-06A918ECED6B@transitive.com> References: <528F746E-F128-4AB5-8FA8-06A918ECED6B@transitive.com> Message-ID: On 13/3/2006, at 8:48, Geraint North wrote: > Is this due to be fixed anytime soon The closest thing to a roadmap would be my blog entry from last month: http://macromates.com/blog/archives/2006/02/15/future-directions/ > and in the meantime, has anyone found any workarounds for it? The workaround is to create a static project instead of using folder referneces and if that doesn?t solve it, create a smaller project (like only dragging the actual files you plan to work with, to the drawer of a new project window). From infoarts at gmail.com Tue Mar 14 01:34:30 2006 From: infoarts at gmail.com (Richard Sandilands) Date: Tue, 14 Mar 2006 12:34:30 +1100 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <7CEC24BA-483D-4EBF-9439-E1B26173A24D@ucl.ac.uk> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> <7CEC24BA-483D-4EBF-9439-E1B26173A24D@ucl.ac.uk> Message-ID: <2e8d08f0603131734p2ac34d56t7998926f153609f6@mail.gmail.com> On 3/13/06, Mark Eli Kalderon wrote: > Did you pull up the source in Safari first with option-command-U > before sending it to TextMate? Yeah, that's exactly what I did. I can edit text boxes in forms in Safari using the 'edit in textmate' command but not send the source over. Strange. Richard From jose.campos+tm at galacsys.com Tue Mar 14 06:24:33 2006 From: jose.campos+tm at galacsys.com (=?ISO-8859-1?Q?Jos=E9_Campos?=) Date: Tue, 14 Mar 2006 07:24:33 +0100 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <2e8d08f0603131734p2ac34d56t7998926f153609f6@mail.gmail.com> Message-ID: <1hc6hoz.1qrr59t6mklxmM%jose.campos+tm@galacsys.com> Richard Sandilands wrote: > I can edit text boxes in forms in > Safari using the 'edit in textmate' command but not send the source > over. Strange. Same thing here [Safari Version 2.0.3 (417.9.2)] and [Shiira 1.2.1 (build060303)] -- Jo 1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72 From kevin at sb.org Tue Mar 14 09:37:47 2006 From: kevin at sb.org (Kevin Ballard) Date: Tue, 14 Mar 2006 01:37:47 -0800 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> Message-ID: On Mar 13, 2006, at 2:19 AM, Richard Sandilands wrote: > On 3/11/06, Mark Eli Kalderon wrote: > >> You can view source in Safari and then use the edit in TextMate >> command (ctrl-cmd-e). Best, Mark > > That does not work for me unfortunately. I just get a system alert > when I attempt to edt Safari source in TextMate. That's because the source field is not editable. The source to the Edit In TextMate bundle is in the TextMate svn repository - go look at it. I bet you'll find a line checking the editable status of the text field - disable that line. -- Kevin Ballard kevin at sb.org http://kevin.sb.org http://www.tildesoft.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2378 bytes Desc: not available URL: From Soryu at serenity.de Tue Mar 14 10:22:09 2006 From: Soryu at serenity.de (Soryu) Date: Tue, 14 Mar 2006 11:22:09 +0100 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> Message-ID: <1A536336-042E-4288-B1A5-C9A8272CBC77@serenity.de> On 14.03.2006, at 10:37, Kevin Ballard wrote: > > That's because the source field is not editable. The source to the > Edit In TextMate bundle is in the TextMate svn repository - go look > at it. I bet you'll find a line checking the editable status of the > text field - disable that line. > Or install an input manager like Safari Stand that let's you edit the source and apply changes to the site. Can come in handy sometimes. Stan. From m.kalderon at ucl.ac.uk Tue Mar 14 11:51:14 2006 From: m.kalderon at ucl.ac.uk (Mark Eli Kalderon) Date: Tue, 14 Mar 2006 11:51:14 +0000 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <1A536336-042E-4288-B1A5-C9A8272CBC77@serenity.de> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> <2e8d08f0603130219w411b5e9g3e24e80836877ecd@mail.gmail.com> <1A536336-042E-4288-B1A5-C9A8272CBC77@serenity.de> Message-ID: <11DCFB92-06C1-4F98-9223-F5392A47329D@ucl.ac.uk> On 14 Mar 2006, at 10:22, Soryu wrote: > On 14.03.2006, at 10:37, Kevin Ballard wrote: > >> >> That's because the source field is not editable. The source to the >> Edit In TextMate bundle is in the TextMate svn repository - go >> look at it. I bet you'll find a line checking the editable status >> of the text field - disable that line. >> > Or install an input manager like Safari Stand that let's you edit > the source and apply changes to the site. Can come in handy sometimes. > > Stan. Sorry, I have Safari Stand installed that's why it worked for me. All the best, Mark _________________ Mark Eli Kalderon Department of Philosophy University College London Gower Street London WC1E 6BT Dept webpage: http://www.ucl.ac.uk/philosophy Personal wepage: http://www.kalderon.demon.co.uk From Soryu at serenity.de Tue Mar 14 15:45:21 2006 From: Soryu at serenity.de (Soryu) Date: Tue, 14 Mar 2006 16:45:21 +0100 Subject: [TxMt] TODO Bundle In-Reply-To: References: Message-ID: <4954914A-0674-49A8-A4DE-06F8E7D38F67@serenity.de> Of course you can also copy and paste it to Textedit.app (with Richtext format) and print it from there. There is even a service menu entry Textedit ? New Window Containing Selection which works for me. If I had thought of this earlier? :) Stan. From andreaswahlin at bredband.net Tue Mar 14 19:18:27 2006 From: andreaswahlin at bredband.net (Andreas Wahlin) Date: Tue, 14 Mar 2006 20:18:27 +0100 Subject: [TxMt] prototype bundle Message-ID: I downloaded the Prototype and Scriptaculous bundle from http://encytemedia.com/blog/articles/2006/01/03/textmate-vibrant-ink- theme-and-prototype-bundle but it seems not to be working (yes, I have activated it) I don't get any syntax highlightning from it in either html or js files, and this is supposed to happen as far as I understand? Andreas From mummer at whitefalls.org Tue Mar 14 20:27:07 2006 From: mummer at whitefalls.org (Michael Sheets) Date: Tue, 14 Mar 2006 14:27:07 -0600 Subject: [TxMt] prototype bundle In-Reply-To: References: Message-ID: <32B91A59-2C95-4B84-B3D1-0C606E576590@whitefalls.org> > I downloaded the Prototype and Scriptaculous bundle from > http://encytemedia.com/blog/articles/2006/01/03/textmate-vibrant- > ink-theme-and-prototype-bundle > but it seems not to be working (yes, I have activated it) > > I don't get any syntax highlightning from it in either html or js > files, and this is supposed to happen as far as I understand? For javascript files when you say activate I presume you mean to make the bundle active in the Bundle Editor. You also need to select the Prototype and Scriptaculous bundle in the bottom of the editor window, it'll remember the selection for .js files after that. As for HTML files... that won't work. There's currently no way to extend a bundle, you can only replace it. HTML includes the javascript bundle, there no way for the Prototype bundle to be called into the process. From ray at needmoredesigns.com Tue Mar 14 21:19:55 2006 From: ray at needmoredesigns.com (Raymond Brigleb) Date: Tue, 14 Mar 2006 13:19:55 -0800 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> Message-ID: <6000024B-1A6D-4C72-A482-0274203BF9FC@needmoredesigns.com> Thanks for the tips, everyone! While I'll probably stick to SafariSource and Xyle Scope for now, I was actually really happy to learn that you could use TextMate to edit a text area in Safari. I've always wanted to do that! Too bad it seems to lock up Safari while you're editing, that kinda makes me nervous. Cheers, Ray From lists at v2studio.com Tue Mar 14 21:37:43 2006 From: lists at v2studio.com (Caio Chassot) Date: Tue, 14 Mar 2006 18:37:43 -0300 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> Message-ID: <361FBB87-9EA2-48AB-8651-964717C2E8CC@v2studio.com> > You can view source in Safari and then use the edit in TextMate > command (ctrl-cmd-e). Best, Mark I can't use ctrl-cmd-e at all. Any pointers? Is it supposed to be a service? From throw-away-1 at macromates.com Tue Mar 14 21:58:34 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 14 Mar 2006 22:58:34 +0100 Subject: [TxMt] Using TM to View Source in Safari In-Reply-To: <361FBB87-9EA2-48AB-8651-964717C2E8CC@v2studio.com> References: <4BB62B3C-5B28-407A-9100-3668B31A2644@needmoredesigns.com> <1B032850-957D-4A1F-BA0D-703109DA6DAA@ucl.ac.uk> <361FBB87-9EA2-48AB-8651-964717C2E8CC@v2studio.com> Message-ID: <0F93ABBA-1367-4D60-BE21-0F0EEC88D19C@macromates.com> On 14/3/2006, at 22:37, Caio Chassot wrote: >> You can view source in Safari and then use the edit in TextMate >> command (ctrl-cmd-e). Best, Mark > I can't use ctrl-cmd-e at all. Any pointers? Is it supposed to be a > service? There was a service long ago, but since it locked the calling application, it was not always useful (since calling it from a browser made the browser unusable while editing the text). So now there is an input manager [1]. This is generally better, but still not perfect (see the install instructions for caveats). As Kevin implied, it does indeed check if the text field is read- only, and does not work in that case. This is the intended behavior, but not desired by all users, I know. [1] http://macromates.com/textmate/manual/ using_textmate_from_terminal#cocoa_text_fields From throw-away-1 at macromates.com Tue Mar 14 22:03:30 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 14 Mar 2006 23:03:30 +0100 Subject: [TxMt] Restore Function Pop-up while retaining other settings In-Reply-To: References: <1B7EC656-BBEB-4E81-80AE-737856E35661@egil.net> <4B74740D-A833-4DE0-BE5C-41FCEF1BA529@macromates.com> Message-ID: <16324B3D-4C52-4782-96E3-F4F2174F2EBE@macromates.com> On 13/3/2006, at 8:08, Egil Helland wrote: > [...] Would be nice, for newbies like me, with a short one-liner > about each bundle and what it actually does (at least by default). There is ?Assorted Bundles? in the manual [1], and the entry for the Source bundle starts with: ?The source bundle contains default actions and preferences for source code.? In-app documentation for bundles may appear later (several though embed a Help command), but the bundles actually do presently have rudimentary documentation for newbies like yourself! :) [1] http://macromates.com/textmate/manual/bundles#assorted_bundles From thomas.42 at gmail.com Tue Mar 14 22:36:22 2006 From: thomas.42 at gmail.com (thomas Aylott) Date: Tue, 14 Mar 2006 17:36:22 -0500 Subject: [TxMt] prototype bundle In-Reply-To: References: Message-ID: hmmm.... Works for me. I use a wrapper language for it to add some stuff, maybe that fixes it? http://textmate.svn.subtlegradient.com/Bundles/Prototype%20and% 20Scriptaculous.tmbundle/ Just slap that puppy in your personal textmate application support folder and you should be good to go. I also use the iLife 05 theme for my javascripting. I put some scriptaculous specific stuff in there to make it all fancy. http://textmate.svn.subtlegradient.com/Themes/iLife%2005.tmTheme thomas Aylott subtleGradient oblivious at subtleGradient.com On Mar 14, 2006, at 2:18 PM, Andreas Wahlin wrote: > I downloaded the Prototype and Scriptaculous bundle from > http://encytemedia.com/blog/articles/2006/01/03/textmate-vibrant- > ink-theme-and-prototype-bundle > but it seems not to be working (yes, I have activated it) > > I don't get any syntax highlightning from it in either html or js > files, and this is supposed to happen as far as I understand? > > Andreas > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreaswahlin at bredband.net Wed Mar 15 13:08:08 2006 From: andreaswahlin at bredband.net (Andreas Wahlin) Date: Wed, 15 Mar 2006 14:08:08 +0100 Subject: [TxMt] prototype bundle In-Reply-To: <32B91A59-2C95-4B84-B3D1-0C606E576590@whitefalls.org> References: <32B91A59-2C95-4B84-B3D1-0C606E576590@whitefalls.org> Message-ID: <35516D5E-B927-4F36-8075-A9FE76F67332@bredband.net> > For javascript files when you say activate I presume you mean to > make the bundle active in the Bundle Editor. You also need to > select the Prototype and Scriptaculous bundle in the bottom of the > editor window, it'll remember the selection for .js files after that. > > As for HTML files... that won't work. There's currently no way to > extend a bundle, you can only replace it. HTML includes the > javascript bundle, there no way for the Prototype bundle to be > called into the process. Ah, ok. Did not get the last part. THat's ok though, since it encourages separation of files and such stuff. Thanks a bundle ;) Andreas From yvon_thoraval at mac.com Wed Mar 15 19:07:57 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Wed, 15 Mar 2006 20:07:57 +0100 Subject: [TxMt] TextMate ant *.txt files encoding Message-ID: Hey all, today i've discovered may be a prob with file encoding (???) over a .txt file. my pref setup is tuned to UTF-8 and a text file edited by TextMate was MacOS Roman, something to avoid definitely... then, using another text editor i've converted this file to UTF-8 and discovered again that after having edited this file with TextMate the file becomes again in MacOS Roman... the symtom is that TextEdit (also setup default to UTF-8) is unable to open the file. did other get about the same prob ??? Yvon From throw-away-1 at macromates.com Wed Mar 15 19:13:17 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Wed, 15 Mar 2006 20:13:17 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: References: Message-ID: <5ECE1BEA-4416-4609-BD36-F30C1A2DE887@macromates.com> On 15/3/2006, at 20:07, Yvon Thoraval wrote: > then, using another text editor i've converted this file to UTF-8 > and discovered again that after having edited this file with > TextMate the file becomes again in MacOS Roman... How did you convert it? Most likely the file was just still in MacRoman. You can btw convert it in the Save As? dialog of TextMate, and in Preferences -> Advanced you can set that UTF-8 should be used for existing files as well, meaning that whatever format it is loaded as, it will be saved as UTF-8. From jose.campos+tm at galacsys.com Wed Mar 15 19:22:18 2006 From: jose.campos+tm at galacsys.com (=?ISO-8859-1?Q?Jos=E9_Campos?=) Date: Wed, 15 Mar 2006 20:22:18 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: Message-ID: <1hc9c9k.gck1m1a2c9xcM%jose.campos+tm@galacsys.com> Yvon Thoraval wrote: > Hey all, Bonsoir Yvon, > > today i've discovered may be a prob with file encoding (???) over > a .txt file. > > my pref setup is tuned to UTF-8 and a text file edited by TextMate > was MacOS Roman, something to avoid definitely... In "TextMate->Preferences->Advanced" have you checked "Use for existing files as well" ? > > then, using another text editor i've converted this file to UTF-8 and > discovered again that after having edited this file with TextMate the > file becomes again in MacOS Roman... This could have been done in TextMate as well : "File->Re-Open with Encoding..." choose "Mac-Roman" Then "File->Save As..." and check "UTF-8" > > the symtom is that TextEdit (also setup default to UTF-8) is unable > to open the file. > did other get about the same prob ??? Is there a curse on your machine? ;-) -- Jo 1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72 From yvon_thoraval at mac.com Wed Mar 15 19:25:03 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Wed, 15 Mar 2006 20:25:03 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: <5ECE1BEA-4416-4609-BD36-F30C1A2DE887@macromates.com> References: <5ECE1BEA-4416-4609-BD36-F30C1A2DE887@macromates.com> Message-ID: <997222F5-D92B-4A9F-BF88-DD0F43645B0D@mac.com> Le 15 mars 06 ? 20:13, Allan Odgaard a ?crit : > How did you convert it? Most likely the file was just still in > MacRoman. No i'm sure after having converted it to UTF-8 (using SubEthaEdit) it was really in utf-8 because after that TextEdit was able to open it... > > You can btw convert it in the Save As? dialog of TextMate, and in > Preferences -> Advanced you can set that UTF-8 should be used for > existing files as well, meaning that whatever format it is loaded > as, it will be saved as UTF-8. i've changed the popup menu in the save as dialog, the item selected was "MacOS Roman", may be that was the prob. i'm onlu using apple + s for saving then i didn't have seen this dialog one time ))) also i didn't notice what u mentionned above (should be used for existing files as well). thanks for your reply ;-) Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvon_thoraval at mac.com Wed Mar 15 19:28:13 2006 From: yvon_thoraval at mac.com (Yvon Thoraval) Date: Wed, 15 Mar 2006 20:28:13 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: <1hc9c9k.gck1m1a2c9xcM%jose.campos+tm@galacsys.com> References: <1hc9c9k.gck1m1a2c9xcM%jose.campos+tm@galacsys.com> Message-ID: Le 15 mars 06 ? 20:22, Jos? Campos a ?crit : > Is there a curse on your machine? ;-) yeap ! my machine needs an exorcist ;-) Yvon -------------- next part -------------- An HTML attachment was scrubbed... URL: From kearney at lightthrumedia.com Wed Mar 15 21:01:04 2006 From: kearney at lightthrumedia.com (Kearney Buskirk) Date: Wed, 15 Mar 2006 13:01:04 -0800 Subject: [TxMt] too much space in pasting? Message-ID: Hi Folks Let me begin by making clear that I'm not a programmer - I'm trying out TextMate in HTML production, which may or may not be advisable. I have been using TextWrangler for this purpose. The problem I'm having is too much space is being inserted before and after what is actually being copied and pasted, like at least a couple of words length on each end. And that's making messy code. I'm copying out of Dreamweaver and pasting into TextMate. TextWrangler doesn't make this mistake. What am I not understanding? I would prefer to use TextMate - text and code are easier to read and the overall design of this app looks quite advanced to me. I might use it for ActionScript in the future but I probably won't be using 90% of the features. This app is not very accessible to non-programmers. Maybe that's how you prefer it. Some beginning and mid-level tutorials and/or movies would help a lot. The manual is more like a reference book, rather than showing it in application. Just to say you might get better adoption of this beautiful app with better teaching of it. Kearney Buskirk From trevor at vocaro.com Wed Mar 15 21:48:49 2006 From: trevor at vocaro.com (Trevor Harmon) Date: Wed, 15 Mar 2006 13:48:49 -0800 Subject: [TxMt] too much space in pasting? In-Reply-To: References: Message-ID: <30163ED8-A0ED-4569-B302-3B13D1649E0D@vocaro.com> On Mar 15, 2006, at 1:01 PM, Kearney Buskirk wrote: > The problem I'm having is too much space is being inserted before > and after what is actually being copied and pasted, like at least a > couple of words length on each end. And that's making messy code. > I'm copying out of Dreamweaver and pasting into TextMate. > TextWrangler doesn't make this mistake. What am I not understanding? Perhaps the behavior you are seeing is re-indented paste, which is a feature of TextMate but may appear to be a "mistake" in some situations. See section 4.3.2 of the manual: http://macromates.com/ textmate/manual/all_pages You can avoid it by using ??V to paste. Trevor -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2363 bytes Desc: not available URL: From fredb7 at starflam.com Wed Mar 15 22:10:58 2006 From: fredb7 at starflam.com (Fred B.) Date: Wed, 15 Mar 2006 23:10:58 +0100 Subject: [TxMt] too much space in pasting? In-Reply-To: <30163ED8-A0ED-4569-B302-3B13D1649E0D@vocaro.com> References: <30163ED8-A0ED-4569-B302-3B13D1649E0D@vocaro.com> Message-ID: <9F073735-D05E-4754-9C2E-FCC345529316@starflam.com> On 15 Mar 2006, at 22:48, Trevor Harmon wrote: > On Mar 15, 2006, at 1:01 PM, Kearney Buskirk wrote: > >> The problem I'm having is too much space is being inserted before >> and after what is actually being copied and pasted, like at least >> a couple of words length on each end. And that's making messy >> code. I'm copying out of Dreamweaver and pasting into TextMate. >> TextWrangler doesn't make this mistake. What am I not understanding? > > Perhaps the behavior you are seeing is re-indented paste, which is > a feature of TextMate but may appear to be a "mistake" in some > situations. See section 4.3.2 of the manual: http://macromates.com/ > textmate/manual/all_pages > > You can avoid it by using ??V to paste. > Or deactivate it in Preferences:Text Editing. -- Fred From kearney at lightthrumedia.com Wed Mar 15 23:03:53 2006 From: kearney at lightthrumedia.com (Kearney Buskirk) Date: Wed, 15 Mar 2006 15:03:53 -0800 Subject: [TxMt] too much space in pasting? In-Reply-To: <9F073735-D05E-4754-9C2E-FCC345529316@starflam.com> References: <30163ED8-A0ED-4569-B302-3B13D1649E0D@vocaro.com> <9F073735-D05E-4754-9C2E-FCC345529316@starflam.com> Message-ID: <017A61B3-7747-48F3-B6FE-E0BCE1792F39@lightthrumedia.com> On Mar 15, 2006, at 2:10 PM, Fred B. wrote: > > On 15 Mar 2006, at 22:48, Trevor Harmon wrote: > >> On Mar 15, 2006, at 1:01 PM, Kearney Buskirk wrote: >> >>> The problem I'm having is too much space is being inserted before >>> and after what is actually being copied and pasted, like at least >>> a couple of words length on each end. And that's making messy >>> code. I'm copying out of Dreamweaver and pasting into TextMate. >>> TextWrangler doesn't make this mistake. What am I not understanding? >> >> Perhaps the behavior you are seeing is re-indented paste, which is >> a feature of TextMate but may appear to be a "mistake" in some >> situations. See section 4.3.2 of the manual: http://macromates.com/ >> textmate/manual/all_pages >> >> You can avoid it by using ??V to paste. >> > > Or deactivate it in Preferences:Text Editing. Thanks for your help. Both suggestions worked. > > -- > Fred > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From kearney at lightthrumedia.com Wed Mar 15 23:16:49 2006 From: kearney at lightthrumedia.com (Kearney Buskirk) Date: Wed, 15 Mar 2006 15:16:49 -0800 Subject: [TxMt] non-local FTP files (thru Transmit) into project drawer? In-Reply-To: <9F073735-D05E-4754-9C2E-FCC345529316@starflam.com> References: <30163ED8-A0ED-4569-B302-3B13D1649E0D@vocaro.com> <9F073735-D05E-4754-9C2E-FCC345529316@starflam.com> Message-ID: <0E4F7709-3D66-4616-85BD-DE195360C025@lightthrumedia.com> Hi Again Folks Next question: No way to get FTP files being served thru Transmit organized into a project with its nifty drawer, right? Only local files can be organized in this way? (I can't save these files onto my hard drive. They have to remain available to other people editing.) When I choose several files thru Transmit to be edited by TextMate, they all open up as separate windows and it's sort of messy and unwieldy. TextWrangler does open multiple files in this situation into one window, easy to manage with its drawer showing what's open etc. Also, any efficient and relatively easy ways to clean up messy code, like I just created, with a lot of space before and after text? Thanks for your attention. Kearney Buskirk From throw-away-1 at macromates.com Thu Mar 16 00:10:33 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Thu, 16 Mar 2006 01:10:33 +0100 Subject: [TxMt] too much space in pasting? In-Reply-To: References: Message-ID: <143FD18C-B73D-423C-86D8-20F7C9E9A397@macromates.com> On 15/3/2006, at 22:01, Kearney Buskirk wrote: > [...] > This app is not very accessible to non-programmers. Maybe that's > how you prefer it. Some beginning and mid-level tutorials and/or > movies would help a lot. There is a screencast feed [1] that you may want to check out. It is however a versatile text editor intended mainly for programmers. What tutorials and/or movies are you expecting? [1] pcast://macromates.com/textmate/screencast.rss From kearney at lightthrumedia.com Thu Mar 16 01:06:08 2006 From: kearney at lightthrumedia.com (Kearney Buskirk) Date: Wed, 15 Mar 2006 17:06:08 -0800 Subject: [TxMt] too much space in pasting? In-Reply-To: <143FD18C-B73D-423C-86D8-20F7C9E9A397@macromates.com> References: <143FD18C-B73D-423C-86D8-20F7C9E9A397@macromates.com> Message-ID: <645C15F5-CF5D-427B-9752-D6204B4B467A@lightthrumedia.com> Hello Folks > >> [...] >> This app is not very accessible to non-programmers. Maybe that's >> how you prefer it. Some beginning and mid-level tutorials and/or >> movies would help a lot. > > There is a screencast feed [1] that you may want to check out. I've gone to the screencast page and tried to play most of the movies. I get no sound from those movies. (QT7.0, 10.4.4 here, fast cable connection on G5 dual 2.3, 2 gigs of RAM.) Looking at them, they seem to be much more about Python or Ruby than about TextMate. > > It is however a versatile text editor intended mainly for > programmers. What tutorials and/or movies are you expecting? Tutorials taking the new user step-by-step through accomplishing a typical task and showing how to best use TextMate's features at each stage. On the order of: Here's an empty page. Now do ____ to best start making your HTML page. Next enter this text. Then manipulate it with this feature in this way in order to accomplish____. etc. etc. Tutorials for various levels of expertise. Maybe with downloadable example files and files to start tutorials with. Movies showing TextMate's operations (screens with voice-overs). Looking over the shoulder of an expert user really explaining what's being done. Make learning the app as easy as possible - remove any obstacles. In learning many apps, I've noticed I learn best and most easily through doing, application, tutorials and examples. Manuals are fine as references but don't work well to learn use of the app. Most significant apps come with tutorials as part of the instruction, and for good reason. Thanks for your response Allan. Kearney Buskirk From cskiadas at uchicago.edu Thu Mar 16 02:24:12 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Wed, 15 Mar 2006 20:24:12 -0600 Subject: [TxMt] too much space in pasting? In-Reply-To: <645C15F5-CF5D-427B-9752-D6204B4B467A@lightthrumedia.com> References: <143FD18C-B73D-423C-86D8-20F7C9E9A397@macromates.com> <645C15F5-CF5D-427B-9752-D6204B4B467A@lightthrumedia.com> Message-ID: <5BFD3CCE-2EF0-4D96-88FB-AFFC4C774B53@uchicago.edu> On Mar 15, 2006, at 7:06 PM, Kearney Buskirk wrote: > Hello Folks > > I've gone to the screencast page and tried to play most of the > movies. I get no sound from those movies. (QT7.0, 10.4.4 here, fast > cable connection on G5 dual 2.3, 2 gigs of RAM.) Looking at them, > they seem to be much more about Python or Ruby than about TextMate. Download them directly: http://macromates.com/screencast/python_part_1.mov and three more here: http://skiadas.dcostanet.net/afterthought/category/mac-os-x/textmate/ They should play just fine, I have a much weaker system than that. The screencasts tend of course to focus on whatever language the person doing them is using, but they often demonstrate things that you can use more generally, for instance columnar typing. I admit it would be nice if we had some screencasts in how to use TextMate for HTML editing, in particular related to the live preview feature. It's just a question of someone doing them really. What I would recommend though is simply opening the HTML bundle in the bundle editor and seeing what each command/snippet/macro does. That will teach you a lot more about what TM can do than any screencast. And you can always ask in this list and in the irc channel if you have any questions. > > Kearney Buskirk Haris From bbum at mac.com Thu Mar 16 05:53:59 2006 From: bbum at mac.com (William Bumgarner) Date: Wed, 15 Mar 2006 21:53:59 -0800 Subject: [TxMt] Combining themes Message-ID: <02B61F57-CFB1-4DEA-AB25-0EFBF77EEEB2@mac.com> I'm just now playing with TextMate for the first time and, of course, had to futz with themes a bit to get to my preferred light-on-dark kinda coding environment.... Question: How do you tell what scope is under the cursor? I found that I really liked Vibrant Ink, but it lacked scope definitions for Objective-C and some of the other modes I end up dealing with. However, the built in Espresso Libre did a pretty good job otherwise. Since copy/paste didn't work in the Prefs pane (Feature! Feature!), I ended up copying the various random settings elements from one plist to the other. Being too lazy to actually sort out the dupes, I wrote a wee bit of python (you'll need PyObjC) that rips through the resulting plist and eliminates duplicate settings (names only). http://svn.red-bean.com/bbum/trunk/hacques/TextMate/ It is dumb. It should normalize by scope. I should fix that. Actually, it really is broken -- it really should normalize by scope. Ah, well.. it'll limp along enough for now. b.bum From paul.mccann at adelaide.edu.au Thu Mar 16 06:09:36 2006 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Thu, 16 Mar 2006 16:39:36 +1030 Subject: [TxMt] Combining themes In-Reply-To: <02B61F57-CFB1-4DEA-AB25-0EFBF77EEEB2@mac.com> References: <02B61F57-CFB1-4DEA-AB25-0EFBF77EEEB2@mac.com> Message-ID: <3CE25007-2813-4326-8321-769521ED88C9@adelaide.edu.au> Bill Bumgarner asked... > Question: How do you tell what scope is under the cursor? Control-shift-P (it's a command in the "TextMate" bundle: click the gear at the base of the page, then navigate to "TextMate"). Cheers, Paul From lists at v2studio.com Thu Mar 16 08:31:37 2006 From: lists at v2studio.com (Caio Chassot) Date: Thu, 16 Mar 2006 05:31:37 -0300 Subject: [TxMt] minor change to javascript folding Message-ID: <4A24A962-3EFE-4F1C-98EB-D8EAECF52320@v2studio.com> I changed the foldingStartMarker to this: '^.*\bfunction\s*([\$|\w]\w*\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$'; The only reason is that now I can fold this funny-named prototype function: function $() Anyway, if you want to commit this change... From bbum at mac.com Thu Mar 16 19:47:44 2006 From: bbum at mac.com (William Bumgarner) Date: Thu, 16 Mar 2006 11:47:44 -0800 Subject: [TxMt] Wrap to Page / 80 Columns Message-ID: <5888F9E0-A617-43F3-A558-0149E09AA525@mac.com> Here is a simple patch to the Text tmbundle that adds "Wrap to Page" and "Wrap to 80 Columns" commands. I find the latter particularly useful when writing scripting language code -- should probably be 78 columns to support the '# ' comment at the head.... Index: Commands/Wrap to 80 Columns.plist =================================================================== --- Commands/Wrap to 80 Columns.plist (revision 0) +++ Commands/Wrap to 80 Columns.plist (revision 0) @@ -0,0 +1,20 @@ + + + + + beforeRunningCommand + nop + command + tr -s '[\t\n]' ' '|fold -sw 80 + input + selection + keyEquivalent + ~@* + name + Wrap to 80 Columns + output + replaceSelectedText + uuid + E48F1BEB-C5CE-4FD2-84F1-F361D9128CB7 + + Index: Commands/Wrap to Document Width.plist =================================================================== --- Commands/Wrap to Document Width.plist (revision 0) +++ Commands/Wrap to Document Width.plist (revision 0) @@ -0,0 +1,20 @@ + + + + + beforeRunningCommand + nop + command + tr -s '[\t\n]' ' '|fold -sw $TM_COLUMNS + input + selection + keyEquivalent + + name + Wrap to Document Width + output + replaceSelectedText + uuid + 72C490BF-7131-4B32-A475-350D85FA990F + + Index: info.plist =================================================================== --- info.plist (revision 2858) +++ info.plist (working copy) @@ -21,6 +21,8 @@ 3010E2A8-6E4F-11D9-A18D-000D93589AF6 AA202E76-8A0A-11D9-B85D-000D93589AF6 3AA8A593-6E4C-11D9-91AF-000D93589AF6 + 72C490BF-7131-4B32-A475-350D85FA990F + E48F1BEB-C5CE-4FD2-84F1-F361D9128CB7 FB8960DB-AA2E-11D9-8E27-000D93589AF6 3D7504EE-B927-4D3D-A3CC-BFB189027EE7 80CC504F-B13B-11D9-B41F-000D93589AF6 From riko at anubics.org Thu Mar 16 21:44:51 2006 From: riko at anubics.org (Enrico Franchi) Date: Thu, 16 Mar 2006 22:44:51 +0100 Subject: [TxMt] The missing font... Message-ID: <5A0BEA13-F552-47C0-9A71-B3F654F190B3@anubics.org> I know this sounds like a stupid question. But can anybody tell me which font is the one in the "Slate theme" image on TextMate Wiki? -enrico From fredb7 at starflam.com Thu Mar 16 22:35:42 2006 From: fredb7 at starflam.com (Fred B.) Date: Thu, 16 Mar 2006 23:35:42 +0100 Subject: [TxMt] The missing font... In-Reply-To: <5A0BEA13-F552-47C0-9A71-B3F654F190B3@anubics.org> References: <5A0BEA13-F552-47C0-9A71-B3F654F190B3@anubics.org> Message-ID: <320C3F5E-4C43-4D27-B9C7-F63913748561@starflam.com> On 16 Mar 2006, at 22:44, Enrico Franchi wrote: > I know this sounds like a stupid question. But can anybody tell me > which font is the one in the "Slate theme" image on TextMate Wiki? The almighty ProFont [1]. ;) I love it. [1]http://www.tobias-jung.de/seekingprofont/ From sean at datafly.net Fri Mar 17 02:18:18 2006 From: sean at datafly.net (Sean Schertell) Date: Fri, 17 Mar 2006 11:18:18 +0900 Subject: [TxMt] Default bundles? Message-ID: Hi guys, I seem to have somehow hosed my bundles or commands or something. Lot's of things don't work such as CMD+/ for comments or CMD+RETURN for end of line then return, etc. Is there anyway I can get fresh default bundles? Or is there something else I can do to fix these things? Sean :::: DataFly.Net :::: Complete Web Services http://www.datafly.net From throw-away-1 at macromates.com Fri Mar 17 02:24:23 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 17 Mar 2006 03:24:23 +0100 Subject: [TxMt] Default bundles? In-Reply-To: References: Message-ID: On 17/3/2006, at 3:18, Sean Schertell wrote: > I seem to have somehow hosed my bundles or commands or something. > Lot's of things don't work such as CMD+/ for comments or CMD+RETURN > for end of line then return, etc. Likely you disabled the Source bundle. > Is there anyway I can get fresh default bundles? Or is there > something else I can do to fix these things? http://lists.macromates.com/pipermail/textmate/2006-March/008978.html From cskiadas at uchicago.edu Fri Mar 17 02:24:25 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Thu, 16 Mar 2006 20:24:25 -0600 Subject: [TxMt] Default bundles? In-Reply-To: References: Message-ID: On Mar 16, 2006, at 8:18 PM, Sean Schertell wrote: > Hi guys, > > I seem to have somehow hosed my bundles or commands or something. > Lot's of things don't work such as CMD+/ for comments or CMD+RETURN > for end of line then return, etc. > > Is there anyway I can get fresh default bundles? Or is there > something else I can do to fix these things? > These are usually caused by disabling the Source bundle. Open the bundle editor, and if the source bundle does not show up, click on the "filter list..." and enable it. Then these shortcuts you mentioned should start working again. If the source bundle does show up in the bundle editor, then you will probably want to delete some part of ~/Library/Application Support/ TextMate/Bundles, at the very least the source.tmbundle subdirectory. You'd need to restart textmate for this to work. > Sean > > :::: DataFly.Net :::: > Complete Web Services > http://www.datafly.net Haris From sean at datafly.net Fri Mar 17 03:10:04 2006 From: sean at datafly.net (Sean Schertell) Date: Fri, 17 Mar 2006 12:10:04 +0900 Subject: [TxMt] Default bundles? In-Reply-To: References: Message-ID: <6E086474-C4D9-42AE-A83A-0DB7CAA1A1E9@datafly.net> Re-enabling the source bundle fixed me right up. Thanks very much gentlemen. :-) Sean On Mar 17, 2006, at 11:24 AM, Charilaos Skiadas wrote: > On Mar 16, 2006, at 8:18 PM, Sean Schertell wrote: > >> Hi guys, >> >> I seem to have somehow hosed my bundles or commands or something. >> Lot's of things don't work such as CMD+/ for comments or CMD >> +RETURN for end of line then return, etc. >> >> Is there anyway I can get fresh default bundles? Or is there >> something else I can do to fix these things? >> > These are usually caused by disabling the Source bundle. Open the > bundle editor, and if the source bundle does not show up, click on > the "filter list..." and enable it. Then these shortcuts you > mentioned should start working again. > If the source bundle does show up in the bundle editor, then you > will probably want to delete some part of ~/Library/Application > Support/TextMate/Bundles, at the very least the source.tmbundle > subdirectory. You'd need to restart textmate for this to work. >> Sean >> >> :::: DataFly.Net :::: >> Complete Web Services >> http://www.datafly.net > > Haris > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > > :::: DataFly.Net :::: Complete Web Services http://www.datafly.net From andreaswahlin at bredband.net Fri Mar 17 10:55:21 2006 From: andreaswahlin at bredband.net (Andreas Wahlin) Date: Fri, 17 Mar 2006 11:55:21 +0100 Subject: [TxMt] Possible crisis with $TM_variables Message-ID: I was trying to install the footnote plugin from syncPeople on Rails, and nothing happened. Then I fiddled around a bit and detected that Show Scope didn't work either. So I thought maybe there was a problem with the path $TM_xxx variables (those are paths, mainly, right?). So using appZapper I did a complete reinstall and I think I've put everything in the standard place but still no luck, neither plugin install nor showing of scope works. Any help? I have all bundles activated and I've also activated the macros using the automation menu so as to avoid any keyboard mistypings. Andreas From newsgr at tobiasjung.net Fri Mar 17 18:03:04 2006 From: newsgr at tobiasjung.net (Tobias Jung) Date: Fri, 17 Mar 2006 19:03:04 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: References: Message-ID: At 20:07 Uhr +0100 15.03.2006, Yvon Thoraval wrote: > today i've discovered may be a prob with file encoding (???) over > a .txt file. > > my pref setup is tuned to UTF-8 and a text file edited by TextMate > was MacOS Roman, something to avoid definitely... > > then, using another text editor i've converted this file to UTF-8 and > discovered again that after having edited this file with TextMate the > file becomes again in MacOS Roman... > > the symtom is that TextEdit (also setup default to UTF-8) is unable > to open the file. > > did other get about the same prob ??? Same thing here today: I've got a file that is encoded with UTF-8, but it has to be ISO-8859-1. So I select "ISO-8859-1" from the encoding menue in the "Save As" dialog. But when re-opening the file, it's still UTF-8. (Another text editor is telling me the same thing.) In Preferences -> Advanced -> Saving, I've set File Encoding to "ISO-8859-1" and "Use for existing files as well" is NOT checked because usually I don't want to change the file encoding but rather keep it the way it is. After converting the file using Cyclone [1], everything was fine but of course I'd prefer to change the encoding in TextMate. Did I do something wrong or is this a bug? Kind regards, Tobias [1] From jose.campos+tm at galacsys.com Fri Mar 17 18:44:19 2006 From: jose.campos+tm at galacsys.com (=?ISO-8859-1?Q?Jos=E9_Campos?=) Date: Fri, 17 Mar 2006 19:44:19 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: Message-ID: <1hcczz1.sdllm7x0m9byM%jose.campos+tm@galacsys.com> Tobias Jung wrote: > I've got a file that is encoded with UTF-8, but it has to be ISO-8859-1. > So I select "ISO-8859-1" from the encoding menue in the "Save As" dialog. > But when re-opening the file, it's still UTF-8. (Another text editor is > telling me the same thing.) If you have at least one character in your file that is not in the charset you choose, then your file will be encoded as utf-8. Just find the faulty character, or decide to work with utf-8 file ;-) -- Jo 1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72 From newsgr at tobiasjung.net Fri Mar 17 19:00:39 2006 From: newsgr at tobiasjung.net (Tobias Jung) Date: Fri, 17 Mar 2006 20:00:39 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: <1hcczz1.sdllm7x0m9byM%jose.campos+tm@galacsys.com> References: <1hcczz1.sdllm7x0m9byM%jose.campos+tm@galacsys.com> Message-ID: At 19:44 Uhr +0100 17.03.2006, Jos? Campos wrote: > If you have at least one character in your file that is not in the > charset you choose, then your file will be encoded as utf-8. Just find > the faulty character, or decide to work with utf-8 file ;-) Indeed! It was the endash character (option with -). I really thought that it is available in ISO-8859-1. After replacing this with the normal dash, the file wasn't saved anymore as UFT-8. > or decide to work with utf-8 file ;-) Well, that's not up to me in this case. The project manager decided that all files have to be saved using ISO-8859-1. Anyway, thanks a lot! :-) Kind regards, Tobias From andy.herbert at ntlworld.com Fri Mar 17 20:09:58 2006 From: andy.herbert at ntlworld.com (Andy Herbert) Date: Fri, 17 Mar 2006 20:09:58 +0000 Subject: [TxMt] Nested snippet problem Message-ID: <10AE0142-DA1A-4F2B-A71E-9D5E95EAB8EA@ntlworld.com> I've been experiencing a problem in the otherwise excellent Textmate, it's related to tab-completing a snippet within a tab completed snippet, here's a simple example to illustrate my problem: I have created a new text.html document and typed mailto to get the mailto snippet, now in the href value I am attempting to insert another snippet I've created which is a shortcut for my email address, unfortunately it assumes the shortcut is the value for href, then moves to the subject value. I can understand why Textmate works this way, after all, why would you want to insert a snippet in to a field which expects a literal value, but ideally I would expect it to tab-complete the email address, then another tab to move to the subject field. From throw-away-1 at macromates.com Fri Mar 17 20:33:19 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 17 Mar 2006 21:33:19 +0100 Subject: [TxMt] Nested snippet problem In-Reply-To: <10AE0142-DA1A-4F2B-A71E-9D5E95EAB8EA@ntlworld.com> References: <10AE0142-DA1A-4F2B-A71E-9D5E95EAB8EA@ntlworld.com> Message-ID: <21EE6621-ACAF-4389-902B-F52CF571CDD4@macromates.com> On 17/3/2006, at 21:09, Andy Herbert wrote: > [...] but ideally I would expect it to tab-complete the email > address, then another tab to move to the subject field. Nested snippets are on the to-do: http://lists.macromates.com/pipermail/textmate/2005-December/ 007470.html From cskiadas at uchicago.edu Fri Mar 17 20:40:22 2006 From: cskiadas at uchicago.edu (Charilaos Skiadas) Date: Fri, 17 Mar 2006 14:40:22 -0600 Subject: [TxMt] Nested snippet problem In-Reply-To: <10AE0142-DA1A-4F2B-A71E-9D5E95EAB8EA@ntlworld.com> References: <10AE0142-DA1A-4F2B-A71E-9D5E95EAB8EA@ntlworld.com> Message-ID: <4014E864-1E49-48E3-A015-732FA1041B66@uchicago.edu> On Mar 17, 2006, at 2:09 PM, Andy Herbert wrote: > I've been experiencing a problem in the otherwise excellent > Textmate, it's related to tab-completing a snippet within a tab > completed snippet, here's a simple example to illustrate my problem: > > I have created a new text.html document and typed mailto to > get the mailto snippet, now in the href value I am attempting to > insert another snippet I've created which is a shortcut for my > email address, unfortunately it assumes the shortcut is the value > for href, then moves to the subject value. > > I can understand why Textmate works this way, after all, why would > you want to insert a snippet in to a field which expects a literal > value, but ideally I would expect it to tab-complete the email > address, then another tab to move to the subject field. There are a number of reasons why one would want nested snippets, and they are on Allan's todo list, but currently they are not implemented. As a solution to your problem, I would suggest using something like Textpander (http://www.petermaurer.de/nasi.php?section=textpander) for such shortcuts like your email address etc. Or alternatively, don't have your shortcut triggered by a tab trigger, but instead by a key equivalent. As a third solution, you can create a "mymailto" snippet that would automatically insert your email address in there. Haris From throw-away-1 at macromates.com Fri Mar 17 21:09:25 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 17 Mar 2006 22:09:25 +0100 Subject: [TxMt] Possible crisis with $TM_variables In-Reply-To: References: Message-ID: <497EB490-1AB6-4081-86E4-EC7B2F9D6CC9@macromates.com> On 17/3/2006, at 11:55, Andreas Wahlin wrote: > [...] So I thought maybe there was a problem with the path $TM_xxx > variables (those are paths, mainly, right?) These are environment variables set by TextMate. Unless the shell command which runs unset them or similar, no ?external? stuff should affect them. > [...] neither plugin install nor showing of scope works. Any help? Are those the only two commands which do not work? As for Show Scope, it shows a tool tip, so if you call it from the menu, it might just go away as soon as it opens. Try e.g. from a new document to type: echo "$TM_SCOPE" # press ctrl-R to execute And try the ctrl-shift P key equivalent. From throw-away-1 at macromates.com Fri Mar 17 21:18:22 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Fri, 17 Mar 2006 22:18:22 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: References: <1hcczz1.sdllm7x0m9byM%jose.campos+tm@galacsys.com> Message-ID: On 17/3/2006, at 20:00, Tobias Jung wrote: >> or decide to work with utf-8 file ;-) > Well, that's not up to me in this case. > The project manager decided that all files have to be saved using > ISO-8859-1. It?s not my job to meddle, but he is making a mistake, and the sooner he realizes it, the better :) Hopefully none of the pages have forms where the user can submit data. From newsgr at tobiasjung.net Fri Mar 17 22:21:41 2006 From: newsgr at tobiasjung.net (Tobias Jung) Date: Fri, 17 Mar 2006 23:21:41 +0100 Subject: [TxMt] TextMate ant *.txt files encoding In-Reply-To: References: <1hcczz1.sdllm7x0m9byM%jose.campos+tm@galacsys.com> Message-ID: At 22:18 Uhr +0100 17.03.2006, Allan Odgaard wrote: >>> or decide to work with utf-8 file ;-) >> Well, that's not up to me in this case. >> The project manager decided that all files have to be saved using >> ISO-8859-1. > > It's not my job to meddle, but he is making a mistake, and the sooner > he realizes it, the better :) Since this lists can be read via a web browser, I will not reply to this. I might happen to mention that he's making even worse mistakes... oooops! ;-) btw, Allan, could you add a warning when TextMate automatically switches to UTF-8 in such cases? I guess it's not a very important thing but it'd be nice anyway... Kind regards, Tobias From andreaswahlin at bredband.net Fri Mar 17 23:01:45 2006 From: andreaswahlin at bredband.net (Andreas Wahlin) Date: Sat, 18 Mar 2006 00:01:45 +0100 Subject: [TxMt] Possible crisis with $TM_variables In-Reply-To: <497EB490-1AB6-4081-86E4-EC7B2F9D6CC9@macromates.com> References: <497EB490-1AB6-4081-86E4-EC7B2F9D6CC9@macromates.com> Message-ID: Thanks for the tips, I just realized what it was. I followed this hint http://www.macosxhints.com/article.php?story=20060222011953661&lsrc=osxh basically it forces the terminal to ask if you really want ta run a process, I got rid of it and it helped. To much security = bad functionality. Andreas On Mar 17, 2006, at 22:09 , Allan Odgaard wrote: > On 17/3/2006, at 11:55, Andreas Wahlin wrote: > >> [...] So I thought maybe there was a problem with the path $TM_xxx >> variables (those are paths, mainly, right?) > > These are environment variables set by TextMate. Unless the shell > command which runs unset them or similar, no ?external? stuff > should affect them. > >> [...] neither plugin install nor showing of scope works. Any help? > > Are those the only two commands which do not work? > > As for Show Scope, it shows a tool tip, so if you call it from the > menu, it might just go away as soon as it opens. > > Try e.g. from a new document to type: > > echo "$TM_SCOPE" # press ctrl-R to execute > > And try the ctrl-shift P key equivalent. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From chris at cjack.com Sat Mar 18 02:20:09 2006 From: chris at cjack.com (Chris Thomas) Date: Fri, 17 Mar 2006 21:20:09 -0500 Subject: [TxMt] Possible crisis with $TM_variables In-Reply-To: References: <497EB490-1AB6-4081-86E4-EC7B2F9D6CC9@macromates.com> Message-ID: <02639A71-D6E1-4B9C-AABB-1FFA51A69535@cjack.com> > To much security = bad functionality. To be clear, bad security == bad functionality. That hint is messing with the system at a low level, and it will break stuff, as you've discovered. Not to mention that it only catches a subset of this particular attack. The grief/benefit ratio is heavily on the side of "grief", the benefit is practically nil. Chris From josh at metacarpal.net Sat Mar 18 19:55:56 2006 From: josh at metacarpal.net (Josh DiMauro) Date: Sat, 18 Mar 2006 14:55:56 -0500 Subject: [TxMt] TextMate selectively refuses to open files. Message-ID: A search of the ML archives has come up empty, so I turn to the mothership: I have a problem. Textmate is selectively refusing to open (or, rather, display) files that it should have no problem with. Some quick and dirty testing seems to indicate that this has to do with specific file extensions. It first manifested with a problem in using the "Edit in TextMate" command, but now I fear it's more widespread than that. First, an example to show what the behavior is like. Then, how it affects the whole system. ### Illustrative Example ### At the moment I am writing this email in TextMate, via using the "Edit in TextMate" command. The file: /private/var/tmp/folders.501/TemporaryItems/Trouble with "Edit in Textmate".mail opens just fine in TextMate. An experiment shows that I can open it fine from the Finder by dragging it onto the TM icon. However, when I tried to write this email from gmail, and used the "Edit in TextMate" command from within Safari, it changes focus to TextMate, but no file opens. A file has been created: /private/var/tmp/folders.501/TemporaryItems/Loading ?Gmail - Compose Mail?.safari But textmate won't open it, not via File:Open, not via a drag to the dock, and not via Get Info association of .safari files with TextMate. __However__. If I select _more than one_ .safari file in the Finder, and drag them to the TextMate, a very odd thing happens. Textmate opens a new project with the three files listed. But clicking on one of those files doesn't actually open the file: ![TextMate Project Blank Tab](http://images.metacarpal.net/blog/ textmateoddbehavior1.png) You get a blank tab. Clicking on that tab _does_ display the file: ![TextMate Project Clicked Tab](http://images.metacarpal.net/blog/ textmateoddbehavior2.png) So there's something odd going on here. Another wrinkle is that, once you've clicked the tab and closed it once, it opens properly from the Project drawer. But not from the Finder or File:Open or the "Edit in TextMate" command. (Yes, I am OCD about checking things like this out, why do you ask?) I thought this was just for items in the TemporaryItems folder. But, it seems, I was wrong about that. I dragged a .safari file to the desktop and tried to open from there. No dice. Same odd multiple-item behavior. ### The Real Problem ### The loss of "Edit in TextMate" from the browser is, for me, bad enough. I have tasted the "real text editor for the browser" crack, and I'm hooked. But what really gets me is that this started with .php files, in Transmit. And I can't open .php files at all. I first edited a .php file remotely in Transmit, off my SFTP server. Saved the contents, got a system beep, closed it. Totally normal, except that after that, .php files broke. Same behavior as above: I try double-clicking a .php file in the Finder, I get TextMate open and nothing else; no document window, nothing. Multiple .php files = a new project with multiple files in the drawer. Clicking one gets a blank tab. Clicking the tab shows the file. Now, I _can_ edit non-php files remotely in Transmit. HTML works fine. Python works fine. But no .php Naturally, I spend most of my remote time editing .php files these days. :/ I'd prefer not to have to totally nuke TextMate, but I would really dearly love to have a functional text editor. Thanks in advance. Cheers, -- Josh DiMauro josh at metacarpal.net http://blog.metacarpal.net From optikos at gmail.com Sat Mar 18 20:30:39 2006 From: optikos at gmail.com (Ken Scott) Date: Sat, 18 Mar 2006 13:30:39 -0700 Subject: [TxMt] Customizing Default Bundles Message-ID: I'm helping a group that I consult with in customizing TextMate for their PHP development. They have a library of functions within their company that they want to have syntax-highlighted, similar to the built-in PHP functions. I accomplished this by creating a custom bundle, making a scope for their functions and adding the appropriate functions to the patterns section of the new language file. My problem is this: In order to get this new scope included with PHP files, I modified the default PHP.tmbundle with { include = 'source.php.ccb'; }, This works great, everything highlights. *But*, now this is a custom PHP bundle, and any updates to the default will be masked, until the new default is manually changed. Is there any way that I can "inject" my new scope into the PHP bundle without modifying the PHP bundle itself? I tried adding another language to my custom bundle, and just putting the include line in for the source.php scope. This disabled all the other PHP functionality. Thanks for the help, Ken Scott From mummer at whitefalls.org Sat Mar 18 22:53:59 2006 From: mummer at whitefalls.org (Michael Sheets) Date: Sat, 18 Mar 2006 16:53:59 -0600 Subject: [TxMt] TextMate selectively refuses to open files. In-Reply-To: References: Message-ID: <44370428-135E-4BD8-B04D-7E1DB425266C@whitefalls.org> I don't know why it wouldn't open a single file, it should open anything dragged onto it. But when your in a project situation there is a reason, it prevents opening of any extension it doesn't know about. This is incase you have large binary files you wouldn't want them taking a long time to open if you clicked them by accident. You can right click on the file (in the sidebar) and toggle the "Treat .xxx files as text/binary" option. It will remember it from then on. I'll let someone else tackle the single file instance... From mummer at whitefalls.org Sat Mar 18 22:55:59 2006 From: mummer at whitefalls.org (Michael Sheets) Date: Sat, 18 Mar 2006 16:55:59 -0600 Subject: [TxMt] Customizing Default Bundles In-Reply-To: References: Message-ID: Reverse your method, include PHP in your syntax. That way you keep getting updates to the PHP syntax and such. All you have to do is then select your new syntax in the language popup at the bottom of the window. From throw-away-1 at macromates.com Sun Mar 19 01:04:44 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Sun, 19 Mar 2006 02:04:44 +0100 Subject: [TxMt] TextMate selectively refuses to open files. In-Reply-To: References: Message-ID: <6F233399-AF35-49FB-8C74-1C742BE1CC27@macromates.com> On 18/3/2006, at 20:55, Josh DiMauro wrote: > [...] You get a blank tab. Clicking on that tab _does_ display the > file: I think what happens here is that an exception is thrown somewhere in the ?load/setup file? phase, which is causing the strange behavior. If you open Console.app you will be able to see if such exception was thrown and what it is named (please quote it here). If the problem is an exception, my guess would be that something in the preferences is corrupt, and causing it. A quick test would be to rename: ~/Library/Preferences/com.macromates.textmate.plist If this is the problem, please send me the old file (off list, as it contains your license information) so I can further diagnose it. From josh at metacarpal.net Sun Mar 19 01:55:58 2006 From: josh at metacarpal.net (Josh DiMauro) Date: Sat, 18 Mar 2006 20:55:58 -0500 Subject: [TxMt] TextMate selectively refuses to open files. In-Reply-To: <6F233399-AF35-49FB-8C74-1C742BE1CC27@macromates.com> References: <6F233399-AF35-49FB-8C74-1C742BE1CC27@macromates.com> Message-ID: On Mar 18, 2006, at 8:04 PM, Allan Odgaard wrote: > On 18/3/2006, at 20:55, Josh DiMauro wrote: > >> [...] You get a blank tab. Clicking on that tab _does_ display the >> file: > > I think what happens here is that an exception is thrown somewhere > in the ?load/setup file? phase, which is causing the strange behavior. > > If you open Console.app you will be able to see if such exception > was thrown and what it is named (please quote it here). Yup. When opening a *.php file or trying to edit from Safari, I get: 2006-03-18 20:42:08.382 TextMate[14497] *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value > If the problem is an exception, my guess would be that something in > the preferences is corrupt, and causing it. A quick test would be > to rename: > > ~/Library/Preferences/com.macromates.textmate.plist Renaming the pref file does fix the problem. Of course, there's redoing my prefs... oh, well. :) > > If this is the problem, please send me the old file (off list, as > it contains your license information) so I can further diagnose it. Sent. Thanks. :) -- Josh DiMauro josh at metacarpal.net http://blog.metacarpal.net From optikos at gmail.com Sun Mar 19 02:47:04 2006 From: optikos at gmail.com (Ken Scott) Date: Sat, 18 Mar 2006 19:47:04 -0700 Subject: [TxMt] Customizing Default Bundles In-Reply-To: References: Message-ID: <8DD4C289-E6EF-4C2D-80B1-223DDB46F172@gmail.com> On Mar 18, 2006, at 3:55 PM, Michael Sheets wrote: > Reverse your method, include PHP in your syntax. That way you keep > getting updates to the PHP syntax and such. All you have to do is > then select your new syntax in the language popup at the bottom of > the window. I think this would work with most languages, but PHP is included into the HTML bundle, and that is the language that is actually selected for doing PHP syntax highlighting. If I included PHP to mine, I would then want to modify HTML, and have the same issue. Ken From throw-away-1 at macromates.com Sun Mar 19 03:02:03 2006 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Sun, 19 Mar 2006 04:02:03 +0100 Subject: [TxMt] Customizing Default Bundles In-Reply-To: <8DD4C289-E6EF-4C2D-80B1-223DDB46F172@gmail.com> References: <8DD4C289-E6EF-4C2D-80B1-223DDB46F172@gmail.com> Message-ID: <59E7E9F5-9340-48C1-B270-6968CEC27005@macromates.com> On 19/3/2006, at 3:47, Ken Scott wrote: > [...] If I included PHP to mine, I would then want to modify HTML, > and have the same issue. Yes -- unfortunately there is no good solution to this problem ATM. One could create both a new PHP and a new HTML (which include the old HTML and your new PHP). So something like: // custom PHP { name = "source.php.custom"; patterns = ( ... // our rules { include = "source.php"; } ); } // custom HTML { name = "text.html.custom"; ... // folding markers and stuff patterns = ( { begin = '<\?php'; end = '\?>'; include = "source.php.custom"; }, { include = "text.html.basic"; } ); } With this approach only the ?root? constructs though would get the custom PHP rules. To have it used e.g. also in attribute values, one would have to replicate more of the HTML grammar. From tsom467 at gmail.com Sun Mar 19 03:02:55 2006 From: tsom467 at gmail.com (John Tsombakos) Date: Sat, 18 Mar 2006 22:02:55 -0500 Subject: [TxMt] Problems with vb.asp.net bundle Message-ID: Hi all, Recent user of TextMate... I've downloaded the latest bundles via subversion and have noticed a problem with the vb.asp.net bundle. If I try to open an .asp file, which is not a .NET file, just plain asp, there are errors generated in the Console: TextMate: zero width match (swallow pattern) { begin = "\\("; "begin_nfa" = <058c1720 >; end = "\\)"; "end_nfa" = <006192d0 >; name = "meta.round-brackets"; patterns = ({include = "source.asp.vb.net"; }); swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)"; "swallow_nfa" = <04ed1cb0 >; } TextMate: zero width match (swallow pattern) { begin = "\\("; "begin_nfa" = <058c1720 >; end = "\\)"; "end_nfa" = <006192d0 >; name = "meta.round-brackets"; patterns = ({include = "source.asp.vb.net"; }); swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)"; "swallow_nfa" = <04ed1cb0 >; } TextMate: zero width match (swallow pattern) { begin = "\\("; "begin_nfa" = <058c1720 >; end = "\\)"; "end_nfa" = <006192d0 >; name = "meta.round-brackets"; patterns = ({include = "source.asp.vb.net"; }); swallow = "(\\([^\\)]*[^\\)]*\\)|s*\\n*s*)"; "swallow_nfa" = <04ed1cb0 >; } ...about 39 times. I'm not sure if it corresponds to anything in my .asp file. It's a rather simple file. Also, if I create a new HTML file using the New from Template -> HTML command, and I try to insert a