Hi,
I've done a basic search on Google but can't find anything specific about a problem I'm having with Textmate, namely handling large textfiles or textfiles with long lines.
It's driving me nuts. I'm having to deal with XML and HTML files which have been 'compacted' so there are no carriage returns / line feeds and I want to tidy them up in TextMate so I can make then human readable but TextMate just takes forever to load the files. TextPad on the PC has no problems, but I didn't switch to Mac for my Windows colleagues to point and laugh! :) Seems like a basic capability of text editor that TextMate just can't deal with.
Had this been noted before? Is there a fix in the pipeline?
Thanks, Ian.
On Apr 25, 2008, at 3:31 PM, Ian Kershaw wrote:
Hi,
I've done a basic search on Google but can't find anything specific about a problem I'm having with Textmate, namely handling large textfiles or textfiles with long lines.
It's driving me nuts. I'm having to deal with XML and HTML files which have been 'compacted' so there are no carriage returns / line feeds and I want to tidy them up in TextMate so I can make then human readable but TextMate just takes forever to load the files. TextPad on the PC has no problems, but I didn't switch to Mac for my Windows colleagues to point and laugh! :) Seems like a basic capability of text editor that TextMate just can't deal with.
Had this been noted before? Is there a fix in the pipeline?
Thanks, Ian.
-- Ian Kershaw
Yes, this is the oldest bug evar. It will probly be fixed in TM2. You can work around it by writing a super short ruby script to replace "><" with ">\n<"
Yes, it is a shockingly embarrassing bug :[ but there are hundreds of billions of awesome features that will make all your windows buddies extremely defensive and secretly cry themselves to sleep at night.
Ah, good to know. Thanks.
On Sat, Apr 26, 2008 at 12:47 AM, Thomas Aylott - subtleGradient < textmate@subtlegradient.com> wrote:
On Apr 25, 2008, at 3:31 PM, Ian Kershaw wrote:
Hi,
I've done a basic search on Google but can't find anything specific about a problem I'm having with Textmate, namely handling large textfiles or textfiles with long lines.
It's driving me nuts. I'm having to deal with XML and HTML files which have been 'compacted' so there are no carriage returns / line feeds and I want to tidy them up in TextMate so I can make then human readable but TextMate just takes forever to load the files. TextPad on the PC has no problems, but I didn't switch to Mac for my Windows colleagues to point and laugh! :) Seems like a basic capability of text editor that TextMate just can't deal with.
Had this been noted before? Is there a fix in the pipeline?
Thanks, Ian.
-- Ian Kershaw
Yes, this is the oldest bug evar. It will probly be fixed in TM2. You can work around it by writing a super short ruby script to replace "><" with ">\n<"
Yes, it is a shockingly embarrassing bug :[ but there are hundreds of billions of awesome features that will make all your windows buddies extremely defensive and secretly cry themselves to sleep at night.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Well... you could do this on your file:
cat foo.xml | ruby -e 'puts STDIN.read.gsub(/></, ">\n<")' | mate
WDYT?
On Apr 25, 2008, at 8:39 PM, Ian Kershaw wrote:
Ah, good to know. Thanks.
On Sat, Apr 26, 2008 at 12:47 AM, Thomas Aylott - subtleGradient <textmate@subtlegradient.com
wrote:
On Apr 25, 2008, at 3:31 PM, Ian Kershaw wrote:
Hi,
I've done a basic search on Google but can't find anything specific about a problem I'm having with Textmate, namely handling large textfiles or textfiles with long lines.
It's driving me nuts. I'm having to deal with XML and HTML files which have been 'compacted' so there are no carriage returns / line feeds and I want to tidy them up in TextMate so I can make then human readable but TextMate just takes forever to load the files. TextPad on the PC has no problems, but I didn't switch to Mac for my Windows colleagues to point and laugh! :) Seems like a basic capability of text editor that TextMate just can't deal with.
Had this been noted before? Is there a fix in the pipeline?
Thanks, Ian.
-- Ian Kershaw
Yes, this is the oldest bug evar. It will probly be fixed in TM2. You can work around it by writing a super short ruby script to replace "><" with ">\n<"
Yes, it is a shockingly embarrassing bug :[ but there are hundreds of billions of awesome features that will make all your windows buddies extremely defensive and secretly cry themselves to sleep at night.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
-- Ian Kershaw
Save paper and the environment. Don't print this email unless necessary. If you do, print up to four pages on one sheet with free software FinePrint http://www.fineprint.com/ ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Oh, now that is sweet. After fixing the problem caused by Logitech Control Centre it works a treat.
Thanks very much!
On Sat, Apr 26, 2008 at 6:33 AM, s.ross cwdinfo@gmail.com wrote:
Well... you could do this on your file: cat foo.xml | ruby -e 'puts STDIN.read.gsub(/></, ">\n<")' | mate
WDYT?
On Apr 25, 2008, at 8:39 PM, Ian Kershaw wrote:
Ah, good to know. Thanks.
On Sat, Apr 26, 2008 at 12:47 AM, Thomas Aylott - subtleGradient < textmate@subtlegradient.com> wrote:
On Apr 25, 2008, at 3:31 PM, Ian Kershaw wrote:
Hi,
I've done a basic search on Google but can't find anything specific about a problem I'm having with Textmate, namely handling large textfiles or textfiles with long lines.
It's driving me nuts. I'm having to deal with XML and HTML files which have been 'compacted' so there are no carriage returns / line feeds and I want to tidy them up in TextMate so I can make then human readable but TextMate just takes forever to load the files. TextPad on the PC has no problems, but I didn't switch to Mac for my Windows colleagues to point and laugh! :) Seems like a basic capability of text editor that TextMate just can't deal with.
Had this been noted before? Is there a fix in the pipeline?
Thanks, Ian.
-- Ian Kershaw
Yes, this is the oldest bug evar. It will probly be fixed in TM2. You can work around it by writing a super short ruby script to replace "><" with ">\n<"
Yes, it is a shockingly embarrassing bug :[ but there are hundreds of billions of awesome features that will make all your windows buddies extremely defensive and secretly cry themselves to sleep at night.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
-- Ian Kershaw
Save paper and the environment. Don't print this email unless necessary. If you do, print up to four pages on one sheet with free software FinePrint http://www.fineprint.com/ ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 4/25/08 10:33 PM, in article 8A9B62C0-9280-4236-9A3F-33F4538780E4@gmail.com, "s.ross" cwdinfo@gmail.com wrote:
Well... you could do this on your file:
cat foo.xml | ruby -e 'puts STDIN.read.gsub(/></, ">\n<")' | mate
Kind of crude. Why wouldn't you just run the file thru "tidy"? m.
On 26-Apr-08, at 1:51 PM, Matt Neuburg wrote:
On 4/25/08 10:33 PM, in article 8A9B62C0-9280-4236-9A3F-33F4538780E4@gmail.com , "s.ross" cwdinfo@gmail.com wrote:
Well... you could do this on your file:
cat foo.xml | ruby -e 'puts STDIN.read.gsub(/></, ">\n<")' | mate
Kind of crude. Why wouldn't you just run the file thru "tidy"? m.
-- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: http://tinyurl.com/2rh4pf AppleScript: the Definitive Guide - Second Edition! http://www.amazon.com/gp/product/0596102119
It is unfortunate that files lacking newlines behave so poorly in TextMate. Vim also behaves poorly with files lacking newlines so we are in good company :)
Matt's right, just bring up Terminal and type "man tidy" to get a sense of what cleanups can be done prior to opening these compacted files in TextMate. You can also do the same thing through a GUI in OmniWeb's View Source window.
On Apr 26, 2008, at 12:21 PM, Matt Neuburg wrote:
Kind of crude. Why wouldn't you just run the file thru "tidy"? m.
Beware tidy.
It was simply not an option for me trying to debug users failing pages so they could show up in CrazyEgg reports since it would often correct the broken html that I was trying to debug. Sure, there are probly options you can set to make it do your evil bidding, but I greatly prefer something short and sweet that does exactly 1 thing in this case.