GoogleChromeLabs / text-app

A text editor for ChromeOS and Chrome
https://chrome.google.com/webstore/detail/mmfbcljfglbokpmkimbfghdkjmjhdgbg
Other
551 stars 150 forks source link

How to disable editor from loading previously opened files after closing app. #527

Open mmiscool opened 3 years ago

mmiscool commented 3 years ago

If i close out of the text editor app every time I open it back up all the old text files are there. If they are large it takes a long time to load. How can I disable it remembering the files opened in previous sessions.

zainafzal08 commented 3 years ago

Sadly the text app will remember all tabs you had open and reopen them on launch. Easiest way to prevent this is to close all the tabs you are done with. You can hold control+w to close all the tabs which might make this a bit easier.

mmiscool commented 3 years ago

That's why I put in this request so that the developers behind the program might see and other who find it to be an issue could chime in.

zainafzal08 commented 3 years ago

Will keep the bug open in case anybody would like to make a PR :)

MrKobliska commented 3 years ago

I personally like this feature as it removes one step of confusion when students are learning to code. We are working on a project and all the files open again after they've left. Would suggest that you make this a setting rather than change it permanently if you want to offer the ability to close all files.

mmiscool commented 3 years ago

If you accidentally opened a multi gb file just once it becomes a problem.

dchanman commented 3 years ago

It would be nice to also include a means of closing all files other than having to hold control+w. I've run into a situation where I've opened hundreds of files while having to browse through trees of JSON files. The large number of files causes performance issues where I cannot read a new file, and then closing all the files by holding control+w takes an unreasonable amount of time.

robertpedri commented 1 year ago

@dchanman you can right click on one file and select the option that tells close other tabs. Then close current tab easily.