Hi,
I'm fairly new to TextMate - I use it to develop Java applications and my website in an academic enviornment. I followed directions on the TM website to make TM my default Cocoa Text Field editor in OS X (from here: http://macromates.com/textmate/manual/ using_textmate_from_terminal). I press splat + ctrl + E in nearly any application* and I can edit the field with TM. This is a fantastic feature to which I have grown addicted.
However, I find myself ssh-ing into servers around campus and I can't use TM to edit files in the shell (since the EDITOR variable is obviously local to my machine). Is it possible in my .bash_profile on remote servers to open files in my local TM? This would be great...
I'll conclude by saying that I have very little *nix knowledge, so please be gentle!
Thank you for your help - I've learned a lot on this list. - Jerzy G.
*Firefox text boxes don't seem to work - I presume it's not a Cocoa text field?
On Oct 2, 2006, at 11:47 PM, Jerzy Gangi wrote:
Hi,
I'm fairly new to TextMate - I use it to develop Java applications and my website in an academic enviornment. I followed directions on the TM website to make TM my default Cocoa Text Field editor in OS X (from here: http://macromates.com/textmate/manual/ using_textmate_from_terminal). I press splat + ctrl + E in nearly any application* and I can edit the field with TM. This is a fantastic feature to which I have grown addicted.
However, I find myself ssh-ing into servers around campus and I can't use TM to edit files in the shell (since the EDITOR variable is obviously local to my machine). Is it possible in my .bash_profile on remote servers to open files in my local TM? This would be great...
I'll conclude by saying that I have very little *nix knowledge, so please be gentle!
I'll use Fugu (http://rsug.itd.umich.edu/software/fugu/) for that (GUI for SSH/SCP/SFTP) - with that you have a command "Edit File" and you can setup a default application - i.e. Textmate
Niels
--
Linux is only free if your time has no value -- Jamie Zawinski
On Oct 2, 2006, at 5:47 PM, Jerzy Gangi wrote:
Hi,
I press splat + ctrl + E in nearly any application* and I can edit the field with TM.
*Firefox text boxes don't seem to work - I presume it's not a Cocoa text field?
Yes, Firefox doesn't use Cocoa text fields, which is unfortunate because I find the Edit in TextMate feature to be very useful. There is an effort [1] [2] to make Firefox use Cocoa GUI widgets, though. If you Google on cocoa firefox you'll find more hits.
[1]: http://www.tuaw.com/2006/08/17/cocoafox-minefield/ [2]: http://www.digg.com/apple/Cocoa_Firefox_builds
Michael Henry
On Oct 3, 2006, at 3:53 AM, Michael Henry wrote:
On Oct 2, 2006, at 5:47 PM, Jerzy Gangi wrote:
Hi,
I press splat + ctrl + E in nearly any application* and I can edit the field with TM.
*Firefox text boxes don't seem to work - I presume it's not a Cocoa text field?
Yes, Firefox doesn't use Cocoa text fields, which is unfortunate because I find the Edit in TextMate feature to be very useful.
You can use the mozex extension to edit Firefox fields with TextMate.
James Edward Gray II
On Oct 2, 2006, at 5:47 PM, Jerzy Gangi wrote:
However, I find myself ssh-ing into servers around campus and I can't use TM to edit files in the shell (since the EDITOR variable is obviously local to my machine). Is it possible in my .bash_profile on remote servers to open files in my local TM? This would be great...
I use Cyberduck to access remote files, which allows you to edit them in the application of your choice (similar to Fugu). On a related note, I like to use TextMate when I'm sitting at my Mac, but it obviously won't work if I'm logged in remotely, so I've got this in my .tcshrc:
# Mac OS X specific stuff if ( $OSTYPE == "darwin" ) then setenv LC_CTYPE en_US.UTF-8 # if logged in locally... if ( ! $?SSH_CLIENT ) then # use TextMate in place of vim setenv EDITOR /usr/local/bin/mate_wait alias vi '/usr/local/bin/mate' endif endif
I'm sure something similar is possible in Bash, but I don't know the syntax.
Rob