larrybotha
8/7/2013 - 9:18 PM

Sublime Text Key Mappings

Sublime Text Key Mappings

[
  { "keys": ["super+shift+h"], "command": "htmlprettify" },
	{ "keys": ["super+ctrl+shift+t"], "command": "delete_trailing_spaces" },
	{ "keys": ["ctrl+o"],
		"command": "side_bar_open_in_browser" ,
    "args":{"paths":[], "type":"testing"}
  },
	{
		"keys": ["ctrl+alt+up", "ctrl+alt+up"],
		"command": "set_layout",
		"args":
		{
			"cols": [0.0, 1.0],
			"rows": [0.0, 0.33, 1.0],
			"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
		}
	},
	{
		"keys": ["ctrl+alt+down", "ctrl+alt+down"],
		"command": "set_layout",
		"args":
		{
			"cols": [0.0, 1.0],
			"rows": [0.0, 0.66, 1.0],
			"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
		}
	},
	{
		"keys": ["ctrl+alt+up", "ctrl+alt+down"],
		"command": "set_layout",
		"args":
		{
			"cols": [0.0, 1.0],
			"rows": [0.0, 0.5, 1.0],
			"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
		}
	}
]

Sublime Text Key Mappings

These key mappings allow for a few conveniences:

  • easier 2 row work
    • increase the height of either the top or bottom column
    • make them even with a few intuitive shortcuts.
  • delete trailing slashes
  • prettify html
  • open sidebar in browser

File resides in Packages/User