-1

Is it possible to change key bindings in Sublime Text dynamically from a plugin or from the console, like in Vim?

A related question: is it possible to choose a keymap file based on the current keyboard layout?

Alexey
  • 3,843
  • 6
  • 30
  • 44

1 Answers1

1

I'd say it's possible, but in a non-standard manner. You will have to create a custom .sublime-keymap file that your package will manage completely by it's own by writing/reading to/from it.

On your second question: no, it's not possible to even get what type of layout is currently active.

Sergey Telshevsky
  • 12,077
  • 6
  • 55
  • 78
  • Thanks for the answer. Does it mean that there is nothing like Vim's `map` command? Is it possible to at least inspect the current key bindings other than by reading the keymap file? – Alexey Feb 27 '14 at 10:38
  • As far as I know it's not possible. There's almost nothing in ST API that works with keybindings. Sometimes it feels strange, that such powerful editor with good API can't do basic stuff like this. – Sergey Telshevsky Feb 27 '14 at 11:18