Plugin Info

View: New views
7 Messages — Rating Filter:   Alert me  

Plugin Info

by Philip Orr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm looking to try and develop a plug-in for Textmate and was looking to find some good downloadable examples or tutorials. Do you know of any or can point me in the right direction.

Thought I'd add a little of what I'm trying to do:
When the user selected a file from the panel view, it is passed to my plug-in where I can get the extension value and do something with the file.

I've downloaded the clock example but it seems to simply add itself to the window menu item and display a window with text.

Hope you can help out,
Thanks.

Re: Plugin Info

by Ciarán Walsh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 30 Sep 2007, at 12:15, Philip Orr wrote:

I'm looking to try and develop a plug-in for Textmate


There is no API for plugin development (and hence no manual/tutorials). I think you’d want to hack into the project outline view’s delegate (OakProjectController, from memory) and insert your own delegate method for selection changes (outlineView:shouldSelectItem: from memory). Then you’d just do whatever you want with the info and return YES.

_______________________________________________
textmate-plugins mailing list
textmate-plugins@...
http://lists.macromates.com/mailman/listinfo/textmate-plugins

Re: Plugin Info

by Philip Orr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You would think that something as popular as Textmate would have a complete development sub section with tutorials. I'll have a look at the OakProjectController and OakTextView.

This is going to be a very up hill struggle me thinks.


Ciarán Walsh-3 wrote:
On 30 Sep 2007, at 12:15, Philip Orr wrote:

> I'm looking to try and develop a plug-in for Textmate

There is no API for plugin development (and hence no manual/
tutorials). I think you’d want to hack into the project outline  
view’s delegate (OakProjectController, from memory) and insert your  
own delegate method for selection changes  
(outlineView:shouldSelectItem: from memory). Then you’d just do  
whatever you want with the info and return YES.
_______________________________________________
textmate-plugins mailing list
textmate-plugins@lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmate-plugins

Re: Plugin Info

by Ciarán Walsh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 30 Sep 2007, at 22:07, Philip Orr wrote:

> You would think that something as popular as Textmate would have a  
> complete
> development sub section with tutorials.
Most people would not even notice the lack of an API due to the built-
in ability to extend TextMate in many ways. What exactly is it that  
you want to do that requires a plugin?

_______________________________________________
textmate-plugins mailing list
textmate-plugins@...
http://lists.macromates.com/mailman/listinfo/textmate-plugins

Re: Plugin Info

by Philip Orr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm tired of seeing my images and not remembering what version they are or if there is a large number of slightly different ones in what order they go in, especially when provided by someone else's project.

I was looking to create a plugin that would display the image within the textMate main window and give some general information and content tags.

A a later point in time to allow simple image correction, editing, rotation etc... Sometimes an images saturation isn't correct and rather than opening up Photoshop or whatever you can simply correct within the app. This will be easier to achieve with Leopard as the image editing interface to partially build in.

Ciarán Walsh-3 wrote:
What exactly is it that you want to do that requires a plugin?

Re: Plugin Info

by Ciarán Walsh-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 3 Oct 2007, at 05:26, Philip Orr wrote:

I was looking to create a plugin that would display the image within the

textMate main window and give some general information and content tags.

You want to create an image editor within a text editor?!? Wow

_______________________________________________
textmate-plugins mailing list
textmate-plugins@...
http://lists.macromates.com/mailman/listinfo/textmate-plugins

Re: Plugin Info

by Allan Odgaard-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 03/10/2007, at 06:26, Philip Orr wrote:

> [...]
> I was looking to create a plugin that would display the image within  
> the
> textMate main window and give some general information and content  
> tags.

You may find the Image Browser bundle useful: http://macromates.com/svn/Bundles/trunk/Bundles/ImageBrowser.tmbundle/


_______________________________________________
textmate-plugins mailing list
textmate-plugins@...
http://lists.macromates.com/mailman/listinfo/textmate-plugins