Sublime Forum

How to redefine some default keys?

#1

Hi,

We can fold select text with shortcut “super+option+[”, and I want to redefine this key. But I did not find out where this key defined in the config file, I prefer to “super+shift+[”.

Thanks for your reading!

0 Likes

#2
  1. How to change the keymap in SublimeText 3
  2. http://stackoverflow.com/a/37060993/4934640
  3. Sublime Text 3 overriding crucial keys in my keyboard layout
0 Likes

#3

hi,

Thanks for your reply.

Actually, I know how to redefine a default key and I already did it. The current problem is when I opened “key bindings”, there is not an entry corresponding to “super+option+[”,but it do work. If we want to redefine it, the format should be

{“keys”: [“key combibation”], “command”: “dummy”},

Since I can not find the default entry, I don’t know what the “dummy” field should be.

Any more suggestions?

Thanks

0 Likes

#4

Open the default sublime keys file, which contains all the keys definitions.

  1. http://www.sublimetext.com/docs/key-bindings
  2. http://docs.sublimetext.info/en/latest/customization/key_bindings.html
  3. http://docs.sublimetext.info/en/latest/reference/key_bindings.html
0 Likes

#5

I got it.

Thank you so much! :slightly_smiling:

0 Likes