Sublime Forum

How do I remove a project from the "Switch Project window"?

#1

I’ve deleted the .sublime-project and .sublime-workspace files but the project is still shown in the list.

Also how do I rename a project?

2 Likes

Project Switcher "Unable to read project"
#2

It’s okay. I found it in the “clear recent” menu option and I just renamed my projects before reopening.

0 Likes

#3

Try this solution: http://sublimetext.userecho.com/topic/84110-switch-project-dialog-shows-deleted-projects/
You only need to edit last section

	"workspaces":
	{
		"recent_workspaces":
		
			"/../../test-1.sublime-project",
			"/../../test-2.sublime-project",
			"/../../test-3.sublime-project"
		]
	}
1 Like

#4

This link appears to be dead. What file shows this list of recent workspaces?

0 Likes

#5

*.sublime_session files in Data/Local.

5 Likes

#6

Just a quick note: sublime needs to be closed when you edit that file (you need to edit with either portable sublime or other editor).

5 Likes

#7

Want to add here that on Mac OS X, the location to the session file is:

~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session
1 Like

#8
2 Likes

#9

If like me and there are 4,000 lines of code.

You can save yourself the bother and scroll to the very bottom.

@kingkeith is that like this that comes with the project manager plugin mentioned above?

0 Likes

Is there a way to clean the non-existant files from '..\Session.sublime_session'
#10

I have a bunch of dead projects and that option from the Project Manager package did not find any.

However, OdatNurd’s script worked well. It removed 33.

0 Likes

#11

The script you’re talking about is the one @kingkeith linked to: https://github.com/STealthy-and-haSTy/SublimeScraps/tree/master/session_cleaner

0 Likes

#12

answer

1 Like

#13

And on Linux (Ubuntu 22.04), it’s here:

.config/sublime-text-3/Local/Session.sublime_session

(Way at the bottom.)

0 Likes