tags:

views:

59

answers:

3

Is there anything like the input manager for TextMate (at the very end of the page) which allows to edit from any Cocoa text edit controls in TextMate? It basically installs a menu "Edit in TextMate...". I tried to search for it, but I have not find anything. I think it would be very nice to have such a feature.

Thanks.

A: 

I don't know of one, but it should be fairly straightforward to hack one. You'd simply want to call emacslient with the path.

Charlie Martin
What would the path be for a text edit control?
Kristopher Johnson
A: 

this works in textareas: http://www.ymacs.org/

ugly
+1  A: 

I haven't tried it (I keep meaning to), but QuickCursor is supposed to do that (for any editor, not just Emacs).

As noted in the comment, this requires ODB support, for which EditorClient can be used.

Ivan Andrus
Thanks for the answer. QuickCursor does not support emacs - it seems to only support editors that implements the ODB (http://www.barebones.com/support/develop/odbsuite.html) protocol. Also it does not work all the time - it uses the accessibility API and in cases like mail.app / safari / ... it wont work right now.
fikovnik
Another project, EditorClient (http://github.com/robtillotson/EditorClient), implements the ODB protocol and hands it off to a command line program. I've been using it for a while with Emacs. So I guess between the two you can maybe get what you want. I have added this to the answer.
Ivan Andrus