I'd like to add the ability to open and close projects to my plugin, and this patch should give me what I need - It adds project_load_file(), project_close() and configuration_open_files() to the plugin API.
- Jeff
On Wed, 9 Jan 2008 02:56:52 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
I'd like to add the ability to open and close projects to my plugin, and this patch should give me what I need - It adds project_load_file(), project_close() and configuration_open_files() to the plugin API.
Out of interest, why?
I'm not sure that configuration_open_files() fits in the API. There are some bugs with project session support, so probably that should be ironed out before letting plugins use it.
Regards, Nick
On Jan 9, 2008 11:37 AM, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Wed, 9 Jan 2008 02:56:52 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
I'd like to add the ability to open and close projects to my plugin
Out of interest, why?
I thought I could implement John's recent project-switching feature request using a Lua script.
(Actually, I already have it working in my sandbox :-)
I'm not sure that configuration_open_files() fits in the API.
Agreed, I expected that project_load_file() would open all the files for the project. I'm sure there is a reason why it doesn't, but I'm not familiar enough with the inner workings of the project loading code to understand why.
Maybe there could be a wrapper function for plugins that calls both of these, along with some sanity checks, like making sure there isn't a project already open.
There are some bugs with project session support, so probably that should be ironed out before letting plugins use it.
No problem,
- Jeff
On Wed, 9 Jan 2008 14:48:41 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Jan 9, 2008 11:37 AM, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Wed, 9 Jan 2008 02:56:52 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
I'd like to add the ability to open and close projects to my plugin
Out of interest, why?
I thought I could implement John's recent project-switching feature request using a Lua script.
(Actually, I already have it working in my sandbox :-)
If Enrico agrees, I think it could be part of the Geany core. Although personally I think that it should be a list of recent project files, rather than every file in the common project directory, as project files can be stored anywhere.
Regards, Nick
On Thu, 10 Jan 2008 17:21:48 +0000, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Wed, 9 Jan 2008 14:48:41 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Jan 9, 2008 11:37 AM, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Wed, 9 Jan 2008 02:56:52 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
I'd like to add the ability to open and close projects to my plugin
Out of interest, why?
I thought I could implement John's recent project-switching feature request using a Lua script.
(Actually, I already have it working in my sandbox :-)
If Enrico agrees, I think it could be part of the Geany core.
He does ;-).
Although personally I think that it should be a list of recent project files, rather than every file in the common project directory, as project files can be stored anywhere.
Yes, a recent project files list sounds fine.
Regards, Enrico