Sublime Forum

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

#1

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.

0 Likes

#2

Ctrl+shift+n to open a new sublime window then close the first window. That should be enough :smile:

0 Likes

#3

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

0 Likes