Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

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

Open
underdoeg opened this issue Jan 24, 2018 · 4 comments
Open

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

underdoeg opened this issue Jan 24, 2018 · 4 comments

Comments

@underdoeg
Copy link

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
Copy link
Member

eidheim commented Feb 5, 2018

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

@zalox
Copy link
Member

zalox commented Feb 6, 2018

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
Copy link
Member

eidheim commented Feb 6, 2018

Good idea @zalox , this would definitely be an improvement

@zalox
Copy link
Member

zalox commented Feb 7, 2018

I'll try to implement this tonight.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants