cppit / jucipp

A lightweight & cross-platform IDE supporting the most recent C++ standards. This project has moved to https://gitlab.com/cppit/jucipp.
https://gitlab.com/cppit/jucipp
MIT License
883 stars 98 forks source link

close all open files when loading a new folder / project #360

Open underdoeg opened 6 years ago

underdoeg commented 6 years ago

I just wrote into the wrong main.cpp because I didn't realize that it was the file from the older project and not the new one

eidheim commented 6 years ago

Thank you again, but we try to keep automatic intrusive actions such as closing open files down to a minimum.

zalox commented 6 years ago

Hi, @eidheim!

I have also encountered this use case. I would suggest that we add the subdirectory name to open files with the same name:

// as it is right now:
main.cxx
main.cxx
// suggestion:
project/src/main.cxx
projectX/src/main.cxx
// or even:
project/../main.cxx
projectX/../main.cxx
eidheim commented 6 years ago

Good idea @zalox , this would definitely be an improvement

zalox commented 6 years ago

I'll try to implement this tonight.