The right-click context menu in the project window allows you to rename files (but only while they are not open in the editor).
Since it's possible to create files and rename them inside Code::Blocks, it would also make sense to add functionality to delete project files from disk, as well as just the project, in the same interface. As it is, I currently have to remove a file from the project and then manually step outside of the editor to delete the file on disk in a separate step, which is a hindrance to workflow.
You can delete the file with:
Right click on the project -> Open Project Folder in File Browser
browse to file
Right click -> delete
This feature request is about deleting files from disk, not simply removing them from the project.
Since it's currently possible to create files on disk in codeblocks, and rename files on disk by renaming them in the project, it would be logical to also delete files from inside codeblocks without having to switch away from the editor.
you delete it from disk with the File browser (it is a plugin)
With this patch the user gets asked if he wants to delete the file also from disk, if he removes a file from project.
A other solution would be to add this functionality to the ProjectManager::RemoveFileFromProject() function with a bool variable...
opinions?
@bluehazzard: Any progress with this one?
sry, really busy at the moment...
I'm not in a hurry. I just want to make sure that time spent for this won't be in vein.
Ping 2?
What about expanding annoying dialog to be able to carry 4 (or X) buttons and make every button customizable? I think a flexible Dialog like this could probably be used in many places. I hate to add a other dialog (to mutch work with all this project files)... I would open a new ticket for this dialog...
Add it to one of them and I'll add it to all the others. I'm not sure it is a good idea to touch the annoying dialog much.
Ok, i removed the code duplication and used the annoying dialog.
The user gets asked if he wants to remove the file form:
i don't see an usefull case to delte a file from disk but not from project...
Last edit: bluehazzard 2018-09-13
I'll do this, because the formatting of the patch needs to be cleaned up.