Sublime Forum

Toggle between two open projects

#1

I’m looking for a keyboard shortcut to toggle between two open projects. I don’t want to shut one project and open another–both projects are to remain open. And I want the command on a keyboard shortcut. My apologies if this is covered somewhere, but I sure couldn’t find it.

And, FWIW, I’m on a PC running Linux.

0 Likes

#2

Not sure if I do understand your requirements correctly, but maybe the Switch Window package is a solution for you - you’d just have to open both projects in different ST windows.

0 Likes

#3

My use case: I’m a writer using ST for prose. For big projects (book-length, say), I typically have a “draft” project and a “notes” project for one book. They kind of mirror each other, outline-wise, and I typically have both projects open at the same time, often side-by-side, but not always. They are open in two different ST windows. i.e, they’re two different sublime-project files. And the ability to toggle between them with one simple kybd shortcut is what I’m hoping to accomplish.

(I know I could put the notes and the book draft into the same projects, but for various reasons I don’t want to work that way.)

0 Likes

#4

Switch Window 0.5.0+ supports a parameter to directly switch to the most previously active window.

Example key binding:

	{
		"keys": ["ctrl+k", "ctrl+tab"],
		"command": "switch_window",
		"args": {"previous_window": true}
	}

Note: 0.5.0 should be available, soon.

1 Like

#5

Excellent, deathaxe. Thanks for the note. I’ll grab Switch Window.

0 Likes