Hi,
I was wondering if there is still an API to write Plug-ins for TextMate because I would like to create a Python debugger plug-in.
Thank you for this wonderful editor,
Louis
On 2015-11-01 18:13, Louis Abraham wrote:
Hi,
I was wondering if there is still an API to write Plug-ins for TextMate because I would like to create a Python debugger plug-in.
There has never been a proper API. The only thing that has been supported was to actually load plug-ins, and that's it.
The way plug-ins work in TextMate is through Objective-C method swizzling. That is, replace existing methods with your own implementation. This is actually a lot easier now in TextMate 2 since it's open source.
BTW, if you manage to implement a plug-in for this (or a fork) perhaps this could be generalized to create a debugger API for other plug-ins as well.
Thank you for your answer. I think that TextMate 1 did load the Objective-C files in a PlugIns folder, but TextMate doesn't seem to do the same. How can I load an existing plugin ?
Le 1 nov. 2015 à 20:33, Jacob Carlborg doob@me.com a écrit :
On 2015-11-01 18:13, Louis Abraham wrote:
Hi,
I was wondering if there is still an API to write Plug-ins for TextMate because I would like to create a Python debugger plug-in.
There has never been a proper API. The only thing that has been supported was to actually load plug-ins, and that's it.
The way plug-ins work in TextMate is through Objective-C method swizzling. That is, replace existing methods with your own implementation. This is actually a lot easier now in TextMate 2 since it's open source.
BTW, if you manage to implement a plug-in for this (or a fork) perhaps this could be generalized to create a debugger API for other plug-ins as well.
-- /Jacob Carlborg
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 2015-12-12 20:26, Louis Abraham wrote:
Thank you for your answer. I think that TextMate 1 did load the Objective-C files in a PlugIns folder, but TextMate doesn't seem to do the same. How can I load an existing plugin ?
Assuming you mean dynamic libraries built in Objective-C and not Objective-C source files, that still works. It's the exact same procedure as for TextMate 1 [1]. The only difference is that the Info.plist file needs a new key "TMPlugInAPIVersion" with the value 2.
[1] http://manual.macromates.com/en/appendix#plug-in_api