Sublime Forum

Limiting History to Single Event with Chain of Command

#1

I’m using Chain of Command package to enable this shortcut:

	{ "keys": ["shift+alt+up"], "command": "chain",
		"args": {
			"commands": [
				["duplicate_line"], 
				["swap_line_up"] 
			]
		}
	},

This allows me to effectively do a duplicate_line_up command that as far as I know does not exist. The only problem is that this creates two events/items in the buffer’s history. Does anyone have an idea as to how I could limit the history to one single event or item?

0 Likes