[TxMt] Find/Replace Variables in Document?

Benoit Gagnon b.gagnon at gmail.com
Mon Feb 20 02:18:49 UTC 2006


On Feb 19, 2006, at 8:48 PM, Court K wrote:

> I'd like to find and replace a variable inside of a document. How  
> can I do this? [VAR] Represents the variable:
>
> Find: title="[VAR]"
>
> Replace With: title="dummytext"
>
>
> Text in Document I want it to affect:
> title="Webmaill"
> title="Control Panel"
> title="Customer Service"
> title="Web Hosting"
>
>
> How can I do this in TextMate?

You can use a simple regular expression:

"[^"]*"

and replace by:

"dummytext"

Make sure the regex mode is enabled in the search and replace dialog.

> Also TextMate has no way to upload/browse SFTP/SSH/ or FTP? The  
> price is way to steep for an application that can't connect and  
> upload the edited files directly.

The general opinion is that other tools are more suited for those  
tasks. For example, Transmit (www.panic.com) has a "remote edit"  
feature that works perfectly with TextMate (or any other editor). If  
you're looking for a cheap solution, check out free clients that have  
similar features, such as CyberDuck or Fugu.

Personally, I think TextMate is worth its price even without remote  
browsing. I have yet to see a text editor with *good* ftp/sftp  
support anyway. There's always something missing, something buggy,  
etc. I purchased Transmit and never looked back.

>
> Please let me know your thoughts,
>
> Best Regards,
>
> Court Kizer
>
> ______________________________________________________________________
> 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