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?
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.
Please let me know your thoughts,
Best Regards,
Court Kizer
Hi Court, On Feb 19, 2006, at 7: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?
Do a find and replace, where the regular expression checkbox is selected. Then, in the find box, put: title="[^"]" and in the replace part whatever you want it to be replaced with. If you want to actually use the [VAR] part in your replacement, then do a find for: title="([^"])" and in the replacement, use $1 for wherever you want each var to show up. You'll probably also want to read this: http://macromates.com/textmate/manual/ regular_expressions#regular_expressions.
Best Regards,
Court Kizer
Haris
Find & Replace using regular expressions would do the trick. Try searching for: title="(Webmaill|Control Panel|Customer Service|Web Hosting)"
and replace with: title="dummytext"
The separator between search terms is the vertical bar (shift- backslash), and means "OR" in regex language.
--AV
On Feb 19, 2006, at 17:48, 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?
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.
Please let me know your thoughts,
Best Regards,
Court Kizer
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 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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Feb 19, 2006, at 5:48 PM, Court K wrote:
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.
jEdit is the only text editor I know of that can do this for less. Are there others?
On a slightly off-topic note, it sure would be nice if Mac OS X could provide volume mounting through SSH (e.g., shfs). Then *all* applications would have this feature, regardless of price. Seems kind of silly for applications to redundantly implement what should be an OS service.
Trevor
On Feb 19, 2006, at 9:45 PM, Trevor Harmon wrote:
On Feb 19, 2006, at 5:48 PM, Court K wrote:
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.
jEdit is the only text editor I know of that can do this for less. Are there others?
Vim and Emacs. There might be some other Open Source editors that can do it as well, but I don't know of any off the top of my head.
Thanks, Jeff
Uh I actually don't care about cost. Every text editor I've used EXCEPT textmate can do this. BBEdit, SkEdit, SubEthEdit, any of the decent ones.
I mean who actually is editing files that ARE NOT going to end up on the internet? Every file I edit is going onto the internet, so allowing me to edit them and save would be a huge boost. It's the only reason for buying any text editor. Especially an "editor for the 21st century" that doesn't have internet capability.
I'd like to buy textmate, but I won't until it has some sort of integration like this. Right now I have to download the file, edit it, reupload it, I'd just like to hit "Save" and know that it's saved onto the remote server automatically.
On Feb 19, 2006, at 6:45 PM, Trevor Harmon wrote:
On Feb 19, 2006, at 5:48 PM, Court K wrote:
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.
jEdit is the only text editor I know of that can do this for less. Are there others?
On a slightly off-topic note, it sure would be nice if Mac OS X could provide volume mounting through SSH (e.g., shfs). Then *all* applications would have this feature, regardless of price. Seems kind of silly for applications to redundantly implement what should be an OS service.
Trevor
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 Feb 19, 2006, at 10:05 PM, Court K wrote:
Uh I actually don't care about cost.
Then why did you say TextMate's price is way too steep?
Every text editor I've used EXCEPT textmate can do this. BBEdit, SkEdit, SubEthEdit, any of the decent ones.
I expect the feature is coming in 2.0 (note the 6th paragraph): http://macromates.com/blog/archives/2006/02/15/future-directions/
I mean who actually is editing files that ARE NOT going to end up on the internet?
Me. I mostly use TextMate for LaTeX documents and source code, and although these files might "end up" on the Internet (inside a zip file, for instance), I don't need remote editing support for them.
I'd like to buy textmate, but I won't until it has some sort of integration like this. Right now I have to download the file, edit it, reupload it, I'd just like to hit "Save" and know that it's saved onto the remote server automatically.
I use WebDAV for this.
Trevor
On 20 Feb 2006, at 07:08, Trevor Harmon wrote:
Me. I mostly use TextMate for LaTeX documents and source code, and although these files might "end up" on the Internet (inside a zip file, for instance), I don't need remote editing support for them.
And if you're working on anything even vaguely important you'd be working on a staging server - possibly a local instance of Apache anyway. Apart from very minor edits (for which I'd ssh into the server and use vi) I'd never edit on a live server anyway.
I'd like to buy textmate, but I won't until it has some sort of integration like this. Right now I have to download the file, edit it, reupload it, I'd just like to hit "Save" and know that it's saved onto the remote server automatically.
I use WebDAV for this.
WebDAV or rsync here.
On Feb 19, 2006, at 22:05, Court K wrote:
I mean who actually is editing files that ARE NOT going to end up on the internet? Every file I edit is going onto the internet, so allowing me to edit them and save would be a huge boost. It's the only reason for buying any text editor. Especially an "editor for the 21st century" that doesn't have internet capability.
Hello Court,
I'm a new TextMate user myself, and I've seen this feature request come up in several places already so I'm pretty sure this is a dead horse. I think this is a question of the developer's philosophy and a purposeful consideration of where to draw the line... I don't consider FTP an embarrassing feature omission at all.
Personally I agree with the TextMate philosophy[1], and I don't believe that handling FTP, SSH, HTTP, WebDAV or whatever other underlying protocol is the job of a text editor. There are other better-suited applications for handling that layer, and keeping them separate is much more flexible. I use Transmit for FTP, and it integrates with TextMate very well:
If I want to make a quick edit to a remote file, I find it in Transmit and it just saves back when TextMate is done with it. To edit a local file, it's only one more keystroke in TextMate to save it to the FTP server, and I prefer it that way--I don't always want to post up the file--sometimes I only want to save work in progress to my local working copy.
It sounds like you're coming from the mindset of monolithic behemoth tools like Dreamweaver or GoLive. I despise working in those kinds of applications for their lack of flexibility. If there's an aspect of the environment that I don't like, whether it's the text handling or the file management, there's no way to swap in another tool for a single task--it's all or nothing.
Anyway, I'm not trying to convince you that TM is right for you. I'm just pointing out that the "editor for the 21st century" is more modular than you may be expecting. But add up the cost of TextMate +Transmit, and you still come out ahead of BBEdit...
[1] http://macromates.com/textmate/manual/preface#philosophy_of_textmate
--Andrew
Am 20.02.2006 um 07:05 schrieb Court K:
Uh I actually don't care about cost. Every text editor I've used EXCEPT textmate can do this. BBEdit, SkEdit, SubEthEdit, any of the decent ones.
hmm... if i remember right, subethaedit uses the mechanism that TM uses: you can make a ftp-client handle a file to SEE or TM and the ftp-client re-uploads the file after a save.
in addition, TM has trasmit-scripts that use the incredible dock- upload feature of transmit. if you start editing a local file which is in a dock-upload-path of transmit, uploading the file is just a keystroke away. be shure to evaluate transmit during your TM evaluation, too. and remember: most of TM functions are "hidden" in the automation-menu and the "gear"-popup.
I mean who actually is editing files that ARE NOT going to end up on the internet? Every file I edit is going onto the internet, so allowing me to edit them and save would be a huge boost. It's the only reason for buying any text editor. Especially an "editor for the 21st century" that doesn't have internet capability.
I'd like to buy textmate, but I won't until it has some sort of integration like this. Right now I have to download the file, edit it, reupload it, I'd just like to hit "Save" and know that it's saved onto the remote server automatically.
it works just this way with all major ftp-clients: transmit, cyberduck, fugu... i'm glad i can use transmit and not being bound to whatever TM could have integrated.
n.
On Sun, Feb 19, 2006 at 10:05:36PM -0800, Court K wrote:
Uh I actually don't care about cost. Every text editor I've used EXCEPT textmate can do this. BBEdit, SkEdit, SubEthEdit, any of the decent ones.
I mean who actually is editing files that ARE NOT going to end up on the internet? Every file I edit is going onto the internet, so allowing me to edit them and save would be a huge boost. It's the only reason for buying any text editor. Especially an "editor for the 21st century" that doesn't have internet capability.
I'd like to buy textmate, but I won't until it has some sort of integration like this. Right now I have to download the file, edit it, reupload it, I'd just like to hit "Save" and know that it's saved onto the remote server automatically.
Have you contemplated using subversion instead? You can set up a cron job to regularly update a checked out version on the server. Then all you need to do is commit your file and it will show up on the server.
As a bonus, you get free backups. :-)
-Dom
In article 83183242-9D37-4CBC-A2CF-B563F95C05D7@courtkizer.com, Court K kizer@courtkizer.com wrote:
... 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.
You are certainly entitled to your opinion, but I personally prefer using favorite sftp/ftp client for that job. Any good sftp/ftp client offers seamless integration with TextMate, thus giving one a very polished editor and a very polished sftp/ftp client (and giving the author of TextMate a chance to focus on more important tasks).
Personally the only thing keeping me from switching to TextMate is the character-by-character undo. I know some folks prefer it, but I've not been able to get used to it. But it's on the "to do" list to offer users a choice of "chunky" vs "character by character" undo, and when that happens I am really looking forward to ditching Pepper. Overall I'm very impressed with TextMate.
-- Russell
On 21 Feb 2006, at 21:31, Russell E. Owen wrote:
Personally the only thing keeping me from switching to TextMate is the character-by-character undo. I know some folks prefer it, but I've not been able to get used to it. But it's on the "to do" list to offer users a choice of "chunky" vs "character by character" undo, and when that happens I am really looking forward to ditching Pepper. Overall I'm very impressed with TextMate.
Ah good - I missed the debate but the character at a time undo is one of my few bugbears too :)
Very much agree with all points. At least TextMate should offer an option for this "chunky" undo.
On 2/21/06, Russell E. Owen rowen@cesmail.net wrote:
In article 83183242-9D37-4CBC-A2CF-B563F95C05D7@courtkizer.com, Court K kizer@courtkizer.com wrote:
... 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.
You are certainly entitled to your opinion, but I personally prefer using favorite sftp/ftp client for that job. Any good sftp/ftp client offers seamless integration with TextMate, thus giving one a very polished editor and a very polished sftp/ftp client (and giving the author of TextMate a chance to focus on more important tasks).
Personally the only thing keeping me from switching to TextMate is the character-by-character undo. I know some folks prefer it, but I've not been able to get used to it. But it's on the "to do" list to offer users a choice of "chunky" vs "character by character" undo, and when that happens I am really looking forward to ditching Pepper. Overall I'm very impressed with TextMate.
-- Russell
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
-- Kent --- http://www.datanoise.com