[TxMt] Find/Replace Speed (inserting of many \n)

Hans-Jörg Bibiko bibiko at eva.mpg.de
Sat Mar 31 17:43:13 UTC 2007


On 31.03.2007, at 16:40, Allan Odgaard wrote:

> On 23. Mar 2007, at 09:52, Hans-Joerg Bibiko wrote:
>
>> [...]
>> Would it make sense to include an option or button within the Find/ 
>> Replace dialog, like 'External Replace All' or whatever, to call  
>> an external maybe perl/sed/ruby routine to do the job, esp. if I  
>> want to insert many NEW LINES?
>>
>> I don't know what kind of disadvantages it would have.
>
> The disadvantage is loss of meta data such as bookmarks, foldings,  
> having to re-parse the file for syntax highlight. And of course,  
> that I would have to spend time on the 1.x code base rather than  
> use the time to get 2.0 (which will have better performance when  
> using newlines in replacements) nearer beta stage ;)
>

OK I see. Except for bookmarks my experience is that TM is faster to  
re-parse a document than to replaces newlines. My suggestion was only  
directed towards a kind of an option for the user with some  
explaining notes.

BTW How can I cancel such a long-term replacement in TM? I tried apple 
+. etc. but finally I had to kill the entire TM process.

regards,

hans

PS sorry for the question about __CF_USER_TEXT_ENCODING. I was too  
lazy to look at the command line ;)



More information about the textmate mailing list