editff is grayed out on my end when following your directions. I can’t seem to select it when specifying the editor. Any way around this?
TextMate and Firefox
Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information.
The following links are auto-generated but may help you locate newer content:
I’ve never gotten along too well with the Mozex plugin that should allow me to edit Firefox textareas in TextMate. Fortunately, a new plugin seems to make things a lot easier…
It’s All Text! adds a nifty little edit button to the lower right hand corner of every text area, and clicking it loads your text editor of choice. My choice is, of course, TextMate. On OS X the plugin looks for the editor in /usr/bin, which is lame, but easily worked around. If you have mate installed, just create a soft link in /usr/bin:
sudo ln -s /usr/local/bin/mate /usr/bin/editff
Then define /usr/bin/editff as your editor. There’s no close button built into the config dialog at this point, but after you’ve selected your editor and changed your settings, hitting escape seems to close it but still save the settings. Some people report they have to restart Firefox. Either way, when you click those handy little “edit” buttons in the corners of the textareas now, you’ll get the current text (if any) in a new TextMate document. When you save it the textarea will update (and at the specified intervals). Have fun!
-
02.23.07 / 10pm
-
02.24.07 / 1am
Seems like it’s ok, if I choose /Applications/TextMate.app as editor.
This is in the dialog after choosing the symbolic link.
Can’t reproduce it, because the config is already done. -
02.24.07 / 1am
Ok, i’ve tried this on an other Mac. You have to do the link. Otherwise it won’t do.
-
02.24.07 / 3am
Or you could just use the “Edit in TextMate”-plugin that comes with TextMate. You’ll find it in the commands menu (it’s that gearwheel at the bottom) under “TextMate”. From then on (you’ll probably need to log out and then log in again first) you’ll have a “Edit in TextMate” item in your edit menu. And it’s not just limited to your browser.
-
02.24.07 / 4am
@FastJack, Edit in TextMate doesn’t work in Firefox, which is why the Mozex plugin has always been necessary.
@Derek, if you do an ls -l on editff, is it executable?
-
02.24.07 / 5am
@Derek & Brett:
I found mate in /usr/bin and not in /usr/local/bin - maybe that’s the problem? -
02.24.07 / 5am
Definitely. Not sure why mine would have installed in local if yours installed in /usr/bin, but the command to create the link would created a null file then. Just select /usr/bin/mate as your editor and you should be set.
-
02.24.07 / 6am
[…] man auch in Firefox TextMate als Editor nutzen, so bietet das Circle Six Blog eine Anleitung, wie man mit Hilfe des Firefox Add-Ons It’s All Text! und sowie klein wenig […]
-
02.27.07 / 10am
Ah, now if only I could edit Firebug stuff in Textmate …
-
02.27.07 / 5pm
For me it worked without creating the symlink. I chose /usr/local/bin/mate which automatically expanded to /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate.
Anyways, thanks for the tip!
-
02.27.07 / 6pm
That’s awesome. On mine, it would only accept something in the /usr/bin directory. It’s kind of a weird plugin in that sense. It could definitely use a little refining overall, and some special attention for OSX.
Glad it worked for you, though!
-
03.02.07 / 1am
[…] TextMate and Firefox Hrm…gluing up stuff to edit textareas in FireFox with TextMate. Seems stupendously awesome. Check out the huge fonts on the site too. (tags: textmate firefox osx editors) […]
-
03.04.07 / 4pm
Just like “ad” up there my mate was in /usr/local/bin
That did the job, and it seems to work great.
-
03.09.07 / 10am
Here’s a tipe —
\
In order to make this work with TextMate:1. Click Browse in prefs,
2. From Finder file dialog box type Apple-Shift-G
3. Type — /Applications/TextMate.app/Contents/MacOs/TextMate
-
03.11.07 / 11am
[…] their may be a way to trigger the preview button from Applescript, in which case I could use the It’s All Text Firefox plugin to edit the CSS field and trigger a script from TM to see the page preview update. […]
-
03.14.07 / 4pm
It works for me, but when I’m finished editing in TextMate and
I hit ^W, it takes several seconds before the Firefox text area
turns yellow. Is there some way to speed it up? -
03.14.07 / 5pm
I have the same problem. There was a recent lashing out against this plugin on the list and a lot of people professed their love once again for Mozex. I’m going to give it another shot, it should solve problems like that if I can get it to work smoothly. Otherwise, I think there is an option to shorten the refresh rate in the setup for the It’s All Text plugin.
-
04.04.07 / 6am
Hello!
Disclaimer: I’m the author of It’s All Text! and I’m not very experienced with Mac OS X.
I just discovered that I’ve been doing the MacOsX version all wrong. It should default to /usr/bin/open and encourage the user to use that.
I apologize for not understanding this. I conferred with some people on IRC and in retrospect it was a case of the blind leading the blind. :-/
Thankfully, there has been an lots of excellent feedback from people such as your self and your commentors.
BTW: I love the layout of your blog. That hue of blue is up there with orange and green. Ciao!
-
04.04.07 / 7am
[…] Circle Six Design: Textmate and Firefox […]
-
04.12.07 / 11am
Hiya - just found this. Lovely. It’s actually a useful supplement to the “Edit in Textmate” menu option.
On the ‘path for mac OSX’ question then much depends on whether you installed TM as the administrator or within your ‘local’ applications. You may also have installed the command line tool.
One way to find the path is to type “which mate” on the command line and then paste the resulting full path into IAT’s preference pane’s path.
That worked for me. Thanks for the lead to this plug-in.
-
05.22.07 / 11am
[…] A little “hacking” is required for this to work under os x as explained here. […]
-
07.22.07 / 5am
[…] Für nicht Cocoa Applikationen wie zB. Firefox gibt es alle nötigen Infos auf der Site von Circle Six Design. […]
-
08.13.07 / 5pm
Hannah Andrews…
Do you have RSS feeds running on your site? And if so, where I can get your RSS feeds? Which reader can you advise me to use?…
-
08.29.07 / 9am
Great article !
-
10.09.07 / 7am
[…] man auch in Firefox TextMate als Editor nutzen, so bietet das Circle Six Blog eine Anleitung, wie man mit Hilfe des Firefox Add-Ons It’s All Text! und sowie klein wenig […]
-
07.29.08 / 12pm
[…] for extremists: How to use TextMate to edit HTML forms in Firefox. This entry was written by Martin, posted on July 29, 2008 at 7:57 pm, filed under 9 and tagged […]
-
09.23.08 / 10am
Ian Jindal’s suggestion to check the mate path using “which mate” at the command line worked instantly.
I think the problem is that people are assuming a global install location only to find its not there or creating symlinks to nothing.
So here’s the steps:
1. Install It’s All Text.
2. Open Terminal and enter: which mate
3. Open It’s All Text preferences and enter the result of step 2.
Have your say
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

27 Comments
Jump to comment form | comments rss [?] | trackback uri [?]