Home Download Buy Blog Forum Support

Problem with binding "space" to "commit_completion"

Problem with binding "space" to "commit_completion"

Postby jamy_za on Wed Aug 01, 2012 11:26 am

Hey guys,

'Key bindings - Default' contains this:
Code: Select all
   { "keys": ["enter"], "command": "commit_completion", "context":
      [
         { "key": "auto_complete_visible" },
         { "key": "setting.auto_complete_commit_on_tab", "operand": false }
      ]
   },

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?
jamy_za
 
Posts: 22
Joined: Mon Jul 04, 2011 1:11 pm

Re: Problem with binding "space" to "commit_completion"

Postby klazuka on Fri Aug 03, 2012 5:24 pm

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.
klazuka
 
Posts: 2
Joined: Sat Nov 19, 2011 5:50 am

Re: Problem with binding "space" to "commit_completion"

Postby unphased on Sat Aug 10, 2013 5:54 am

+1!

Hallelujah
unphased
 
Posts: 28
Joined: Thu May 17, 2012 5:16 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 26 guests