[TxMt] Find/Replace Speed (inserting of many \n)
Alex Mason
axman6 at gmail.com
Fri Mar 23 12:33:27 UTC 2007
Could you not also search for a tab character (copy and paste it in
there), and the replace with a new line char (again, C&P). wouldn't
need to do the more complex regexy stuff, and would hopefully be faster.
P,S: List virgin! yay for it being to help rather than consume.
Cheers, Al.
☠☢✯☢☠
On 23/03/2007, at 11:23 PM, Charilaos Skiadas wrote:
> On Mar 23, 2007, at 4:52 AM, Hans-Joerg Bibiko wrote:
>
>> Hi,
>>
>> I have a tiny suggestion.
>>
>> For me it is often the case that I have to replace, let's say hex
>> \x0B (TAB INDENTION), with '\n'. If I do it using TM's Find/
>> Replace dialog it takes several minutes for a file with 400 lines
>> and, let's say 4000 occurrences of '\x0B'. Furthermore TM occupies
>> a lot of my CPUs.
>>
>> If I do the same by using the 'Filter-Command' with e.g. 'perl -
>> npe s/\x0B/\n/g' it only takes a few seconds.
>>
>> I could image that the speed problem arises if the Find/Replace
>> routine has to insert '\n'.
>
> Yes the problem has to do with the new lines created being
> processed by the parser immediately. Unless I am mistaken though,
> this will be fixed in 2.0, so if that's the case then I wouldn't
> expect any changes before 2.0.
>
>> Hans
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>
>
>
>
> ______________________________________________________________________
> 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
More information about the textmate
mailing list