babygau
babygau

Reputation: 1581

How to binding `space` key in Sublime Text Editor using `Vintageous` plugin

I want to know how to bind space key in command-mode using Vintageous plugin.

For example, I have the following keybinding to activate command palette:

  {
    "keys": ["super+shift+alt+ctrl+space"],
    "command": "show_overlay",
    "args": {
      "overlay": "command_palette"
    },
    "context": [{
      "key": "vi_command_mode_aware"
    }]
  }

As you can see, I use meta key with space. But my purpose is just to only use space key. Is it possible to do so. If I changed to "keys": ["space"], the binding is defective.

I'm using Sublime Text 3 build 3095 on OSX 10.11.2

Upvotes: 1

Views: 386

Answers (2)

srghma
srghma

Reputation: 5353

Maybe you want to use <space>, defined here

@plugins.register(seqs.SPACE, (modes.NORMAL, ))

Upvotes: 0

babygau
babygau

Reputation: 1581

Never mind, I eventually get it done, use " " could do the trick

Upvotes: 1

Related Questions