I am running Textmate on Snow Leopard. I've got the Ruby on Rails bundle in
my ~/Library/Application Support/Textmate/Bundles directory. However,
Textmate does not seem to see it? Any ideas...thanks in advance
--
View this message in context: http://old.nabble.com/Problem-installing-Ruby-on-Rails-bundle-tp26780280p26…
Sent from the textmate users mailing list archive at Nabble.com.
I fired up Firefox (the command-line version, so I could specify -jssh and use watir) and found
the following complaint.
firefox-bin[1614:903] Can't open input server /Users/bryanloc/Library/InputManagers/Edit in TextMate
Looking in my console log, I find scads of messages to this effect.
Can anyone tell me how to fix this problem?
Thanks.
Bryan
In my project sometimes i get some emty lines with tabs or tabs, spaces after text
For example:
> for ($i=0; $i < ; $i++)
> {
>
> // ↑line with tab(s)
> //this is a line with space at the end
> }
So i made the regexp: (^[\t| ]+[\n]|[\t| ]+$)
Strange result is that it works when ⌘-f
But when pressing ⌘⇧-f it doesn't search (or won't find anything)
Am i doing something wrong?
Regards Jasper
Alex Ross, thanks for all the hard work you've put into the latex2 bundle.
I have a request that maybe you can help with. There is a command in the latex bundle 'toggle starred' which adds or removes a star from sectioning commands:
/section{}
/section*{}
This works, but when executed it unfolds all of my folded blocks, and leaves the screen such a state that I completely lose where I was. Is this something that can be fixed?
Thanks.
>Is there a bundle for Google's programming language "Go" ? I only found one
>online http://gitorious.org/go-tmbundle , and it was an empty repo.
I put this one together. Let me know what you think....
Carl Forde
However beautiful the strategy, you should occasionally look at the results.
-- Winston Churchill
> Message: 7
> Date: Sun, 13 Dec 2009 18:30:08 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: Unwanted newline php
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <30CEA0C1-8185-4A7B-843F-CE02B65D4FA9(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 11 Dec 2009, at 8:41, Ryan Fitzer wrote:
>
>> $fstat = fstat(STDIN);
>> $stdin = fread(STDIN, $fstat['size']);
>
> I am surprised this works. STDIN is a pipe and can?t be stat?ed for
> file size.
>
> I would suggest instead using file_get_contents("php://stdin").
One of the reasons decided to use the fstat method as it was the only
documentation I could find on the STDIN subject that I could make
sense of (new to this). This post was my source.:
http://muffinresearch.co.uk/archives/2007/03/19/using-php-cli-for-textmate-….
Also, php.net's explanation offered the following, further making up my mind:
"php://stdin, php://stdout and php://stderr allow direct access to the
corresponding input or output stream of the PHP process. The stream
references a duplicate file descriptor, so if you open php://stdin and
later close it, you close only your copy of the descriptor--the actual
stream referenced by STDIN is unaffected. Note that PHP exhibited
buggy behavior in this regard until PHP 5.2.1. It is recommended that
you simply use the constants STDIN, STDOUT and STDERR instead of
manually opening streams using these wrappers."
source: http://php.net/manual/en/wrappers.php.php
I just plugged your recommendation in and it works fine. Thanks for the tip.
Ryan
--
Ryan Fitzer
Los Angeles, CA
http://www.ryanfitzer.comhttp://www.ryanpatrickfitzer.comhttp://www.portfoliorodeo.com
Normally on textmate I write something like this:
if($data)
{
if($var == 'two')
{
echo 'hello';
}
// I hit enter here
//Goes here...
// insted of here
}
The issue is that normally when I hit enter it would stay flush on the next
line where it would normally go. I noticed that after I installed Snow
Leopard I run into an issue where it no longer stays flushed, instead it
goes to the very beginning, and i have to hit "tab" in order to return to
the original location i wanted.
I have Snow Leopard at home and at work, same programs. This just happened
after I reformatted my comp at work, and it's a new install of Snow Leopard,
with new install of PHP I haven't added any bundles, etc...
Anyone have any ideas what might be the issue?
I'm writing a command using php that reorders a css property list by
string length. The problem I'm having is that a newline character is
being added at the beginning of the result for some reason (using
Replace selected text). I've consulted this thread
http://lists.macromates.com/textmate/2007-April/019068.html but I've
found no way of echoing a string without the newline being added. Here
is the command:
#!/usr/bin/php
<?php
$fstat = fstat(STDIN);
$stdin = fread(STDIN, $fstat['size']);
//print_r($stdin);
$pattern = '/\{(.*)\}/Us';
preg_match($pattern, $stdin, $matches);
$output = trim($matches[1], "\n");
$output = preg_split('/\n/', $output);
function sort_strlength($val_1, $val_2) {
// initialize the return value to zero
$retVal = 0;
// compare lengths
$firstVal = strlen($val_1);
$secondVal = strlen($val_2);
if($firstVal > $secondVal) {
$retVal = 1;
} else if($firstVal < $secondVal) {
$retVal = -1;
}
return $retVal;
}
uasort($output, "sort_strlength");
$out = '{' . "\n";
foreach($output as $line) {
$out .= $line . "\n";
}
$out .= '}';
print(trim($out));
?>
Any help would be appreciated.
Ryan
--
Ryan Fitzer
Los Angeles, CA
http://www.ryanfitzer.comhttp://www.portfoliorodeo.com
Hi,
what do I have to do if I want to convert from
array.each { |e| puts e }
to
array.each do |e|
puts e
end
I found the command toggle 'do ... end' / '{ ... }' but I don't know
exactly how to use it. Where has the cursor to be positioned? Do I have
to select any text?
The shortcut ^{ won't work because I have a German keyboard. But even if
I choose the command from the menue nothing happens.
thanks,
Martin
After some time I tried again to blog from textmate on wordpress.
One question, I get all the '"' translated to " also if I'm in
[source] code block.
That is a problem because in the wordpress page those areas don't get
interpreted, and if I change them they will go back to " next time
I post it.
Any solution for this problem?