absop / RainbowBrackets

A rainbow brackets plugin for SublimeText4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Key binding for make rainbow

mscwilson opened this issue · comments

Hi, thanks for the very useful plugin. Is there a keyboard shortcut for make/clear rainbow? Or is is possible to add one to Sublime's key bindings? I couldn't work out how to do it.

I’m sorry it took me so long to see this feedback. There are some commands to do this, you can input them by the command pallet. For a better experience, I recommend that you install the latest version of this plugin by manually downloading it.

@mscwilson I know this is a very old issue at this point, but I've figured out how to bind these to keyboard shortcuts!

Open Preferences > Key Bindings

Add this to your user-specific keymap file (alter the keys to your liking):

[
  { "keys": ["ctrl+alt+m"], "command": "rainbow_brackets_controller", "args": {"action": "make rainbow"}},
  { "keys": ["ctrl+alt+c"], "command": "rainbow_brackets_controller", "args": {"action": "clear rainbow"}}
]