jucipp icon indicating copy to clipboard operation
jucipp copied to clipboard

close all open files when loading a new folder / project

Open underdoeg opened this issue 7 years ago • 4 comments

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

underdoeg avatar Jan 24 '18 15:01 underdoeg

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

eidheim avatar Feb 05 '18 06:02 eidheim

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

zalox avatar Feb 06 '18 13:02 zalox

Good idea @zalox , this would definitely be an improvement

eidheim avatar Feb 06 '18 21:02 eidheim

I'll try to implement this tonight.

zalox avatar Feb 07 '18 11:02 zalox