Home Download Buy Blog Forum Support

I opened too many files at once by mistake, what to do?

I opened too many files at once by mistake, what to do?

Postby a334178@trbvm.com on Sun Aug 10, 2014 11:19 am

I am programming some kernel stuff, and wanted to open a list of files from the kernel which contain a certain word. I did some " find . -name '*.[ch] | grep 'expression' " to see that I get a reasonable amount. The by mistake I did " find . -name '*.[ch]' | xargs subl " -- which opened all 66 thousnd files from the kernel.
Now every time I open sublime, I get all these files open, and if I right-click and say "close all other tabs" the computer simply gets stuck.
Is there a way to empty that list of open files when sublime is not running? (edit a file or something?)

Thanks.
a334178@trbvm.com
 
Posts: 1
Joined: Sun Aug 10, 2014 11:11 am

Re: I opened too many files at once by mistake, what to do?

Postby iamntz on Sun Aug 10, 2014 12:03 pm

Ctrl+shift+n to open a new sublime window then close the first window. That should be enough :)
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: I opened too many files at once by mistake, what to do?

Postby Roflhouse42 on Mon Aug 11, 2014 10:32 pm

You can also delete the project info file stored in sublime's directory. I dont know where it is for linux but for windows its %Appdata%/sublime text 3. its probably /usr/local/.sublime but thats a wild guess
Roflhouse42
 
Posts: 33
Joined: Tue Jul 30, 2013 12:34 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 22 guests