Sublime Forum

Problem with binding "space" to "commit_completion"

#1

Hey guys,

‘Key bindings - Default’ contains this:

[code] { “keys”: “enter”], “command”: “commit_completion”, “context”:

		{ "key": "auto_complete_visible" },
		{ "key": "setting.auto_complete_commit_on_tab", "operand": false }
	]
},[/code]

That is what is used to commit completions. So when you start typing some CSS, the various possible properties appear and you can commit them by either press enter or tab. I want to change this to “space”. So I want spacebar to complete this.

I can’t get this to work. It works with ANY other key. ‘.’, ‘z’, ‘alt+space’. literally anything else, but not “space”. How could I get this to work?

0 Likes

#2

I had the same problem. The solution is to use a literal space character:
“keys”: " "]

Not sure if this is a bug or by design.

0 Likes

#3

+1!

Hallelujah

0 Likes