Sublime Forum

Custom Keymap Won't Work

#1

I had the following custom keymap set up to toggle the color scheme and theme from a light one to a dark one:

{
	"keys": ["f1"],
	"command": "toggle_color_scheme",
	"args":
	{
		"options": [
			{
				"color_scheme": "Packages/Color Schemes/Soda Light.tmTheme",
				"theme": "Soda Light 3.sublime-theme"
			},
			{
				"color_scheme": "Packages/Color Schemes/Soda Dark.tmTheme",
				"theme": "Soda Dark 3.sublime-theme"
			}
		]
	}
}

This still works in ST 3.0, but now that I’m using the Adaptive Theme, I simply want this to toggle the color scheme only. But if I remove the “theme” line from the keymap, it won’t work now.

{
	"keys": ["f1"],
	"command": "toggle_color_scheme",
	"args":
	{
		"options": [
			{
				"color_scheme": "Packages/Color Schemes/Soda Light.tmTheme"
			},
			{
				"color_scheme": "Packages/Color Schemes/Soda Dark.tmTheme"
			}
		]
	}
}

Any ideas on how I can get this to work so it just switches the color scheme while using the Adaptive Theme? Thanks!

0 Likes

Keymap not working in 3.0