I`ve written a plugin for Editra that adds a menu with menuitems that when clicked generates files on disk.

1) I want to open those files in new tabs when the generation of those files are completed.

2) One of my menuitems will create a new folder as well as files. Is it possible to get that folder added automatically to the Project plugin, as a new project, if that plugin is installed?

I`m writing a plugin for django developers so that we can create django projects and django apps from inside Editra. Any relevant information about Editra and Django you might have would be appreciated. Thanks and keep up the good work!

As for automatically adding the folder to the Projects plugin it doesn't have any interfaces for doing that directly. If the folder is already underneath another existing project it will automatically appear though. A new interface could probably be added as part of an update to the plugin though if you have some requirements defined.

I don't know much of anything about Django but let me know if you have any further questions about writing a plugin and integrating with Editra. I updated the API documentation recently so it may be of help as well, see http://editra.org/documentation

Thanks for the input on how to open files and regarding my requirements for the Project plugin, they`re simple:

1. I need to be able to add a project in code, in my plugin, using a specified directory.

2. It would be nice to be able to easily add a menu entry in the context menu in the project as well. I`d like to be able to set some properties for a project, for instance, when I`m working with django what port the development server will be running at etc. This will be django specific, but a api for adding a menu item to the context menu would make this an easy task and open for alot of other enhancements as well.

I hope to contribute to Editra, mostly by developing plugins, but perhaps also by testing, documenting etc. in the future.

There is a convenience function on the tab control for getting all the filenames if that is what you need to do, it returns a list of file names. The index in the list is the same as the tabs from left to right.

my plugin creates a new instance of Editra for each file instead of adding a new tab and opening the file in that tab. How can I add a tab and open the file in that tab? I`ve looked at the docs but there doesn`t seem to be a function in the API that creates a new tab, just one for openfile.

weholt wrote:my plugin creates a new instance of Editra for each file instead of adding a new tab and opening the file in that tab. How can I add a tab and open the file in that tab? I`ve looked at the docs but there doesn`t seem to be a function in the API that creates a new tab, just one for openfile.

Thomas

Check your user preferences in the Preferences dialog. You probably have the "Open files in new windows by default" option checked (Preferences->General->Files).

2) A number of interface strings are missing the _() wrapper function around them so they wont be translatable.

Other than that from the source looks fine, looks like it has some dependencies that are not built into the standard python library so I haven't had a chance to try and run it but will try to when I get some time.