ActiveState Community

Make Active Project, from the Projects sidebar or menu, and open files

Posted by davesmith on 2009-06-23 13:40

Hi

Is there a way to get Make Active Project to act in the same way as opening a project?

When opening a project it is possible to have the files, that were open when the project was closed, opened once again (I like this). However, when Make Active Project is chosen nothing seems to happen/change.

all the best
Dave

toddw | Tue, 2009-06-23 15:21

Hi Dave,

Komodo does not offer a project session functionality like this.

You could write a Komodo macro that performed such functionality.

For example, here is the code that currently does the closing of files when you close a project:
http://grok.openkomodo.com/source/xref/openkomodo/trunk/src/chrome/komod...

and here is the open project functionality:
http://grok.openkomodo.com/source/xref/openkomodo/trunk/src/chrome/komod...

there is a Komodo event notification "current_project_changed" sent when the current project changes.

You could also log this as a Komodo enhancement request here:
http://bugs.activestate.com/enter_bug.cgi?product=komodo

Cheers,
Todd

davesmith | Wed, 2009-06-24 13:11

Hi Todd

Thanks for your most excellent reply. If I have the time I'll see about about that macro. Otherwise it'll be an enhancement request.

all the best
Dave