RAPID - Close All Files on Project Switch
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
RAPID - Close All Files on Project Switch
When switching projects in the file explorer, automatically close all open files.
There must be some reason this doesn't happen now. I can't see it; I'd love to know if I'm missing something.
There must be some reason this doesn't happen now. I can't see it; I'd love to know if I'm missing something.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
Re: RAPID - Close All Files on Project Switch
Have you tried the Project Manager plugin by dave?
dave wrote: Features:
a) Seamlessly (and now automatically/prompted/manually) save a list of open files for the currently selected project. (it will ignore open files from other projects)
b) Seamlessly (and now automatically/prompted/manually) open a previously saved list of files for the currently selected project.
c) Close all files other than those from the currently selected project. (you will be prompted for unsaved files)
d) (c) followed by (b) (in one action)
e) View, and add/delete to the list of previously saved list of files for the currently selected project.
e) View, and add/delete to the list of previously saved list of files for other previously saved projects.
There are 10 types of people in the world: Those who understand binary and those who don't.
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: RAPID - Close All Files on Project Switch
Thanks for the tip. I'll give it a try.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: RAPID - Close All Files on Project Switch
The Project Manager looks like more steps to me. I just want to eliminate one step.
When changing projects now and when I happen to have several files open, I first do File | Close All followed by switching the project in the file explorer. All I'm trying to do is eliminate the first step.
If Rapid happens to remember the files that were open and restores them when the project is next opened, that sounds good.
When changing projects now and when I happen to have several files open, I first do File | Close All followed by switching the project in the file explorer. All I'm trying to do is eliminate the first step.
If Rapid happens to remember the files that were open and restores them when the project is next opened, that sounds good.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
Re: RAPID - Close All Files on Project Switch
Maybe you should take a look at the plugin API?
And maybe use the Project Manager as reference and see how it closes project files..
And maybe use the Project Manager as reference and see how it closes project files..
There are 10 types of people in the world: Those who understand binary and those who don't.
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: RAPID - Close All Files on Project Switch
Or maybe not...pmk65 wrote:Maybe you should take a look at the plugin API?
I've got nothing against plug-ins and it is nice that Rapid et. al. support an extension mechanism. I appreciate the extensive work you have done in this area. If I had any interest in learning how to build plug-ins, your suggestion that I deconstruct the Project Manager would be an excellent one.And maybe use the Project Manager as reference and see how it closes project files..
I expect (and prefer) my IDE to have good project support built in. I think what is there now is close but missing a few tiny things, thus my suggestion. I think beefing up project management support is an especially good idea for a product that does not allow multiple instances. I'm betting that more comprehensive project management is much easier to implement than multiple instances.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
Re: RAPID - Close All Files on Project Switch
Some plugins can be extremely simple, and doesn't need much scripting. But can 'fix' missing features like the one you want.Will Fastie wrote:I've got nothing against plug-ins and it is nice that Rapid et. al. support an extension mechanism.
I don't use Projects much myself, so Im not sure its what you want. But I just made a small plugin that closes all open Documents when you switch to a Project.

Try it and see if it fits your needs.

There are 10 types of people in the world: Those who understand binary and those who don't.
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: RAPID - Close All Files on Project Switch
I'm impressed with your speed. And you've got my attention. I'll take a look.pmk65 wrote:But I just made a small plugin that closes all open Documents when you switch to a Project.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: RAPID - Close All Files on Project Switch
It does look simple. It's clear you are very skilled at this.pmk65 wrote:Some plugins can be extremely simple, ...
On the other hand, it probably would have taken me three days to figure out how to do it, especially because the API documentation is a bit dated. For example, the docs do not mention project_before_select or any other project-related signals. I would have been beating my head on the wall trying to figure out how to trigger.
Thanks for taking the time (apparently just seconds for you) to demonstrate the capability.
P.S. I still hope for improved project management in Rapid.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
Re: RAPID - Close All Files on Project Switch
I know. Some of the missing documentation can be found in the main Plugin thread: http://forums.blumentals.net/viewtopic. ... 9&start=15 (I hope Blumentals get the time to update the documentation before the next release)Will Fastie wrote:On the other hand, it probably would have taken me three days to figure out how to do it, especially because the API documentation is a bit dated. For example, the docs do not mention project_before_select or any other project-related signals. I would have been beating my head on the wall trying to figure out how to trigger.
And I copied most of the code, like the signals from the Project Manager plugin.

There are 10 types of people in the world: Those who understand binary and those who don't.
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: RAPID - Close All Files on Project Switch
The thing that interested me the most about your quick demo is that is more of an "extension" than a "plug-in."
I'll try to find some time to read the Project Manager plug-in to see what I can learn, just as you want. I'm not promising.
The following are still true:
I'll try to find some time to read the Project Manager plug-in to see what I can learn, just as you want. I'm not promising.
The following are still true:
- I prefer built-in solutions to plugins, primarily because they are more likely to be future-proof.
- Some improvements to Rapid's project management features are needed.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com
Re: RAPID - Close All Files on Project Switch
Thanks to Will Fastie, this demo plugin "turned into" a new complete plugin "Project Workspace"
Note: The two plugins are NOT compatible as the both does similar things when switching projects!
Note: The two plugins are NOT compatible as the both does similar things when switching projects!
There are 10 types of people in the world: Those who understand binary and those who don't.
- Will Fastie
- Posts: 160
- Joined: Mon Jan 31, 2005 6:47 pm
- Location: Timonium, MD USA
- Contact:
Re: RAPID - Close All Files on Project Switch
Very nice of pmk65 to offer credit but I didn't write the plugin, he did. I was glad to test, but that's all I did.pmk65 wrote:Thanks to Will Fastie, ...
I think this is a very useful plugin, a definite enhancement to Rapid PHP.
Will
WebDesignBuild.biz, Fastie.com
WebDesignBuild.biz, Fastie.com