KonTrax
4/30/2013 - 5:12 PM

Multibind ST3 plugin keymap section example

Multibind ST3 plugin keymap section example

//########################################
//########################################   MULTIBIND

	// MISC
	{ "keys": ["ctrl+shift+\\"],   "command": "multibind_show" },

	// TOGGLERS
	{ "keys": ["alt+\\"],    "command": "multibind_toggle",   "args": {
		"layout": "wasd" }},
	{ "keys": ["ctrl+\\"],   "command": "multibind_toggle",   "args": {
		"layout": "symMyNum" }},

	// WASD NAVIGATION
	{ "keys": ["a"],   "command":"move",   "args": {"by": "characters", "forward": false},   "context": [
		{	"key": "multibind.wasd" } ]},
	{ "keys": ["d"],   "command":"move",   "args": {"by": "characters", "forward": true},   "context": [
		{	"key": "multibind.wasd" } ]},
	{ "keys": ["w"],   "command":"move",   "args": {"by": "lines", "forward": false},   "context": [
		{	"key": "multibind.wasd" } ]},
	{ "keys": ["s"],   "command":"move",   "args": {"by": "lines", "forward": true},   "context": [
		{	"key": "multibind.wasd" } ]},

	// SYMBOL ROW
	{ "keys": ["1"],   "command":"insert",   "args": {"characters": "!"},   "context": [
		{"key": "multibind.symMyNum"} ]},

	{ "keys": ["2"],   "command":"insert",   "args": {"characters": "\""},   "context": [
		{"key": "multibind.symMyNum"} ]},
		{ "keys": ["\""],   "command":"insert",   "args": {"characters": "@"},   "context": [
			{"key": "multibind.symMyNum"} ]},

	{ "keys": ["3"],   "command":"insert",   "args": {"characters": "#"},   "context": [
		{"key": "multibind.symMyNum"} ]},
		{ "keys": ["#"],   "command":"insert",   "args": {"characters": "£"},   "context": [
			{"key": "multibind.symMyNum"} ]},

	{ "keys": ["4"],   "command":"insert",   "args": {"characters": "$"},   "context": [
		{"key": "multibind.symMyNum"} ]},
		{ "keys": ["¤"],   "command":"insert",   "args": {"characters": "¤"},   "context": [
			{"key": "multibind.symMyNum"} ]},

	{ "keys": ["5"],   "command":"insert",   "args": {"characters": "%"},   "context": [
		{"key": "multibind.symMyNum"} ]},

	{ "keys": ["6"],   "command":"insert",   "args": {"characters": "&"},   "context": [
		{"key": "multibind.symMyNum"} ]},

	{ "keys": ["7"],   "command":"insert",   "args": {"characters": "/"},   "context": [
		{"key": "multibind.symMyNum"} ]},
		{ "keys": ["/"],   "command":"insert",   "args": {"characters": "{"},   "context": [
			{"key": "multibind.symMyNum"} ]},

	{ "keys": ["8"],   "command":"insert",   "args": {"characters": "("},   "context": [
		{"key": "multibind.symMyNum"} ]},
		{ "keys": ["("],   "command":"insert",   "args": {"characters": "["},   "context": [
			{"key": "multibind.symMyNum"} ]},

	{ "keys": ["9"],   "command":"insert",   "args": {"characters": ")"},   "context": [
		{"key": "multibind.symMyNum"} ]},
		{ "keys": [")"],   "command":"insert",   "args": {"characters": "]"},   "context": [
			{"key": "multibind.symMyNum"} ]},

	{ "keys": ["0"],   "command":"insert",   "args": {"characters": "="},   "context": [
		{"key": "multibind.symMyNum"} ]},
		{ "keys": ["="],   "command":"insert",   "args": {"characters": "}"},   "context": [
			{"key": "multibind.symMyNum"} ]},

	// NUMPAD FIX
	{ "keys": ["keypad1"],   "command":"insert",   "args": {"characters": "1"} },
	{ "keys": ["keypad2"],   "command":"insert",   "args": {"characters": "2"} },
	{ "keys": ["keypad3"],   "command":"insert",   "args": {"characters": "3"} },
	{ "keys": ["keypad4"],   "command":"insert",   "args": {"characters": "4"} },
	{ "keys": ["keypad5"],   "command":"insert",   "args": {"characters": "5"} },
	{ "keys": ["keypad6"],   "command":"insert",   "args": {"characters": "6"} },
	{ "keys": ["keypad7"],   "command":"insert",   "args": {"characters": "7"} },
	{ "keys": ["keypad8"],   "command":"insert",   "args": {"characters": "8"} },
	{ "keys": ["keypad9"],   "command":"insert",   "args": {"characters": "9"} },
	{ "keys": ["keypad0"],   "command":"insert",   "args": {"characters": "0"} },